Get withourier invitation
Gets withourier invitation by UUID
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
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 "33883881-1884-4d27-a4f9-c2ce23faf801" \
--testapi "***"
oint cdek GetCourierInvitation ^
--token "***" ^
--uuid "33883881-1884-4d27-a4f9-c2ce23faf801" ^
--testapi "***"
Result
{
"entity": {
"uuid": "4bd78bea-7418-472c-be7e-7d02565ca426",
"cdek_number": "1107010123",
"order_uuid": "531fb9b2-39ba-42e6-8dd4-d6bd607b3684",
"intake_date": "2026-03-07",
"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": "Ivaniv Ivan",
"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"
},
"need_call": false,
"statuses": [
{
"code": "ACCEPTED",
"name": "Принят",
"date_time": "2026-03-06T18:30:51+03:00"
}
],
"packages": [
{
"package_id": "f2c9d2a3-5322-478a-a64c-1069e29af4bf",
"weight": 1000,
"length": 10,
"width": "***",
"height": 10
}
]
},
"requests": [
{
"request_uuid": "92d280b6-b88c-4936-9ebb-8c64563cbbe3",
"type": "CREATE",
"date_time": "2026-03-06T18:30:47+03:00",
"state": "ACCEPTED"
}
]
}