Skip to main content

Get withourier invitation

Gets withourier invitation by UUID

Function GetCourierInvitation(Val Token, Val UUID, Val TestAPI = False) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringAuth token
UUID--uuidStringUUID of the invitation
TestAPI--testapiBooleanFlag 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.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzIyNjMyNTYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
UUID = "72753031-6db1-463b-89e4-09a0968e8c71";

Result = OPI_CDEK.GetCourierInvitation(Token, UUID, True);
    oint cdek GetCourierInvitation \
--token "***" \
--uuid "72753031-2637-47a5-8a81-353c4aa69d56" \
--testapi "***"
Result
{
"entity": {
"uuid": "72753031-e8e5-4454-b51a-643dbacc9e2d",
"intake_date": "2024-10-22",
"intake_time_from": "10:00",
"intake_time_to": "17:00",
"name": "Consolidated cargo",
"weight": 1000,
"length": 10,
"width": 10,
"height": 10,
"comment": "Comment to courier",
"sender": {
"company": "Company",
"name": "Ivaniv Ivan",
"phones": [
{
"number": "+79589441654"
}
],
"passport_requirements_satisfied": false
},
"from_location": {
"code": 44,
"city_uuid": "7e8f36ba-d937-4ce4-8d53-e44177db6469",
"city": "Москва",
"fias_guid": "0c5b2444-70a0-4932-980c-b4dc0d3f02b5",
"kladr_code": "7700000000000",
"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": "2024-10-21T21:28:16+03:00"
}
],
"contragent_uuid": "ed75ecf4-30ed-4153-afe9-eb80bb512f22"
},
"requests": [
{
"request_uuid": "c034b699-b211-4c90-bfee-f8203cadb95b",
"type": "CREATE",
"date_time": "2024-10-21T21:28:16+03:00",
"state": "ACCEPTED"
}
],
"related_entities": []
}