Skip to main content

Query string parameters

Parameter*Possible replacement **DescriptionIs it Mandatory to complete the field?Reference
NameTypeNameType
batch_idintegerBatch IDMandatory for Case #12.16
depart_ext_idstring(250)depart_idintegerDepartment ID in the manufacturer´s systemMandatory for Case #22.04
product_line_ext_idstring(250)product_line_idintegerProduction line ID in the manufacturer´s system2.07
datstringDocument date, format “yyyy-mm-dd”, by default - dat is set to the current date
doc_typeintegerCodes emission type (1-retail, 2 - import), default value - 1
itemsarrayList of products
request_idstring(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 **DescriptionIs it Mandatory to complete the field?Reference
NameTypeNameType
assort_ext_idstring(250)assort_idintegerID of the productMandatory2.1.11
unit_ext_idstring(250)unit_idintegerID of the package for product that was produced/packed (e.g., for tobacco: pack/outer/MC)Mandatory2.1.11
pack_ext_idstring(250)pack_idintegerID of the package in which the product is packed (e.g., for tobacco: outer/MC/pallet)2.1.11
cntintegerQuantity of codes
itemsarrayList of codes

Items:

ParameterDescriptionTypeIs it Mandatory to complete the field?
codeMarking codestring(1024)Mandatory
parent_codeUpper-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.