Create receipt
Generates pdf receipts for orders
- Parameters
- Advanced call ?
Function CreateReceipt(Val Token, Val UUIDArray, Val Type = "tpl_russia", Val CopiesPerSheet = 2, Val TestAPI = False) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Auth token |
| UUIDArray | --uuids | String, Array of String | ✔ | One or an array of order UUIDs |
| Type | --type | String | ✖ | Receipt type (language) |
| CopiesPerSheet | --count | Number | ✖ | Number of copies of one receipt per sheet |
| TestAPI | --testapi | Boolean | ✖ | Flag to use test API for requests |
Returns
Map Of KeyAndValue - serialized JSON response from CDEK
| 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
Available receipt types (languages): tpl_china, tpl_armenia, tpl_russia, tpl_english, tpl_italian, tpl_korean, tpl_latvian, tpl_lithuanian, tpl_german, tpl_turkish, tpl_czech, tpl_thailand, tpl_invoice
It is recommended to specify at least 2 copies per sheet (parameter CopiesPerSheet): one to be glued on the shipment, the other to be kept by the sender
Method at API documentation: Creating order receipt
1C:Enterprise/OneScript code example
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3NjE5MTU3NDQsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
UUID = "4c7113d6-e20b-4218-9fd9-2cf33b75a384";
Type = "tpl_russia";
Copies = 1;
Result = OPI_CDEK.CreateReceipt(Token, UUID, Type, Copies, True);
- Bash
- CMD/Bat
oint cdek CreateReceipt \
--token "***" \
--uuids "6d5ea1f6-1311-4eb4-af9f-8c5ede882512" \
--type "tpl_russia" \
--count 1 \
--testapi "***"
oint cdek CreateReceipt ^
--token "***" ^
--uuids "6d5ea1f6-1311-4eb4-af9f-8c5ede882512" ^
--type "tpl_russia" ^
--count 1 ^
--testapi "***"
Result
{
"entity": {
"uuid": "e126a916-46de-4bf7-9dff-ab432b992039"
},
"requests": [
{
"request_uuid": "3cf4d150-75c3-4e5d-8162-3c7d5deb7349",
"type": "CREATE",
"date_time": "2026-07-19T17:07:16+00:00",
"state": "ACCEPTED"
}
],
"related_entities": []
}