10.1 Reading products (getmetalist, single product, metaunits)
getmetalist body:
| Field | Type | Required | Description |
|---|---|---|---|
isoCode | text | No | Language of product names; default en. The key must be written exactly as isoCode |
{ "isoCode": "tr" }
For each product, the response returns idMeta, metaCode, genericCode, batch, name, shortName, kdvRatio, weight, volume, barcode, disabled, price, buyPrice, unitCase, dontSell and units[] (idUnit, amount, name, shortName). Inactive products are listed too. The single product method returns the same fields without units; if the product is not found, data is not returned.
metaunits body:
| Field | Type | Required | Description |
|---|---|---|---|
distCode | text | Yes | Distributor code |
metaCode | text | Yes | Product code |
{ "distCode": "TEST", "metaCode": "P0001" }