Deleting an Order
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:
Environment | URL |
testing | |
production |
{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) |
---|---|---|---|---|
1 | entity | Data of the order over which request is sent | no | |
1.1 | uuid | Order identifier in the CDEK IS | UUID | no |
2 | requests | Data on the request/requests over the order | request[] | yes |
2.1 | request_uuid | Request identifier in CDEK information system | UUID | no |
2.2 | type | Request type May take on values: CREATE, UPDATE, DELETE, AUTH, GET | string() | yes |
2.3 | state | Current status of the request ACCEPTED - pre-validation passed and request accepted | string() | yes |
2.4 | date_time | Date and time of setting current status of the request (format yyyy-MM-dd'T'HH:mm:ssZ) | datetime | yes |
2.5 | errors | Request processing errors | error[] | no |
2.5.1 | code | Error code | string() | yes |
2.5.2 | message | Error description | string() | yes |
2.6 | warnings | Request processing warnings | warning[] | no |
2.6.1 | code | Warning code | string() | yes |
2.6.2 | message | Warning description | string() | yes |
https://api.cdek.ru/v2/orders/72753031-826d-4ef7-b127-1074f405b269 |
{ "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": [] } ] } |
© 2000—2024, Курьерская компания СДЭК