❗️Order status update initiated by Yango Deli
Method used for order cancellation from Yandex Eats side, also transmitted when receiving CANCELLED status from Partner.
Transmitting TAKEN_BY_COURIER and/or DELIVERED statuses requires approval by Yandex employees.
Note
Content-type header differs between request and response.
Request
PUT
/order/{orderId}/status
Path parameters
|
Name |
Description |
|
orderId* |
Type: string Order identifier in Partner’s system. |
Headers
|
Name |
Description |
|
Authorization* |
Type: string Token received in response to the |
Body
application/vnd.eats.order.status.v1+json
{
"attributes": [
"paid"
],
"comment": "string",
"reason": "place.unable_to_call",
"status": "string",
"updatedAt": "1970-01-01T00:00:27.870000+00:20",
"platform": "YE"
}
|
Name |
Description |
|
status* |
Type: string Order status. Possible values: TAKEN_BY_COURIER – courier picked up the order from the store. DELIVERED – order completed. CANCELLED – order cancelled. |
|
attributes |
Type: string[] Additional attributes for order status change, e.g., payment flag on cancellation. Example: |
|
comment |
Type: string Comment for the order status change Example: |
|
platform |
Type: Platform Platform identifier, DC – Delivery Club, YE – Yandex Eats, LAVKA – Lavka, VSEAPTEKI – Vseapteki. Example: Enum: |
|
reason |
Type: string Reason for order cancellation. Provided only when status is
Example: |
|
updatedAt |
Type: string<date-time> Date when the order status changed, in RFC3339 format with fractional seconds (Y-m-d\TH:i:s.uP). Example: |
Platform
Platform identifier, DC – Delivery Club, YE – Yandex Eats, LAVKA – Lavka, VSEAPTEKI – Vseapteki.
|
Type |
Description |
|
Example: Enum: |
Responses
204 No Content
Order status successfully updated.
400 Bad Request
Bad request. Parameter error, response is expected to contain an array with a validation error list object.
ErrorItem
|
Name |
Description |
|
code* |
Type: integer Numeric error code agreed with Yango Deli. Example: |
|
description* |
Type: string Error description Example: |
401 Unauthorized
Authorisation failed – token expired or not provided in request.
Body
application/json
{
"reason": "Access token has been expired. You should request a new one"
}
|
Name |
Description |
|
reason* |
Type: string The reason why authorisation failed. Example: |
404 Not Found
Order not found. The response is expected to contain an array with a data object.
500 Internal Server Error
Internal server errors. The response is expected to contain an array with an object from the error list.
No longer supported, please use an alternative and newer version.