Query string parameters
| Parameter | *Possible replacement ** | Description | Is it Mandatory to complete the field? | Reference | ||
|---|---|---|---|---|---|---|
| Name | Type | Name | Type | |||
| batch_id | integer | Batch ID | Mandatory for Case #1 | 2.16 | ||
| depart_ext_id | string(250) | depart_id | integer | Department ID in the manufacturer´s system | Mandatory for Case #2 | 2.04 |
| product_line_ext_id | string(250) | product_line_id | integer | Production line ID in the manufacturer´s system | 2.07 | |
| dat | string | Document date, format “yyyy-mm-dd”, by default - dat is set to the current date | ||||
| doc_type | integer | Codes emission type (1-retail, 2 - import), default value - 1 | ||||
| items | array | List of products | ||||
| request_id | string(250) | Unique request ID |
Note: for aggregation (when working with batch_id), you cannot exceed more than 1 year from the estimated_date. For reaggregation, the dat parameter cannot exceed today's date.
Note: If a request with an identifier (request_id) that has already been processed is received from the producer, the previous response will be returned.
Note: If a new request with the same parameters but a different request_id is received within 5 minutes of the initial request, it will be treated as a repeat of the previous request. The handling will be identical to that of a request with the same request_id. After 5 minutes, such a request will be treated as a new request.
Items:
| Parameter | *Possible replacement ** | Description | Is it Mandatory to complete the field? | Reference | ||
|---|---|---|---|---|---|---|
| Name | Type | Name | Type | |||
| assort_ext_id | string(250) | assort_id | integer | ID of the product | Mandatory | 2.1.11 |
| unit_ext_id | string(250) | unit_id | integer | ID of the package for product that was produced/packed (e.g., for tobacco: pack/outer/MC) | Mandatory | 2.1.11 |
| pack_ext_id | string(250) | pack_id | integer | ID of the package in which the product is packed (e.g., for tobacco: outer/MC/pallet) | 2.1.11 | |
| cnt | integer | Quantity of codes | ||||
| items | array | List of codes |
Items:
| Parameter | Description | Type | Is it Mandatory to complete the field? |
|---|---|---|---|
| code | Marking code | string(1024) | Mandatory |
| parent_code | Upper-level marking code, used in case of packaging (if pack_ext_id is indicated) | string(1024) |
Note: If there is no production document on the date for this department and production line, the system will create a new document with an automatic number.