Information about orders in the cabinet
The method is available for models: FBY, FBS, Express and DBS.
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
- finance-and-accounting — View financial data and reports
- all-methods — Full account management
- all-methods:read-only — View all data
Returns information about orders in the merchant profile. The query can be used to track orders and their statuses.
You can also set up API notifications.
Yandex.Market will send you request when a new order appears or its status changes. And full information can be obtained using this method., GET v2/campaigns/{campaignId}/orders/{orderId} or GET v2/campaigns/{campaignId}/orders.
Filtering by parameters is available:
-
the date of the order.
-
date and time of the order update;
-
date of shipment;
-
order statuses (
statuses); -
stages of processing or reasons for cancellation (
substatuses); -
campaign IDs;
-
order IDs;
-
external order IDs;
-
the type of order (real or test);
-
the type of buyer;
-
placement models;
-
the availability of requests from customers to cancel the order.
Maximum date range per request — 30 days (passed in the parameters fromDate and toDate). If they are not transmitted, the information for the last 30 days is returned.
The results are returned page by page. To navigate, use the parameters page_token and limit.
You can get more detailed information about the buyer and his phone number by requesting GET v2/campaigns/{campaignId}/orders/{orderId}/buyer.
Restriction for the parameter limit
Do not transmit a value greater than 50.
| ⚙️ Limit: 10,000 requests per hour |
|---|
Request
POST
https://api.partner.market.yandex.ru/v1/businesses/{businessId}/orders
Path parameters
|
Name |
Description |
|
businessId* |
Type: integer<int64> Cabinet ID. To find out, use the request GET v2/campaigns. ℹ️ What is a cabinet and a store on the Market?
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
{
"orderIds": [
0
],
"externalOrderIds": [
"string"
],
"programTypes": [
"FBY"
],
"campaignIds": [
0
],
"statuses": [
"PLACING"
],
"substatuses": [
"RESERVATION_EXPIRED"
],
"dates": {
"creationDateFrom": "string",
"creationDateTo": "string",
"shipmentDateFrom": "string",
"shipmentDateTo": "string",
"updateDateFrom": "2022-12-29T18:02:01Z",
"updateDateTo": "2022-12-29T18:02:01Z"
},
"fake": false,
"waitingForCancellationApprove": false
}
|
Name |
Description |
||||||||||||
|
campaignIds |
Type: integer[] Campaign IDs. Min items: Max items: Unique items |
||||||||||||
|
dates |
Type: object
Filter by order dates. |
||||||||||||
|
externalOrderIds |
Type: string[] External order IDs. Min length: Min items: Max items: Unique items |
||||||||||||
|
fake |
Type: boolean Order type:
|
||||||||||||
|
orderIds |
Type: integer[] Order IDs. Min items: Max items: Unique items |
||||||||||||
|
programTypes |
Type: string[] Models of the store's operation on the Market.
Enum: Min items: Unique items |
||||||||||||
|
statuses |
Type: string[] Order statuses.
Other values may also be returned. You don't need to process them. Enum: Min items: Unique items |
||||||||||||
|
substatuses |
Type: string[] Stages of processing or reasons for canceling orders.
Other values may also be returned. You don't need to process them. Enum: Min items: Unique items |
||||||||||||
|
waitingForCancellationApprove |
Type: boolean For the model only DBS A filter for receiving orders that have cancellation requests. With the value |
Responses
200 OK
The list of orders in the cabinet.
Body
application/json
{
"orders": [
{
"orderId": 0,
"campaignId": 0,
"programType": "FBY",
"externalOrderId": "string",
"status": "PLACING",
"substatus": "RESERVATION_EXPIRED",
"creationDate": "2020-02-02T14:30:30+03:00",
"updateDate": "2020-02-02T14:30:30+03:00",
"paymentType": "PREPAID",
"paymentMethod": "CASH_ON_DELIVERY",
"fake": false,
"items": [
{
"id": 0,
"offerId": "string",
"offerName": "string",
"count": 0,
"prices": {
"payment": {
"value": 0,
"currencyId": "RUR"
},
"subsidy": {
"value": 0,
"currencyId": "RUR"
},
"cashback": {
"value": 0,
"currencyId": "RUR"
},
"vat": "NO_VAT"
},
"instances": [
{
"cis": "string",
"cisFull": "string",
"uin": "string",
"rnpt": "string",
"gtd": "string",
"countryCode": "RU"
}
],
"requiredInstanceTypes": [
"CIS"
],
"tags": [
"ULTIMA"
]
}
],
"prices": {
"payment": {
"value": 0,
"currencyId": "RUR"
},
"subsidy": {
"value": 0,
"currencyId": "RUR"
},
"cashback": {
"value": 0,
"currencyId": "RUR"
},
"delivery": {
"payment": {
"value": 0,
"currencyId": "RUR"
},
"subsidy": {
"value": 0,
"currencyId": "RUR"
},
"vat": "NO_VAT"
}
},
"delivery": {
"type": "DELIVERY",
"serviceName": "string",
"deliveryServiceId": 0,
"warehouseId": "string",
"deliveryPartnerType": "SHOP",
"dispatchType": "UNKNOWN",
"dates": {
"fromDate": "string",
"toDate": "string",
"fromTime": "string",
"toTime": "string",
"realDeliveryDate": "string"
},
"shipment": {
"id": 0,
"shipmentDate": "string",
"shipmentTime": "string"
},
"courier": {
"address": {
"country": "string",
"postcode": "string",
"city": "string",
"district": "string",
"subway": "string",
"street": "string",
"house": "string",
"block": "string",
"entrance": "string",
"entryphone": "string",
"floor": "string",
"apartment": "string",
"gps": {
"latitude": 0,
"longitude": 0
}
},
"region": {
"id": 0,
"name": "string",
"type": "OTHER"
}
},
"pickup": {
"address": {
"country": "string",
"postcode": "string",
"city": "string",
"district": "string",
"subway": "string",
"street": "string",
"house": "string",
"block": "string",
"entrance": "string",
"entryphone": "string",
"floor": "string",
"apartment": "string",
"gps": {
"latitude": 0,
"longitude": 0
}
},
"region": {
"id": 0,
"name": "string",
"type": "OTHER"
},
"logisticPointId": 0,
"outletCode": "string",
"outletStorageLimitDate": "string"
},
"transfer": {
"courier": {
"fullName": "string",
"phone": "string",
"phoneExtension": "string",
"vehicleNumber": "string",
"vehicleDescription": "string"
},
"eac": {
"eacType": "MERCHANT_TO_COURIER",
"eacCode": "string"
}
},
"boxesLayout": [
{
"items": [
{
"id": 0,
"fullCount": 0,
"partialCount": {
"current": 0,
"total": 0
},
"instances": [
{
"cis": "string",
"uin": "string",
"rnpt": "string",
"gtd": "string",
"countryCode": "RU"
}
]
}
],
"boxId": 0,
"barcode": "string"
}
],
"tracks": [
{
"trackCode": "string",
"deliveryServiceId": 0
}
],
"estimated": false
},
"services": {
"liftType": "NOT_NEEDED"
},
"buyerType": "PERSON",
"notes": "string",
"cancelRequested": false
}
],
"paging": {
"nextPageToken": "string"
}
}
|
Name |
Description |
||
|
orders* |
Type: object[] The list of orders in the cabinet. Max items: |
||
|
paging |
Type: object
The ID of the next page. |
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.
The security tag helps to prevent the product from being replaced upon return. You will not be able to return the product without the protective tag that was present at the time of purchase.