Detailed information about orders
Retrieve Detailed Order Information.
Limitations:
- A maximum of 100 orders can be sent in a request
- The history is stored for orders for the last 180 days
Request
POST
/v1/get-orders-details
Body
application/json
{
"eats_ids": [
"230328-354380"
]
}
|
Name |
Description |
|
eats_ids |
Type: EatsId[] List of order numbers to search for Min items: Max items: Example
|
EatsId
End-to-end order identifier on the Yandex side in the format DDDDDD-DDDDDDDD
Type: string
Min length: 13
Example: 230328-354380
Responses
200 OK
OK
Body
application/json
{
"orders": [
{
"eats_id": "230328-354380",
"order_id": "example",
"status": {
"status": "NEW",
"comment": "New order",
"updatedAt": "1937-01-01T12:00:27.870000+00:20"
},
"items": [
{
"id": "example",
"name": "example",
"quantity": 0.5,
"price": 123.78,
"original_price": 100.23,
"weight": 0.5,
"measure_unit": "example",
"modifications": [
null
]
}
],
"items_cost": 0.5
}
],
"not_found_eats_ids": [
null
]
}
|
Name |
Description |
|
not_found_eats_ids |
Type: EatsId[] List of order numbers for which information not found or unavailable Example
|
|
orders |
Type: OrderDetails[] List of orders with detailed information Example
|
OrderStatus
|
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: |
Example
{
"status": "NEW",
"comment": "New order",
"updatedAt": "1937-01-01T12:00:27.870000+00:20"
}
OrderItemOption
Product Option
|
Name |
Description |
|
id |
Type: string Option's ID in the partner's system Example: |
|
price |
Type: number The price of a product option |
|
quantity |
Type: integer The number of options within the item |
|
group_id |
Type: string The ID of the group in the partner system to which the option belongs Example: |
|
name |
Type: string Option name Example: |
Example
{
"id": "example",
"group_id": "937c57f6-4508-4858-be7f-20691a16fbb1",
"name": "example",
"quantity": 0,
"price": 10.5
}
OrderItem
Item with modificators
|
Name |
Description |
|
id |
Type: string Item ID on the partner's system Example: |
|
measure_unit |
Type: string Units of weight measurement Example: |
|
modifications |
Type: OrderItemOption[] Product Options Example
|
|
name |
Type: string Item name Example: |
|
original_price |
Type: number The cost of a given item excluding the cost of options |
|
price |
Type: number The cost of a given item including the cost of options |
|
quantity |
Type: number The number of products within this item |
|
weight |
Type: number Final weight of the product |
Example
{
"id": "example",
"name": "example",
"quantity": 0.5,
"price": 123.78,
"original_price": 100.23,
"weight": 0.5,
"measure_unit": "example",
"modifications": [
{
"id": "example",
"group_id": "937c57f6-4508-4858-be7f-20691a16fbb1",
"name": "example",
"quantity": 0,
"price": 10.5
}
]
}
OrderDetails
Order with detailed information
|
Name |
Description |
|
eats_id |
Type: EatsId End-to-end order identifier on the Yandex side in the format DDDDDD-DDDDDDDD Min length: Example: |
|
items |
Type: OrderItem[] The composition of the order Example
|
|
order_id |
Type: string | null Order identifier in the partner's system Example: |
|
status |
Type: OrderStatus Example
|
|
items_cost |
Type: number The cost of the order for the partner minus the cost delivery (including partner discounts) |
Example
{
"eats_id": "230328-354380",
"order_id": "example",
"status": {
"status": "NEW",
"comment": "New order",
"updatedAt": "1937-01-01T12:00:27.870000+00:20"
},
"items": [
{
"id": "example",
"name": "example",
"quantity": 0.5,
"price": 123.78,
"original_price": 100.23,
"weight": 0.5,
"measure_unit": "example",
"modifications": [
{
"id": "example",
"group_id": "937c57f6-4508-4858-be7f-20691a16fbb1",
"name": "example",
"quantity": 0,
"price": 10.5
}
]
}
],
"items_cost": 0.5
}
400 Bad Request
Request error
Body
application/json
{
"message": "example",
"code": "example"
}
|
Name |
Description |
|
code |
Type: string Error code Example: |
|
message |
Type: string Error message Example: |
500 Internal Server Error
Internal server error
Body
application/json
{
"message": "example",
"code": "example"
}
|
Name |
Description |
|
code |
Type: string Error code Example: |
|
message |
Type: string Error message Example: |