Detailed information on orders
The method is available for all models.
If you are using an API Key token, one of the accesses in the list is required to call the method
- inventory-and-order-processing — Order processing and inventory
- inventory-and-order-processing:read-only — View order information
- all-methods — Full account management
- all-methods:read-only — View all data
Returns information about orders on the Market that contain your products.
You can use it to collect statistics on your orders and find out, for example, which of the products are most often returned by customers, which, on the contrary, are in high demand, etc.
Information on created or updated orders may appear with a delay of up to 40 minutes.
To get the data without delay, use the method GET v2/campaigns/{campaignId}/orders or POST v1/businesses/{businessId}/orders.
You can get information on up to 200 orders in one request.
| ⚙️ Limit: 1,000,000 orders per hour |
|---|
Request
POST
https://api.partner.market.yandex.ru/v2/campaigns/{campaignId}/stats/orders
Path parameters
|
Name |
Description |
|
campaignId* |
Type: integer<int64> The campaign ID. You can find it using a query GET v2/campaigns or find it in the seller's office on the Market — click on your account icon → Settings and in the menu on the left, select APIs and modules:
⚠️ Do not send the store ID instead, which is indicated in the seller's account on the Market next to the store name and in some reports.
Min value: |
Query parameters
|
Name |
Description |
|
limit |
Type: integer<int32> The number of values per page.
Min value: |
|
page_token |
Type: string ID of the results page. If the parameter is omitted, the first page is returned. We recommend transmitting the value of the output parameter If set |
Body
application/json
{
"dateFrom": "string",
"dateTo": "string",
"updateFrom": "string",
"updateTo": "string",
"orders": [
0
],
"statuses": [
"CANCELLED_BEFORE_PROCESSING"
],
"hasCis": false
}
|
Name |
Description |
|
dateFrom |
Type: string<date> The initial date when the order was generated. Date format: Cannot be used together with parameters |
|
dateTo |
Type: string<date> The end date when the order was generated. Date format: Cannot be used together with parameters |
|
hasCis |
Type: boolean A filter for receiving orders that contain at least one product with an identification code in the system. «Честный ЗНАК» or «ASL BELGISI» (for sellers Market Yandex Go):
|
|
orders |
Type: integer[] List of order IDs. During order processing, the Market can delete items from it. — in case of problems in the warehouse or at the initiative of the user.
Min items: Unique items |
|
statuses |
Type: string[] List of order statuses.
Enum: Min items: Unique items |
|
updateFrom |
Type: string<date> The start date of the period for which changes were made to the order (for example, status or payment information). Date format: Cannot be used together with parameters |
|
updateTo |
Type: string<date> The end date of the period for which the order was changed (for example, the status or payment information). Date format: Cannot be used together with parameters |
Responses
200 OK
Information about orders.
Body
application/json
{
"status": "OK",
"result": {
"orders": [
{
"id": 0,
"creationDate": "string",
"statusUpdateDate": "2022-12-29T18:02:01Z",
"status": "CANCELLED_BEFORE_PROCESSING",
"partnerOrderId": "string",
"paymentType": "POSTPAID",
"fake": false,
"deliveryRegion": {
"id": 0,
"name": "string"
},
"items": [
{
"offerName": "string",
"marketSku": 0,
"shopSku": "string",
"count": 0,
"prices": [
{
"type": "BUYER",
"costPerItem": 0,
"total": 0
}
],
"warehouse": {
"id": 0,
"name": "string"
},
"details": [
{
"itemStatus": "REJECTED",
"itemCount": 0,
"updateDate": "string",
"stockType": "FIT"
}
],
"cisList": [
"string"
],
"initialCount": 0,
"bidFee": 570,
"cofinanceThreshold": 0,
"cofinanceValue": 0
}
],
"initialItems": [
{
"offerName": "string",
"marketSku": 0,
"shopSku": "string",
"count": 0,
"prices": [
{
"type": "BUYER",
"costPerItem": 0,
"total": 0
}
],
"warehouse": {
"id": 0,
"name": "string"
},
"details": [
{
"itemStatus": "REJECTED",
"itemCount": 0,
"updateDate": "string",
"stockType": "FIT"
}
],
"cisList": [
"string"
],
"initialCount": 0,
"bidFee": 570,
"cofinanceThreshold": 0,
"cofinanceValue": 0
}
],
"payments": [
{
"id": "string",
"date": "string",
"type": "PAYMENT",
"source": "BUYER",
"total": 0,
"paymentOrder": {
"id": "string",
"date": "string"
}
}
],
"commissions": [
{
"type": "FEE",
"actual": 0
}
],
"subsidies": [
{
"operationType": "ACCRUAL",
"type": "YANDEX_CASHBACK",
"amount": 0
}
],
"buyerType": "PERSON",
"currency": "RUR"
}
],
"paging": {
"nextPageToken": "string"
}
}
}
|
Name |
Description |
||||||
|
status* |
Type: string The type of response. Possible values:
Enum: |
||||||
|
result |
Type: object
Information about orders. |
400 Bad Request
The request contains incorrect data. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] A list of errors. Min items: |
|
status |
Type: string The type of response. Possible values:
Enum: |
401 Unauthorized
The authorization data is not specified in the request. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] A list of errors. Min items: |
|
status |
Type: string The type of response. Possible values:
Enum: |
403 Forbidden
The authorization data is incorrect or access to the resource is prohibited. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] A list of errors. Min items: |
|
status |
Type: string The type of response. Possible values:
Enum: |
404 Not Found
The requested resource was not found. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] A list of errors. Min items: |
|
status |
Type: string The type of response. Possible values:
Enum: |
420 Method Failure
The resource access limit has been exceeded. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] A list of errors. Min items: |
|
status |
Type: string The type of response. Possible values:
Enum: |
500 Internal Server Error
Internal error of the Market. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] A list of errors. Min items: |
|
status |
Type: string The type of response. Possible values:
Enum: |
No longer supported, please use an alternative and newer version.