article¶
Represents a product or inventory item.
Schema¶
Identification¶
| Field | Type | Required | Read-only | Description |
|---|---|---|---|---|
id |
integer | — | ✓ | Internal product ID |
item_code |
string (1–15) | Yes | — | Unique product code |
description |
string (1–60) | Yes | — | Primary product description |
description_2 |
string (max 60) | — | — | Secondary description |
bar_code |
string (max 20) | — | — | Product barcode (EAN, etc.) |
suppliers_bar_code |
string (max 20) | — | — | Supplier's barcode |
nomenclatura |
string | — | — | Customs / tariff nomenclature code |
country_of_origin |
string (max 20) | — | — | Country of origin (ISO code) |
Classification¶
| Field | Type | Description |
|---|---|---|
family |
string | Product family code |
subfamily |
string | Product subfamily |
section |
string (max 15) | Section/department |
category |
string | Product category code |
unit_of_measurement |
string (max 15) | Default unit of measurement (e.g., UN, KG) |
obs |
string | Observations / notes |
Dimensions & Packaging¶
| Field | Type | Description |
|---|---|---|
gross_weight |
string (max 15) | Gross weight |
net_weight |
string (max 15) | Net weight |
volume_per_unit |
string (max 15) | Volume per unit |
number_of_packages_per_unit |
string (max 15) | Packages per unit |
Pricing & Tax¶
| Field | Type | Description |
|---|---|---|
unit_price |
number (double, ≥ 0) | Default selling price; writable as unit_price on POST/PUT and returned under the same name by GET. See Selling price. |
sales_tax |
number (float, 0–100) | VAT/sales tax rate percentage |
eco_tax |
number (double, ≥ 0) | Eco-tax amount |
Stock & Costing¶
| Field | Type | Description |
|---|---|---|
stock_quantity |
number (double, ≥ 0) | Current stock quantity |
safety_stock |
number (double, ≥ 0) | Minimum safety stock level |
average_cost |
number (double, ≥ 0) | Weighted average cost |
cost_by_serial_number |
boolean | If true, cost is tracked per serial number |
vat_regime_for_gross_margin |
boolean | VAT regime based on gross margin |
track_serial_number |
string ("0" or "1") |
GET tracking flag; on creation send only this flag as "1" to enable serial number tracking. See Traceability on creation. |
track_batch_number |
string ("0" or "1") |
GET tracking flag; on creation send only this flag as "1" to enable batch / lot number tracking. See Traceability on creation. |
stock |
array of stockPosition | Per-warehouse stock breakdown (read-only) |
Selling price¶
Use unit_price for the article's default selling price on both POST /articles and PUT /articles. The corrected POST/GET behavior persists the supplied selling price and exposes it as unit_price on a subsequent GET. It is distinct from a document line's transaction price, also named unit_price.
A non-zero value saves the article price in the configured default price list. GET resolves the default selling price excluding VAT; the price list's VAT-inclusion setting affects how its stored price is interpreted. The current save path skips zero values when writing that price-list entry, so unit_price: 0 must not be relied on to clear an existing selling price.
Traceability on creation¶
| New article | POST tracking fields | GET track_batch_number |
GET track_serial_number |
|---|---|---|---|
| Batch / lot tracked | "track_batch_number": "1" only |
"1" |
"0" |
| Serial-number tracked | "track_serial_number": "1" only |
"0" |
"1" |
| Ordinary, untracked | Omit both tracking fields | "0" |
"0" |
Send the literal string "1", not a JSON boolean. Omit the other tracking flag entirely: sending both flags can depend on processing order, and track_serial_number: "0" can reset batch mode. This verified creation convention does not establish safe tracking-mode conversion of existing articles with PUT.
Creating an article configures its traceability only: it creates no stock, lots, serial records or movements. Use normal document processing to record stock and lot allocations.
stockPosition¶
Embedded object returned inside stock, describing the article's stock for a single warehouse.
| Field | Type | Read-only | Description |
|---|---|---|---|
location_code |
string (max 15) | ✓ | Warehouse code |
warehouse_stock |
number (double, ≥ 0) | — | Current stock at this warehouse |
warehouse_safety_stock |
number (double, ≥ 0) | — | Safety stock at this warehouse |
serial_numbers |
array of serialNumber | — | Serial / batch numbers held at this warehouse |
Example (GET response)¶
{
"item_code": "WIDGET-A",
"description": "Widget Type A — Standard",
"description_2": "Pack of 10",
"family": "WIDGETS",
"category": "HARDWARE",
"unit_of_measurement": "UN",
"bar_code": "5601234567890",
"unit_price": 25.00,
"sales_tax": 23.0,
"stock_quantity": 150.0,
"safety_stock": 20.0,
"average_cost": 12.50,
"track_serial_number": "1",
"track_batch_number": "0",
"stock": [
{
"location_code": "WH01",
"warehouse_stock": 100.0,
"warehouse_safety_stock": 10.0
},
{
"location_code": "WH02",
"warehouse_stock": 50.0,
"warehouse_safety_stock": 10.0
}
]
}
Used By¶
GET /articlesPOST /articlesPUT /articles- Referenced in
documentLine.item_code