Skip to main content

Delete courier invitation

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

ParameterCLI optionTypeRequiredDescription
Token--tokenStringAuth token
UUID--uuidStringUUID of the invitation for deletion
TestAPI--testapiBooleanFlag to use test API for requests

Returns: Map Of KeyAndValue - serialized JSON response from CDEK


tip

Method at API documentation: Deleting a courier invitation


1C:Enterprise/OneScript code example
    Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzAyNzQyOTksImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
UUID = "72753031-6c29-4d41-bd41-fc66110a4ef8";

Result = OPI_CDEK.DeleteCourierInvitation(Token, UUID, True);
    oint cdek DeleteCourierInvitation \
--token "***" \
--uuid "72753031-8237-47c1-81fd-129a4e7262db" \
--testapi "***"
Result
{
"entity": {
"uuid": "72753031-e8e5-4454-b51a-643dbacc9e2d"
},
"requests": [
{
"request_uuid": "2f041c20-6903-45a6-8543-81766ad2d051",
"type": "DELETE",
"date_time": "2024-10-21T21:28:16+03:00",
"state": "ACCEPTED"
}
],
"related_entities": []
}