❗️Order information
Method for retrieving order information.
Request
GET
/order/{orderId}
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 |
Responses
200 OK
Order information successfully transmitted.
Body
application/json
{
"discriminator": "yandex",
"eatsId": "230130-1234567",
"items": [
{
"id": "some-uniq-identifier",
"name": "“Milk Original\"",
"originPrice": 70,
"price": 84,
"quantity": 3.4,
"marking": [
{
"datamatrix": "string",
"gisMarkCheck": {
"datetime": "2023-08-22 08:08:22.065000+00:00",
"id": "2ce10bdb-6510-4d37-be04-dd473b98c728"
},
"quantity": 0.5
}
]
}
]
}
|
Name |
Description |
|
...rest |
oneOf YandexOrderUpdate Order information with Yandex Eats courier delivery – "yandex" |
|
...rest |
oneOf MarketplaceOrderUpdate Order information with Partner courier delivery – "marketplace". |
|
...rest |
oneOf PickupOrderUpdate Pickup order information. |
YandexOrderUpdate
Order information with Yandex Eats courier delivery – "yandex"
|
Name |
Description |
|
discriminator* |
Type: string Schema discriminator. For orders with Yandex Eats courier delivery equals "yandex". Example: |
|
eatsId* |
Type: string End-to-end order identifier on Yandex Eats side in DDDDDD-DDDDDDD format. Example: |
|
items* |
Type: OrderUpdateItem[] |
MarketplaceOrderUpdate
Order information with Partner courier delivery – "marketplace".
|
Name |
Description |
|
deliveryInfo* |
Type: MarketplaceUpdateOrderDeliveryInfo Delivery information. |
|
discriminator* |
Type: string Schema discriminator. For orders with Partner courier delivery it equals "marketplace". Example: |
|
eatsId* |
Type: string End-to-end order identifier on Yandex Eats side in DDDDDD-DDDDDDD format. Example: |
|
items* |
Type: OrderUpdateItem[] |
|
paymentInfo* |
|
|
comment |
Type: string Additional order information. Example: |
|
platform |
Type: Platform Platform identifier, DC – Delivery Club, YE – Yandex Eats, LAVKA – Lavka, VSEAPTEKI – Vseapteki. Example: Enum: |
|
restaurantId |
Type: string Internal unique store identifier in partner system. Free format, UUID4 recommended. Example: |
PickupOrderUpdate
Pickup order information.
|
Name |
Description |
|
deliveryInfo* |
Type: PickupDeliveryInfo Delivery information. |
|
discriminator* |
Type: string Schema discriminator. For pickup orders it is equal to "pickup". Example: |
|
eatsId* |
Type: string End-to-end order identifier on Yandex Eats side in DDDDDD-DDDDDDD format. Example: |
|
items* |
Type: OrderCreateItem[] |
|
paymentInfo* |
Type: YandexOrderPaymentInfo |
|
brand |
Type: string Brand |
|
comment |
Type: string Additional order information. Example: |
|
platform |
Type: Platform Platform identifier, DC – Delivery Club, YE – Yandex Eats, LAVKA – Lavka, VSEAPTEKI – Vseapteki. Example: Enum: |
|
restaurantId |
Type: string Internal unique store identifier in partner system. Free format, UUID4 recommended. Example: |
OrderUpdateItem
|
Name |
Description |
|
id* |
Type: string Unique product identifier in the Partner’s system Example: Max length: |
|
price* |
Type: number<double> Price per unit of item. For catch-weight items price is specified per 1 kg. Example: |
|
quantity* |
Type: number<float> Item quantity in order. For catch-weight items quantity is expressed in kg. Example: |
|
marking |
Type: MarkingItem[] Object with item marking information. |
|
name |
Type: string Product name. Example: |
|
originPrice |
Type: number<double> Original item price before applying recommendations. Example: |
MarketplaceUpdateOrderDeliveryInfo
Delivery information.
|
Name |
Description |
|
clientName* |
Type: string Customer name in Yandex Eats service. Example: |
|
deliveryAddress* |
Type: DeliveryAddress Delivery address information. |
|
deliveryDate* |
Type: string<date-time> Delivery date (when customer expects order delivery), in RFC3339 format with fractional seconds (Y-m-d\TH:i:s.uP). Example: |
|
phoneNumber* |
Type: string Phone number for customer contact in international format. Consists of parts "+ Example: |
|
deliverySlot |
Type: DeliverySlot Delivery slot information. |
MarketplaceOrderPaymentInfo
|
Name |
Description |
|
change* |
Type: number<double> Payment amount requiring change. In other words, this is the amount the customer plans to pay with. Usually customer payment occurs by card on Yandex side and this field is transmitted empty to Partners. Example: |
|
deliveryFee* |
Type: number<double> Delivery cost. Example: |
|
itemsCost* |
Type: number<double> Total cost of items in order Example: |
|
paymentType* |
Type: string Payment type information. CARD – order paid by customer on Yandex Eats side, CASH – unpaid order (mainly used for alcohol pickup). Enum: |
|
total |
Type: number<double> Total order cost. Example: |
Platform
Platform identifier, DC – Delivery Club, YE – Yandex Eats, LAVKA – Lavka, VSEAPTEKI – Vseapteki.
|
Type |
Description |
|
Example: Enum: |
PickupDeliveryInfo
Delivery information.
|
Name |
Description |
|
clientArrivementDate* |
Type: string<date-time> Date when the courier is expected to arrive at the store, in RFC3339 format with fractional seconds (Y-m-d\TH:i:s.uP). Make sure to include fractional seconds. Example: |
|
clientName* |
Type: string Customer name in Yandex Eats service. Example: |
|
phoneNumber* |
Type: string Phone number for customer contact in international format. Consists of parts "+ Example: |
|
realPhoneNumber |
Type: string Сustomer phone number without masking, provided with user consent for data transfer and loyalty card binding. Support required only when integrating the partner’s loyalty program in Yandex Eats. Example: |
OrderCreateItem
|
Name |
Description |
|
id* |
Type: string Unique product identifier in the Partner’s system Example: Max length: |
|
price* |
Type: number<double> Price per unit of item. For catch-weight items price is specified per 1 kg. Example: |
|
quantity* |
Type: number<float> Item quantity in order. For catch-weight items quantity is expressed in kg. Example: |
|
name |
Type: string Product name. Example: |
|
originPrice |
Type: number<double> Original item price before applying recommendations. Example: |
YandexOrderPaymentInfo
|
Name |
Description |
|
itemsCost* |
Type: number<double> Total cost of items in order Example: |
|
paymentType* |
Type: string Payment type information. CARD – order paid by customer on Yandex Eats side, CASH – unpaid order (mainly used for alcohol pickup). Enum: |
MarkingItem
|
Name |
Description |
|
datamatrix* |
Type: string Marking as string. |
|
gisMarkCheck |
Type: GisMarkCheck Marking verification results |
|
quantity |
Type: number<float> Product unit weight Example: |
DeliveryAddress
Delivery address information.
|
Name |
Description |
|
full* |
Type: string Full address Example: |
|
latitude* |
Type: string Latitude of delivery point Example: |
|
longitude* |
Type: string Longitude of delivery point Example: |
DeliverySlot
Delivery slot information.
|
Name |
Description |
|
from* |
Type: string<date-time> Delivery slot start Example: |
|
to* |
Type: string<date-time> Delivery slot end. Example: |
|
slotId |
Type: string Slot ID |
GisMarkCheck
Marking verification results
|
Name |
Description |
|
datetime* |
Type: string Date and time of GIS request generation in ISO 8601 format. Example: |
|
id* |
Type: string GIS request ID Example: |
400 Bad Request
Request error. The response is expected to contain an array with an object from the error list.
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
Request error. The response is expected to contain an array with an object from the error list.
500 Internal Server Error
Request error. 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.