Latest Document Changes
title: TNT API Changes Log description: Changes log for TNT API from v12 to v25.2
sidebar_label: TNT API Changes Log
TNT API Changes Log
Changes log from v12 to v18
2.1.2. /product_categories
- Fields
statusandmessagewere deleted from the response.
2.1.3. /product_groups/
- Fields
statusandmessagewere deleted from the response.
2.1.4. /departments/
- Fields
statusandmessagewere deleted from the response.
2.1.5. /save_departments/
- Request parameter
is_productionwas deleted. - Request parameter
object_typewas added. - Field
codewas added to the response. - Error code
146was added.
2.1.6. /del_departments/
- Field
codewas added to the response.
2.1.7. /product_lines/
- Fields
statusandmessagewere deleted from the response.
2.1.8. /save_product_lines/
- Field
codewas added to the response.
2.1.9. /del_product_lines/
- Field
codewas added to the response.
2.1.10. /defect_types/
- Fields
statusandmessagewere deleted from the response. - Error codes were deleted.
2.1.11. /products/
- Fields
statusandmessagewere deleted from the response. - Error codes were deleted.
2.1.12. /save_products/
- Field
codewas added to the response. - Error code
164was added. - Error code
173was deleted.
2.1.13. /del_products/
- Field
codewas added to the response.
2.1.14. /check_order/
- Error codes
0and116were added.
2.1.15. /orders_list/
- Added Case #2 using parameter
num. - Parameter
emission_typevalues were changed:1- retail,2- import. - Fields
status,message,code, andext_idwere deleted from the response. - Field
datwas replaced withorder_date.
2.1.16. /make_batch/
- Error codes
126,127,159, and169were added.
2.1.17. /gen_batch_codes/
- Error codes
176and181were added.
2.1.18. /get_batch_codes/
- Request parameters
offsetandcountwere added to retrieve codes partially. - Error code
153was deleted. - Error code
189was added.
2.1.20. /make_aggregation/
- Request parameter
event_timewas deleted. - Error codes
169and170were added.
2.1.21-2.1.25. Production / packaging document endpoints
Affected endpoints:
2.1.21. /make_production/2.1.22. /gen_product_codes/2.1.23. /get_product_codes/2.1.24. /close_production/2.1.25. /make_aggregation/— same endpoint with different input parameters
Changes:
- Added a block of endpoints to work with production / packaging documents.
2.1.26. /make_disaggregation/
- Request parameter
event_timewas deleted.
2.1.27. /make_shipping/
- Request parameter
event_timewas deleted. - Fields
doc_idanddoc_ext_idwere added to the response. - Error code
146was deleted. - Error code
189was added.
2.1.28. /make_supply/
- Request parameter
event_timewas deleted. - Fields
doc_idanddoc_ext_idwere added to the response. - Error code
189was added.
2.1.29. /make_utilization/
- Fields
doc_idanddoc_ext_idwere added to the response. - Error code
146was deleted. - Error code
189was added.
2.1.30. /get_totals/
- Parameter
assort_nametype was changed tostring.
2.1.31. /code_info/
- Parameter
emission_typevalues were changed:1- retail,2- import. - Parameter
withdraw_typevalues:1- sold2- returned3- utilized4- disaggregated
Process description for endpoints 2.1.21-2.1.25
Example: bundles rework.
If packs of cigarettes were aggregated into bundles within batch production and the packs need to be reaggregated into new bundles, codes must be generated only for the bundles.
Process:
- Create a new production / packaging document using
/make_production/.- Pass
unit_idas the package ID for bundles. - Pass
cntas the number of new bundle codes needed for reaggregation.
- Pass
- Confirm the document via the web interface:
- Open the Production / Packaging tab.
- Select the required record.
- Click the burger button.
- Click Confirm.
- Generate codes for bundles in this document using
/gen_product_codes/. - Obtain generated codes using
/get_product_codes/. - Reaggregate packs from old bundles to new ones using
/make_aggregation/.- Pass
doc_ext_idthat was passed when creating the production / packaging document with/make_production/. - If
doc_ext_idwas not passed, use the document IDdoc_idreceived in the response from/make_production/.
- Pass
- After the process is finished, close the production document using
/close_production/.- All unused bundle codes generated for this document will be deleted from the system.
Changes log from v18 to v19
1.2. Requirements
- Added new request header:
X-Land = en / az.
1.3. Endpoints
- Endpoints
/gen_batch_codes/,/get_batch_codes/,/gen_product_codes/, and/get_product_codes/were marked with*as high-load endpoints.
2.1.1. /login_api/
- Error code
102was deleted. - Description for error code
103was changed.
2.1.16. /make_batch/
- Parameter
idwas added.- It is not mandatory.
- It can be used to edit information about a production batch before production starts, before the first aggregation results are sent.
- As
category_id, it is possible to pass a category ID or a product group ID, but only group IDs inside this category.
2.1.18. /get_batch_codes/
- Error code
102was added.
2.1.20. /make_aggregation/
- Description of aggregation schemes was changed.
2.1.21. /make_production/
- Missing parameter
product_line_ext_id/product_line_idwas added. - Missing parameter
doc_typewas added. - Parameter
doc_statuswas added:0- New1- Confirmed
- The
doc_statusparameter allows avoiding mandatory document confirmation via the web interface before generating and obtaining generated codes.
2.1.23. /get_product_codes/
- Error code
102was added.
2.1.27. /make_shipping/
- Description for parameter
partner_fiscal_idwas changed to clarify when it is mandatory.
2.1.28. /make_supply/
- Description for parameter
partner_fiscal_idwas changed to clarify when it is mandatory. - The method was extended for the receiving goods process:
- New array
rejectswas added for rejected codes when the mobile application is not used for scanning. - Objects in
rejectsinclude:cnt- number of rejected codesdefect_type_id- rejection cause
- Parameter
defect_type_idwas also added to each object in thecodesarray.
- New array
2.1.29. /make_utilization/
- Parameter
defect_idwas changed todefect_type_id.
2.1.32. /validate_code/
- New endpoint
/validate_code/was added. - It is similar to
/code_info/, but also validates a code by department. - It can be used before shipping for validation.
General changes for selected document methods
For /make_production/, /make_shipping/, /make_supply/, and /make_utilization/:
- Parameter
num, which is a reference document number, is no longer mandatory. - A user reference can be passed if needed.
- If not passed, it will be generated automatically by the system.
For /make_aggregation/, /make_shipping/, /make_supply/, and /make_utilization/:
- Parameter
cntis no longer mandatory. - It now corresponds to the number of codes and is calculated by the system.
For all document parameters ending with _ext_id:
- Type was changed to
String(250). - Correct processing of integer type is preserved.
Additional documentation changes:
- Descriptions of some methods and parameters were corrected for better understanding.
- New references for input parameters were added.
- Description of production schemes was added for:
- Endpoints
2.1.16-2.1.20— production / aggregation in the context of a production batch. - Endpoints
2.1.21-2.1.25— production / aggregation in the context of a production document.
- Endpoints
Changes log from v19 to v20
Signature
- The list of requests requiring a signature was adjusted.
- Adjusted list:
/get_batch_codes//get_product_codes//make_aggregation//make_disaggregation//make_shipping//make_supply//make_utilization/
- New error codes
161and162were added for these methods.
Rate limitation between high-load endpoints
- The 2-second limitation was removed.
2.1.15. /orders_list/
- New response parameters were added:
generated_cnt- quantity of codes that were generated, including activated and non-activated codes.activated_cnt- quantity of codes that were generated and activated.
- Based on
generated_cnt,activated_cnt, and total quantitycnt, it is possible to calculate:- Quantity of codes available in the excise codes order:
cnt - generated_cnt. - Quantity of codes generated but not activated:
generated_cnt - activated_cnt.
- Quantity of codes available in the excise codes order:
2.1.16. /make_batch/
- Error code
184was added.
2.1.23. /get_product_codes/
- Success response code
0was deleted.
2.1.21. /make_production/
- Request parameter
doc_ext_idis no longer mandatory.
Code generation process status check
- Added new endpoints to check whether the code generation process is completed or still ongoing:
2.1.18. /check_batch_codes/2.1.24. /check_product_codes/
- New response parameter
doc_idwas added for:2.1.17. /gen_batch_codes/2.1.23. /gen_product_codes/
- The
doc_idparameter is used as an input parameter for the new status check methods.
Changes log from v20.1 to v20.2
2.1.15. /orders_list/
- Response parameter
doc_statusis now of type integer. - Possible values:
0- Draft1- New2- In Process3- Verified4- Confirmed5- Rejected6- Completed
Changes log from v20.2 to v20.3
2.1.16. /make_batch/
- Optional parameter
assort_id/assort_ext_idwas added.
Changes log from v20.3 to v20.4
2.1.11. /products/
- New parameters were added to the
unitsarray in the response:barcode- package GTIN.gen_code-trueif codes are generated in the T&T system,falsefor external codes.template_name- name of the code generation template.label_name- name of the printed label.
- New response parameter
capacitywas added - volume of product unit for alcohol.
2.1.12. /save_products/
- New optional parameter
barcodewas added to theunitsarray in the request - package GTIN. - New request parameter
capacitywas added - volume of product unit for alcohol.
Rate limitation
- Rate limitation for endpoints
/gen_batch_codes/,/get_batch_codes/,/gen_product_codes/, and/get_product_codes/was set to once every 2 seconds.
Changes log from v20.4 to v20.5
2.1.15. /orders_list/
- New response parameter
reserved_cntwas added - quantity of codes reserved for production.
2.1.18. /check_batch_codes/
- New response status
not startedwas added.
2.1.24. /check_product_codes/
- New response status
not startedwas added.
Changes log from v20.5 to v20.6
2.1.15. /orders_list/
- New parameter
calc_totalswas added. - It is a flag responsible for output of calculated fields:
generated_cntactivated_cntreserved_cnt
- Default value:
false.
2.1.29. /make_shipping/
- Request example with a transport pallet was added.
New error codes
171- Package with code%salready disaggregated.207- Product with code%salready utilized.214- Codes for excise order%salready used up.215- Production line does not belong to this department.
Changes log from v20.6 to v21.1
New method /supplies/
- Method to retrieve the list of expected supplies for external shipments.
New method /alive/
- Method to check connection availability to the T&T system.
2.1.12. /save_products/
- Parameter
codeis no longer mandatory.
2.1.29. /make_shipping/
- New parameter
doc_subtypewas added for return documents.
New error codes
154- Product not found.216- The capacity of the transferred code%sdoes not match the capacity of the product.217- The category of the transferred code%sdoes not match the category of the product.218- The%scode was transferred to another manufacturer.219- The emission type of the%scode does not match the type of excise codes order.220- Defect reason is not indicated.221- The number of background requests exceeds the established limits.
Changes log from v21.1 to v21.2
New error codes
222- The code has already been shipped according to document%dateddd.mm.yyyy.223- Too many errors in the request.224- The item is not produced by your organization.
Batch life
- Batch lifetime was increased from 20 days to 1 year.
Changes log from v21.2 to v21.3
2.1.29. /make_shipping/
- Parameters
assort_ext_idandunit_ext_idare no longer mandatory.
2.1.30. /make_supply/
- Parameters
assort_ext_idandunit_ext_idare no longer mandatory.
2.1.32. /make_utilization/
- Parameters
assort_ext_idandunit_ext_idare no longer mandatory.
Changes log from v21.3 to v21.4
2.1.29. /make_shipping/
- Optional parameter
confirmedwas added to theunitsarray in the request. - Applies only to internal transfers.
- When set to
true, receipt is automatically confirmed by the recipient and/make_supply/is not required. - Default value:
false.
Changes log from v21.4 to v21.5
2.1.21. /make_aggregation/
- Optional parameter
transport palletwas added to theitemsarray in the request. - It allows a business entity to pack goods in a transport pallet.
- The transport pallet is a hidden service category in the T&T system with:
assort_id=25unit_id=17
- This pallet is specified as a separate object in the array.
- See Case #3: Example with a transport pallet.
2.1.27. /make_aggregation/
- Optional parameter
transport palletwas added to theitemsarray in the request. - It allows a business entity to pack goods in a transport pallet.
- The transport pallet is a hidden service category in the T&T system with:
assort_id=25unit_id=17
- This pallet is specified as a separate object in the array.
- See Case #3: Example with a transport pallet.
Changes log from v21.5 to v22.1
New method 2.1.18. /stop_generate_codes/
- This method is used to manually stop the code generation process.
- This makes sense if the generation process has stopped for a long time.
- After executing this request,
/gen_batch_codes/can be re-executed.
New method 2.1.25. /stop_gen_product_codes/
- This method is used to manually stop the code generation process.
- This makes sense if the generation process has stopped for a long time.
- After executing this request,
/gen_product_codes/can be re-executed.
2.1.22. /make_aggregation/ and 2.1.29. /make_aggregation/
- In both methods, the
make_aggregationexample was fixed by removing the extra parameterpack_ext_id.
2.1.23. /make_production/
- Optional parameter
order_numwas added to the request.
Changes log from v22.1 to v22.2
2.1.22. /make_aggregation/ and 2.1.29. /make_aggregation/
- In both
make_aggregationmethods, parameterproduct_line_ext_idis no longer mandatory.
Changes log from v22.2 to v23.1
In all pages
- Page numbers were added.
In all methods
- Description text was updated from
retailtolocal productionin theemission_typeparameter. - New response status
in progresswas added with a hint whererequest_idis used.
2.1.36. /code_info/
- New response parameter
order_numwas added - excise codes order number.
Changes log from v23.1 to v24.1
2.1.39. /not_activated_codes/
- New method was added.
2.1.36. /code_info/
- New fields were added to the response table.
2.1.15. /orders_list/
- General counters for the request were removed from the response table.
Changes log from v24.1 to v24.2
Affected methods
The following methods were updated:
2.1.16. /make_batch/2.1.22. /make_aggregation/2.1.23. /make_production/2.1.29. /make_aggregation/2.1.30. /make_disaggregation/2.1.31. /make_shipping/2.1.33. /make_supply/2.1.34. /make_utilization/
Added note:
If a new request with the same parameters but a different
request_idis 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 samerequest_id. After 5 minutes, such a request will be treated as a new request.
In all methods
- In examples, separation between
Example request >>andExample response <<was added.
Changes log from v24.2 to v24.3
2.1.32. /supplies/
- New request parameters
numandstatuswere added. - New response parameter
statuswas added in theitemarray.
New method 2.1.33. /shippings/
- The
/shippings/method can be used to get a list of shippings to other counterparties (companies).
New method 2.1.34. /product_moves/
- The
/product_moves/method can be used to get a list of internal movement documents.
Changes log from v24.3 to v25.1
Method 2.1.21. /close_batch/ updated
- New error code added:
231- The batch is already closed.
Method 2.1.16. /make_batch/ updated
- Removed the following note:
If a new request with the same parameters but a different
request_idis 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 samerequest_id. After 5 minutes, such a request will be treated as a new request.
Method 2.1.38. /code_info/ updated
- New query string parameter
show_imagewas added.
New method 2.1.42. /track_code/
- Method can be used to retrieve tracking information for codes.
Method 2.1.1. /login_api/ updated
- New request parameter
fiscal_idwas added.
Changes log from v25.1 to v25.2
General
- Maximum size of unpacked request data was updated from 250 Kb to 1 Mb:
- In all method notes: Note sections.
- In request tables where request size limitations are described.
Method /make_disaggregation/ — Send unpacking / disaggregating results
- New parameter
depart_ext_idwas added.- Marked as mandatory.
- New error code added:
180- The item with the code%sis not found in the current department.
Methods /gen_batch_codes/ and /gen_product_codes/
- Added note:
Within a single organization, only one code generation process can be active at a time. A subsequent generation can be initiated only after the current process is complete.