Article — catalog item
Fields
| Field | Type | Required on AddArticle | Description |
|---|---|---|---|
Id | integer | (auto) | Unique identifier generated by the ERP |
Code | string | no | Unique code. If missing, the ERP generates one (0000001, 0000002, ...) |
Name | string | yes | Displayed name |
BarCode | string | no | EAN13 barcode or similar |
CategoryId | integer | no | Reference to a category from GetAllArticleCategories |
UnitOfMeasure | string | no | UoM (e.g. BUC, ORA, KG) |
VATRateId | integer | no (but recommended) | Default VAT rate (see VATRate) |
IsActive | boolean | no (default true) | Article active in the nomenclature |
IsService | boolean | no (default false) | true = service, not goods |
SalePrice | number | no | Sale price in RON |
PurchasePrice | number | no | Purchase price in RON |
JSON example
{
"Id": 102,
"Code": "0000002",
"Name": "Demo Laptop 14\"",
"BarCode": "5901234567890",
"CategoryId": 2,
"UnitOfMeasure": "BUC",
"VATRateId": 1,
"IsActive": true,
"IsService": false,
"SalePrice": 4500.00,
"PurchasePrice": 3500.00
}
Associated operations
GetAllArticles,GetArticleByCode,GetArticleById,GetArticleByBarCodeGetArticlesByNameAndCode,GetArticlesByNameCodeAndCategoryAddArticle,UpdateArticle,UpdateArticlePictureGetAllStocksForArticles,GetStocksForArticleByCode
Business notes
- The code is unique at company level. Duplicating it returns
Articol cu codul "X" exista deja. IsService = trueimplies infiniteStock(quantity is not tracked).- Categories are optional, but useful for aggregated reports.