Skip to main content

Create receipt

Generates pdf receipts for orders

Function CreateReceipt(Val Token, Val UUIDArray, Val Type = "tpl_russia", Val CopiesPerSheet = 2, Val TestAPI = False) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringAuth token
UUIDArray--uuidsString, Array of StringOne or an array of order UUIDs
Type--typeStringReceipt type (language)
CopiesPerSheet--countNumberNumber of copies of one receipt per sheet
TestAPI--testapiBooleanFlag to use test API for requests

Returns: Map Of KeyAndValue - serialized JSON response from CDEK

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.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3NjUzOTcwNTYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
UUID = "50fbb719-69d4-4ded-93ca-ff7d005c9fae";
Type = "tpl_russia";
Copies = 1;

Result = OPI_CDEK.CreateReceipt(Token, UUID, Type, Copies, True);
    oint cdek CreateReceipt \
--token "***" \
--uuids "9e15fe3c-2071-4ed8-9ded-70df723825d3" \
--type "tpl_russia" \
--count 1 \
--testapi "***"
Result
{
"entity": {
"uuid": "e22c3284-e811-4eb3-8bbb-36460e42250e"
},
"requests": [
{
"request_uuid": "8d30cd85-bd7d-4b50-952f-b1ca1c468102",
"type": "CREATE",
"date_time": "2025-12-10T20:09:22+00:00",
"state": "ACCEPTED"
}
],
"related_entities": []
}