Get withourier invitation
Gets withourier invitation by UUID
- Parameters
- Advanced call ?
Function GetCourierInvitation(Val Token, Val UUID, Val TestAPI = False) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Auth token |
| UUID | --uuid | String | ✔ | UUID of the invitation |
| 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
The invitation must be previously created. See CreateCourierInvitation
Method at API documentation: [Details of a courier invitation(https://api-docs.cdek.ru/33828865.html)
1C:Enterprise/OneScript code example
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3NjE5MTU3NDQsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
UUID = "33cdf7bf-7b9e-4a4f-aaf6-6acb86b4639a";
Result = OPI_CDEK.GetCourierInvitation(Token, UUID, True);
- Bash
- CMD/Bat
oint cdek GetCourierInvitation \
--token "***" \
--uuid "e6eeca16-77e2-4b4c-a8c5-069aeed01584" \
--testapi "***"
oint cdek GetCourierInvitation ^
--token "***" ^
--uuid "e6eeca16-77e2-4b4c-a8c5-069aeed01584" ^
--testapi "***"
Result
{
"entity": {
"uuid": "b65eba79-c131-42d9-b26f-110e52f93ebc",
"cdek_number": "1109932325",
"order_uuid": "87d77ac3-6414-4407-bfb3-ae7a15c02b51",
"intake_date": "2026-07-20",
"intake_number": "13312573",
"intake_time_from": "10:00",
"intake_time_to": "17:00",
"name": "Consolidated cargo",
"weight": 1000,
"length": 10,
"width": "***",
"height": 10,
"comment": "Comment to courier",
"sender": {
"company": "Company",
"name": "Company",
"contragent_type": "LEGAL_ENTITY",
"phones": [
{
"number": "79589441654"
}
],
"passport_requirements_satisfied": "***"
},
"from_location": {
"code": 44,
"city_uuid": "7e8f36ba-d937-4ce4-8d53-e44177db6469",
"city": "Москва",
"fias_guid": "0c5b2444-70a0-4932-980c-b4dc0d3f02b5",
"country_code": "RU",
"country": "Россия",
"region": "Москва",
"region_code": 81,
"sub_region": "Москва",
"longitude": 37.61556,
"latitude": 55.75222,
"address": "st. Bluchera, 32"
},
"to_location": {
"code": 44,
"city_uuid": "7e8f36ba-d937-4ce4-8d53-e44177db6469",
"city": "Москва",
"country_code": "RU",
"country": "Россия",
"region": "Москва",
"region_code": 81,
"longitude": 37.831928,
"latitude": 55.644399,
"address": "Россия, Москва, Москва, ул. Энергетиков, 22 корп. 2",
"postal_code": "140091"
},
"need_call": false,
"statuses": [
{
"code": "READY_FOR_APPOINTMENT",
"name": "Готова к назначению",
"date_time": "2026-07-19T17:09:06+00:00"
},
{
"code": "CREATED",
"name": "Создан",
"date_time": "2026-07-19T17:09:06+00:00"
},
{
"code": "ACCEPTED",
"name": "Принят",
"date_time": "2026-07-19T17:09:06+00:00"
}
],
"packages": [
{
"package_id": "76770baf-3c5e-44f8-98f8-804e917a0bb1",
"weight": 1000,
"length": 10,
"width": "***",
"height": 10
}
]
},
"requests": [
{
"request_uuid": "b0a6b6ac-3135-48f6-9a9b-15fb61de7729",
"type": "CREATE",
"date_time": "2026-07-19T17:09:02+00:00",
"state": "SUCCESSFUL"
}
]
}