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

The method is used to delete an order.

An order can be deleted only if there is no cargo movement in the CDEK warehouse (order status “Created”).

Request for Deleting an Order

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

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

Response to the Request for Deleting an Order

The response body is returned in the JSON format:


No.

Field name

Description

Field type

Mandatory (yes/no)

1entityData of the order over which request is sent
no
1.1uuidOrder identifier in the CDEK ISUUIDno
2requestsData on the request/requests over the orderrequest[]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/orders/72753031-826d-4ef7-b127-1074f405b269
Sample Response
{
    "entity": {
        "uuid": "72753031-826d-4ef7-b127-1074f405b269"
    },
    "requests": [
        {
            "request_uuid": "72753031-5148-4a19-b233-e1eea7b10882",
            "type": "DELETE",
            "state": "ACCEPTED",
            "date_time": "2020-02-10T11:10:34+0700",
            "errors": [],
            "warnings": []
        }
    ]
}



  • No labels