Page tree
Skip to end of metadata
Go to start of metadata

The method is used to delete a courier invitation.

Request for Deleting a Courier Invitation

In order to use this process, a DELETE request should be sent to URL:

{uuid} is the CDEK IS identifier of the courier invitation to be deleted.


Response to the Request for Deleting a Courier Invitation

The response body is returned in the JSON format:

No.

Field name

Description

Field type

Mandatory (yes/no)

1entityData of the courier invitation over which request is sent
no
1.1uuid

identifier of the courier invitation in the CDEK IS

UUIDno
2requestsData on the request/requests over the courier Invitationrequest[]yes
2.1request_uuidRequest identifier in CDEK information systemUUIDno
2.2typeRequest type
May take on values: CREATE, UPDATE, DELETE, AUTH, GET
string()yes
2.3state

Current status of the request
May take on values: 

ACCEPTED - pre-validation passed and request accepted
WAITING - the request is awaiting processing (depends on the execution of another request)
SUCCESSFUL - the request was processed successfully
INVALID - the request was processed with an error

string()yes
2.4date_timeDate and time of setting current status of the request (format yyyy-MM-dd'T'HH:mm:ssZ)datetimeyes
2.5errorsRequest processing errorserror[]no
2.5.1codeError codestring()yes
2.5.2messageError descriptionstring()yes
2.6warningsRequest processing warningswarning[]no
2.6.1codeWarning codestring()yes
2.6.2messageWarning descriptionstring()yes



Sample Request
https://api.cdek.ru/v2/intakes/72753031-0525-4aa4-9629-d6ae52e825f5
Sample Responce
{
    "entity": {
        "uuid": "72753031-0525-4aa4-9629-d6ae52e825f5"
    },
    "requests": [
        {
            "request_uuid": "72753031-9b53-48a4-8814-dda44250c565",
            "type": "DELETE",
            "state": "ACCEPTED",
            "date_time": "2020-02-10T12:02:37+0700",
            "errors": [],
            "warnings": []
        }
    ]
}



  • No labels