Get the order status in the restaurant system
Retrieves the order status
Request
GET
/order/{orderId}/status
Path parameters
|
Name |
Description |
|
orderId |
Type: string Order identifier in the partner's system Example: `` |
Responses
200 OK
Order status successfully retrieved
Body
application/json
{
"status": "NEW",
"comment": "New order",
"updatedAt": "1937-01-01T12:00:27.870000+00:20"
}
|
Name |
Description |
|
status |
Type: string Order status. Must be valid – for example, a prepared order cannot be made Status description:
NEW -> ACCEPTED_BY_RESTAURANT -> COOKING -> READY -> Enum: |
|
comment |
Type: string Status change comment Max length: 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: |
400 Bad Request
Bad request. An array with an object from the error list is expected in the response body
ErrorItem
|
Name |
Description |
|
code |
Type: integer Error code agreed with Yandex |
|
description |
Type: string Error message Example: |
Example
{
"code": 100,
"description": "Description of error"
}
401 Unauthorized
Authorization failed - the token expired or was not passed in the request. A retry will be made
Body
application/json
{
"reason": "Access token has been expired. You should request a new one"
}
|
Name |
Description |
|
reason |
Type: string Reason for authorization failure Example: |
404 Not Found
The order was not found in the system. An array with an object from the error list is expected in the response body
500 Internal Server Error
Internal server errors. An array with an object from the error list is expected in the response body