Information about orders in the store
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
- communication — Customer communication
- all-methods — Full account management
- all-methods:read-only — View all data
Returns information about orders in the store. The query can be used to track orders and their statuses.
By default, data about test orders is not received. To get them, pass the value true in the parameter fake.
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 POST v1/businesses/{businessId}/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); -
order IDs;
-
the type of order (real or test).
Information about orders that were delivered or cancelled more than 30 days ago is not returned. How to get it:
- GET v2/campaigns/{campaignId}/orders/{orderId}, if there is an order ID.
- POST v2/campaigns/{campaignId}/stats/orders.
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: 100,000 requests per hour |
|---|
Request
GET
https://api.partner.market.yandex.ru/v2/campaigns/{campaignId}/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 |
|
buyerType |
Type: string Filtering orders by customer type.
Enum: |
|
dispatchType |
Type: string Shipping method
Enum: |
|
fake |
Type: boolean Filtering orders by type:
Default: |
|
fromDate |
Type: string<date> The starting date for filtering orders by checkout date. Date format: Between the start and end date (parameter Default value: 30 days ago from the current date. |
|
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):
Such codes are assigned to products that are subject to labeling and belong to certain categories.
Default: |
|
limit |
Type: integer<int32> The number of values per page.
Min value: |
|
onlyEstimatedDelivery |
Type: boolean Filtering orders with long delivery (31-60 days) by confirmed delivery date:
Default: |
|
onlyWaitingForCancellationApprove |
Type: boolean For the model only DBS A filter for receiving orders for which there was a cancellation request. With the value To confirm or reject the cancellation, send a request PUT v2/campaigns/{campaignId}/orders/{orderId}/cancellation/accept.
Default: |
|
orderIds |
Type: integer[] Filtering orders by IDs.
Min items: Max items: |
|
page |
Type: integer<int32> If the method has Use it instead of the parameter The number of the results page. Used together with the parameter
Default: Max value: |
|
pageSize |
Type: integer<int32> Page size. Used together with the parameter
|
|
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 |
|
status |
Type: string[] Order status:
Other values may also be returned. You don't need to process them. Enum: Unique items |
|
substatus |
Type: string[] Order processing stage (status Possible values for the order in the status
Possible values for the order in the status
Other values may also be returned. You don't need to process them. Enum: Unique items |
|
supplierShipmentDateFrom |
Type: string<date> The starting date for filtering orders by the date of shipment to the delivery service (parameter Date format: Between the start and end date (parameter The start date is included in the interval for filtering. |
|
supplierShipmentDateTo |
Type: string<date> The end date for filtering orders by the date of shipment to the delivery service (parameter Date format: Between the initial (parameter The end date is not included in the filtering interval. If the time interval between |
|
toDate |
Type: string<date> The end date for filtering orders by checkout date. Orders created before 00:00 on the specified day are shown. Date format: Between the initial (parameter Default value: current date. If the time interval between |
|
updatedAtFrom |
Type: string<date-time> The starting date for filtering orders by date and time of the update (parameter Date format: ISO 8601 with an offset relative to UTC. For example, Between the start and end date (parameter The start date is included in the interval for filtering. |
|
updatedAtTo |
Type: string<date-time> The end date for filtering orders by date and time of the update (parameter Date format: ISO 8601 with an offset relative to UTC. For example, Between the initial (parameter The end date is not included in the filtering interval. |
Responses
200 OK
Information about orders.
Body
application/json
{
"pager": {
"total": 0,
"from": 0,
"to": 0,
"currentPage": 0,
"pagesCount": 0,
"pageSize": 0
},
"orders": [
{
"id": 0,
"externalOrderId": "string",
"status": "PLACING",
"substatus": "RESERVATION_EXPIRED",
"creationDate": "23-09-2022 09:12:41",
"updatedAt": "23-09-2022 09:12:41",
"currency": "RUR",
"itemsTotal": 0,
"deliveryTotal": 0,
"buyerItemsTotal": 0,
"buyerTotal": 0,
"buyerItemsTotalBeforeDiscount": 0,
"buyerTotalBeforeDiscount": 0,
"paymentType": "PREPAID",
"paymentMethod": "CASH_ON_DELIVERY",
"fake": false,
"items": [
{
"id": 0,
"offerId": "string",
"offerName": "string",
"price": 0,
"buyerPrice": 0,
"buyerPriceBeforeDiscount": 0,
"priceBeforeDiscount": 0,
"count": 0,
"vat": "NO_VAT",
"shopSku": "string",
"subsidy": 0,
"partnerWarehouseId": "string",
"promos": [
{
"type": "DIRECT_DISCOUNT",
"discount": 0,
"subsidy": 0,
"shopPromoId": "string",
"marketPromoId": "string"
}
],
"instances": [
{
"cis": "string",
"cisFull": "string",
"uin": "string",
"rnpt": "string",
"gtd": "string",
"countryCode": "RU"
}
],
"details": [
{
"itemCount": 0,
"itemStatus": "REJECTED",
"updateDate": "23-09-2022"
}
],
"subsidies": [
{
"type": "YANDEX_CASHBACK",
"amount": 0
}
],
"requiredInstanceTypes": [
"CIS"
],
"tags": [
"ULTIMA"
]
}
],
"subsidies": [
{
"type": "YANDEX_CASHBACK",
"amount": 0
}
],
"delivery": {
"id": "string",
"type": "DELIVERY",
"serviceName": "string",
"price": 0,
"deliveryPartnerType": "SHOP",
"courier": {
"fullName": "string",
"phone": "string",
"phoneExtension": "string",
"vehicleNumber": "string",
"vehicleDescription": "string"
},
"dates": {
"fromDate": "23-09-2022",
"toDate": "23-09-2022",
"fromTime": "string",
"toTime": "string",
"realDeliveryDate": "23-09-2022"
},
"region": {
"id": 0,
"name": "string",
"type": "OTHER"
},
"address": {
"country": "string",
"postcode": "string",
"city": "string",
"district": "string",
"subway": "string",
"street": "string",
"house": "string",
"estate": "string",
"block": "string",
"building": "string",
"entrance": "string",
"entryphone": "string",
"floor": "string",
"apartment": "string",
"phone": "string",
"recipient": "string",
"gps": {
"latitude": 0,
"longitude": 0
}
},
"vat": "NO_VAT",
"deliveryServiceId": 0,
"logisticPointId": 0,
"liftType": "NOT_NEEDED",
"liftPrice": 0,
"outletCode": "string",
"outletStorageLimitDate": "23-09-2022",
"dispatchType": "UNKNOWN",
"tracks": [
{
"trackCode": "string",
"deliveryServiceId": 0
}
],
"shipments": [
{
"id": 0,
"shipmentDate": "23-09-2022",
"shipmentTime": "string",
"tracks": [
{
"trackCode": "string",
"deliveryServiceId": 0
}
],
"boxes": [
{
"id": 0,
"fulfilmentId": "string"
}
]
}
],
"estimated": false,
"eacType": "MERCHANT_TO_COURIER",
"eacCode": "string"
},
"buyer": {
"id": "string",
"lastName": "string",
"firstName": "string",
"middleName": "string",
"type": "PERSON"
},
"notes": "string",
"taxSystem": "OSN",
"cancelRequested": false,
"expiryDate": "23-09-2022 09:12:41"
}
],
"paging": {
"nextPageToken": "string"
}
}
|
Name |
Description |
||||||||||||
|
orders* |
Type: object[] The order model.
Max items: |
||||||||||||
|
pager |
Type: object
A model for pagination. |
||||||||||||
|
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.