Get receipt
Gets a receipt for the order
- Parameters
- Advanced call ?
Function GetReceipt(Val Token, Val UUID, Val GetFile = False, Val TestAPI = False) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Auth token |
| UUID | --uuid | String | ✔ | UUID of the receipt received during its creation |
| GetFile | --getfile | Boolean | ✖ | True > PDF file data will be received, False > receives CDEK server response |
| TestAPI | --testapi | Boolean | ✖ | Flag to use test API for requests |
Returns
Map Of KeyAndValue, BinaryData - serialized JSON response from CDEK or a PDF file
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
tip
The receipt must be previously created. See CreateReceipt
A link to the receipt file for orders is available within 1 hour
Method at API documentation: Receiving order receipt
1C:Enterprise/OneScript code example
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3NjE5MTU3NDQsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
UUID = "fe0421c4-7a85-4fae-812d-3aee31c939cb";
Result = OPI_CDEK.GetReceipt(Token, UUID, , True); // Server response with a URL
- Bash
- CMD/Bat
oint cdek GetReceipt \
--token "***" \
--uuid "5fb93e7c-91a2-4872-b4e4-21d4d80fbd10" \
--testapi "***"
oint cdek GetReceipt ^
--token "***" ^
--uuid "5fb93e7c-91a2-4872-b4e4-21d4d80fbd10" ^
--testapi "***"
Result
{
"entity": {
"uuid": "7b9bbbca-e09c-41c0-8e2e-bed66431dff4",
"orders": [
{
"order_uuid": "ecb7f2d5-89ec-4eb7-acff-e7c350818aaa"
}
],
"copy_count": 1,
"type": "tpl_russia",
"url": "https://api.edu.cdek.ru/v2/print/orders/7b9bbbca-e09c-41c0-8e2e-bed66431dff4.pdf",
"statuses": [
{
"code": "ACCEPTED",
"name": "Принят",
"date_time": "2026-05-26T14:19:39+00:00"
},
{
"code": "PROCESSING",
"name": "Формируется",
"date_time": "2026-05-26T14:19:39+00:00"
},
{
"code": "READY",
"name": "Сформирован",
"date_time": "2026-05-26T14:19:40+00:00"
}
]
},
"requests": [
{
"request_uuid": "e28aab54-6dc5-4336-818a-178601e0ff19",
"type": "CREATE",
"date_time": "2026-05-26T14:19:39+00:00",
"state": "SUCCESSFUL"
}
],
"related_entities": []
}