This technique is used to creating an order/orders receipt in the PDF format.
To avoid the platform’s overload, don’t send more than 100 order numbers in one request.
Request to create the order receipt
To use it, send a POST-request to the URL:
Body of the request
Must be sent in the JSON format (Content-Type: application/json).
The following fields are supported:
List of orders
Order identifier in CDEK information system
yes, if cdek_number was not sent
CDEK order number
yes, if order_uuid was not sent
Quantity of a receipt’s copies on one page. It is recommended to select not less than 2: one copy is attached to the cargo and the second one is given to the sender
Default value 2
Receipt type. May take on values: tpl_china – receipt in Chinese
tpl_armenia – receipt in Armenian
Default receipt type depends on order type
Answer to create order receipt
The response body is returned in the JSON format:
|1||entity||Data of the order receipt over which request is sent||no|
Identifier of the order receipt in the CDEK IS
|2||requests||Data on the request/requests over the order receipt||request||yes|
|2.1||request_uuid||Order receipt identifier in CDEK information system||UUID||no|
May take on values: CREATE, UPDATE, DELETE, AUTH, GET
Current status of the request
ACCEPTED - pre-validation passed and request accepted
|2.4||date_time||Date and time of setting current status of the request (format yyyy-MM-dd'T'HH:mm:ssZ)||datetime||yes|
|2.5||errors||Request processing errors||error||no|
|2.6||warnings||Request processing warnings||warning||no|
The received uuid must be used in the technique "Request to receive the order receipt " to receive a link to download the PDF file.