Response
| Field | Description | Type |
|---|---|---|
| items | List of products | array |
Items:
| Field | Description | Type |
|---|---|---|
| id | Product ID in T&T | integer |
| ext_id | Product ID in the manufacturer’s system | string |
| grp_id | Product group ID in T&T | integer |
| name | Product name | string |
| code | Article / Vendor code | string |
| barcode | GTIN | string |
| capacity | Volume of product unit (for alcohol) | float |
| document | Standard (GOST, TU, etc.) | string |
| description | Description | string |
| status | The product status (0 - in progress, 1 - manufacturing halted, 2 - out of sale), | integer |
| units | List of packages | array |
Array units:
| Field | Description | Type |
|---|---|---|
| id | Package ID in T&T system | integer |
| ext_id | Package ID in the manufacturer´s system | string |
| name | Package name | string |
| barcode | Package GTIN | string |
| capacity | Number of items in this package | integer |
| lev | Embedding level (e.g., for tobacco: 0 - pack, 1 - bundle, 2 - MC, 3 – pallet, etc.) | integer |
| gen_code | True - codes are generated in the T&T system; false – external codes | boolean |
| template_name | Name of the codes generation template | string |
| label_name | Name of the printed label | string |
Note: searching of packages (units) for each product is works on the principle of hierarchy from bottom to top (from product -> to product group -> to category level), when you call /products/ API - for each specific product you will receive only one packaging structure (1 unit id/ext_id to each level); search starts from product level, if packages are not set on product level, then search on the group level, if packages are not set on group level, then search on the category level.