Registration of refusal
The method is used to register refusal to order for return to e-shop.
After successful registration of the refusal, the order status changes to "Not delivered" (code NOT_DELIVERED) with the additional status "Return, refusal to accept: No reason explained" (code 11).
The order can be canceled in any status until the status “Delivered” or “Not delivered” is set.
Request for Registration of Refusal
In order to use this process, a POST request should be sent to URL:
Environment | URL |
---|---|
testing | https://api.edu.cdek.ru/v2/orders/{order_uuid}/refusal |
production | https://api.cdek.ru/v2/orders/{order_uuid}/refusal |
{order_uuid} is the CDEK IS identifier of the order to be necessary to register refusal.
Response to the Request for Registration of Refusal
The response body is returned in the JSON format:
No. | Field name | Description | Field type | Mandatory (yes/no) |
---|---|---|---|---|
1 | entity | Data of the refusal | no | |
1.1 | uuid | Order identifier in the CDEK IS to be necessary to register refusal | UUID | no |
2 | requests | Data on the request/requests | request[] | yes |
2.1 | request_uuid | Request identifier in CDEK information system | UUID | no |
2.2 | type | Request type (CREATE) | 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/refusal |
{ "entity": { "uuid": "72753031-826d-4ef7-b127-1074f405b269" }, "requests": [ { "request_uuid": "72753031-69ee-4daa-86b2-28e903af2ffc", "type": "CREATE_REFUSAL", "date_time": "2020-08-24T12:10:10+0700", "state": "ACCEPTED" } ] } |
© 2000—2024, Курьерская компания СДЭК