- Request
- Responses
- 200 OK
- Body
- OrdersStatsDTO
- ApiResponseStatusType
- OrdersStatsOrderDTO
- ForwardScrollingPagerDTO
- OrdersStatsCommissionDTO
- CurrencyType
- OrdersStatsItemDTO
- OrdersStatsPaymentDTO
- OrdersStatsDeliveryRegionDTO
- OrdersStatsOrderPaymentType
- OrdersStatsSubsidyDTO
- OrdersStatsCommissionType
- OrdersStatsDetailsDTO
- OrdersStatsPriceDTO
- OrdersStatsWarehouseDTO
- OrdersStatsPaymentOrderDTO
- OrdersStatsPaymentSourceType
- OrdersStatsPaymentType
- OrdersStatsSubsidyOperationType
- OrdersStatsSubsidyType
- OrdersStatsItemStatusType
- OrdersStatsStockType
- OrdersStatsPriceType
- 400 Bad Request
- 401 Unauthorized
- 403 Forbidden
- 404 Not Found
- 420 Method Failure
- 500 Internal Server Error
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 of obtaining information about 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/campaigns/{campaignId}/stats/orders
Path parameters
Name |
Description |
campaignId* |
Type: integer<int64> The campaign ID. You can find it using a query GET campaigns or find it in the seller's office on the Market — click on the name of your business and go to the page:
, Do not send the store's ID instead, which is indicated in the seller's account on the Market next to the store's 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 Do I need to return only those orders that contain at least one item with an identification code in the system? "An honest SIGN" or «ASL BELGISI» (for sellers of the Yandex Go Market):
|
orders |
Type: integer<int64>[] List of order IDs. During order processing, yandex.Market can delete items from it in case of problems in the warehouse or at the user's initiative.
Min items: Unique items |
statuses |
Type: OrderStatsStatusType[] 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 |
OrderStatsStatusType
Current order status:
-
CANCELLED_BEFORE_PROCESSING
— the order was cancelled before it was processed. -
CANCELLED_IN_DELIVERY
— the order is cancelled during its delivery. -
CANCELLED_IN_PROCESSING
— the order is cancelled during its processing. -
DELIVERY
— the order has been transferred to the delivery service. -
DELIVERED
— the order has been delivered. -
PARTIALLY_DELIVERED
— the order has been partially delivered.The order status can change to
PARTIALLY_DELIVERED
Not immediatelyIf there was a non-purchase in the delivered order, the status will change only after the order is received at the Market warehouse.
-
PARTIALLY_RETURNED
— the order has been partially refunded by the buyer. -
PENDING
— the order is awaiting confirmation. -
PICKUP
— the order has been delivered to the pick-up point. -
PROCESSING
— the order is in processing. -
RESERVED
— the product is reserved in the warehouse. -
RETURNED
— the order is fully refunded by the buyer. -
UNKNOWN
— unknown order status. -
UNPAID
— an order from a legal entity is awaiting payment. -
LOST
— the order is lost.
Type |
Description |
Enum: |
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
}
],
"currency": "RUR"
}
],
"paging": {
"nextPageToken": "string"
}
}
}
Name |
Description |
result |
Type: OrdersStatsDTO Information about orders. |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
OrdersStatsDTO
Information about orders.
Name |
Description |
orders* |
Type: OrdersStatsOrderDTO[] The list of orders. |
paging |
Type: ForwardScrollingPagerDTO The ID of the next page. |
ApiResponseStatusType
The type of response. Possible values:
OK
— there are no mistakes.ERROR
— an error occurred while processing the request.
Type |
Description |
Enum: |
OrdersStatsOrderDTO
Order information.
Name |
Description |
commissions* |
Type: OrdersStatsCommissionDTO[] Information about the cost of services. |
currency* |
Type: CurrencyType The currency in which the prices in the order are indicated. Enum: |
items* |
Type: OrdersStatsItemDTO[] The list of products in the order after possible changes. The order delivery information is added as a separate element in the array During order processing, yandex.Market can delete items from it in case of problems in the warehouse or at the user's initiative.
|
payments* |
Type: OrdersStatsPaymentDTO[] Information about money transfers by order. It may return empty if there is no transfer data. For example, the order is canceled or payment is selected upon receipt (for the DBS model).
|
creationDate |
Type: string<date> The date the order was created. Date format: |
deliveryRegion |
Type: OrdersStatsDeliveryRegionDTO Information about the delivery region. |
fake |
Type: boolean Order type:
|
id |
Type: integer<int64> The order ID. |
initialItems |
Type: OrdersStatsItemDTO[] The list of products in the order. It is returned only if there was a change in the quantity of goods.
During order processing, yandex.Market can delete items from it in case of problems in the warehouse or at the user's initiative.
Min items: |
partnerOrderId |
Type: string The order ID in the store's information system. |
paymentType |
Type: OrdersStatsOrderPaymentType The type of payment for the order. Enum: |
status |
Type: OrderStatsStatusType Current order status:
Enum: |
statusUpdateDate |
Type: string<date-time> The date and time when the order status was last changed. Date and time format: ISO 8601. For example, |
subsidies |
Type: OrdersStatsSubsidyDTO[] Accrual of points that are used to reduce the cost of placement, and their deduction in case of non-purchase or refund. Min items: |
ForwardScrollingPagerDTO
The ID of the next page.
Name |
Description |
nextPageToken |
Type: string ID of the next results page. |
OrdersStatsCommissionDTO
Information about the cost of services.
Name |
Description |
actual |
Type: number The amount that was billed at the time the order was created and that needs to be paid. The precision is two decimal places. |
type |
Type: OrdersStatsCommissionType Service. Enum: |
CurrencyType
Currency codes:
RUR
— the Russian ruble.UAH
— the Ukrainian hryvnia.BYR
— Belarusian ruble.KZT
— Kazakhstani tenge.UZS
— Uzbek sum.
Type |
Description |
Enum: |
OrdersStatsItemDTO
The list of products in the order after possible changes.
During order processing, yandex.Market can delete items from it in case of problems in the warehouse or at the user's initiative.
-
If all the items are deleted from the order, it will not be in the list.
items
— only in the listinitialItems
. -
If there is at least one item left in the order, it will be in the list.
items
(with a reduced number of unitscount
), and in the listinitialItems
(with the initial number of unitsinitialCount
).
Name |
Description |
bidFee |
Type: integer<int32> The deducted bid of the nearest competitor. It is indicated as a percentage of the cost of the product and multiplied by 100. For example, the 5% rate is indicated as 500. Example: Min value: Max value: |
cisList |
Type: string[] List of product identification codes in the system "An honest SIGN" or «ASL BELGISI» (for sellers of the Yandex Go Market). Min items: Unique items |
cofinanceThreshold |
Type: number The threshold for discounts with Yandex.Market at the time of placing the order. What is it? The precision is two decimal places. |
cofinanceValue |
Type: number Discount with Yandex. Market. What is it? The precision is two decimal places. |
count |
Type: integer<int32> The number of product units, including deleted units. If all items are removed from the order, it will only be included in the list. |
details |
Type: OrdersStatsDetailsDTO[] Information about the removal of the product from the order. Min items: |
initialCount |
Type: integer<int32> The initial number of product units. |
marketSku |
Type: integer<int64> The ID of the product card on the Market. Min value: |
offerName |
Type: string Product name. |
prices |
Type: OrdersStatsPriceDTO[] The price or discounts on the product. Min items: |
shopSku |
Type: string Your SKU is the product identifier in your system. SKU Usage Rules:
The SKU of the product can be changed in the seller's account on the Market. Read about how to do this. in the Help of the Market for sellers. What is a SKU and how to assign it Min length: Max length: Pattern: |
warehouse |
Type: OrdersStatsWarehouseDTO Information about the warehouse where the product is stored. |
OrdersStatsPaymentDTO
Information about money transfers by order.
Name |
Description |
date |
Type: string<date> Date of the money transfer. Date format: |
id |
Type: string The money transfer ID. |
paymentOrder |
Type: OrdersStatsPaymentOrderDTO Information about the payment order. |
source |
Type: OrdersStatsPaymentSourceType The money transfer method. Enum: |
total |
Type: number The amount of the money transfer. The precision is two decimal places. |
type |
Type: OrdersStatsPaymentType The type of money transfer. Enum: |
OrdersStatsDeliveryRegionDTO
Information about the delivery region.
Name |
Description |
id |
Type: integer<int64> The identifier of the delivery region. |
name |
Type: string The name of the delivery region. |
OrdersStatsOrderPaymentType
Order payment type:
POSTPAID
— the order is paid after it has been received.PREPAID
— the order was paid for before it was received.UNKNOWN
— unknown type of payment. Most likely, the buyer canceled or returned the order, or there was no payment for it.
Type |
Description |
Enum: |
OrdersStatsSubsidyDTO
Information about the accrual of points that are used to reduce the cost of placement, and their deduction in case of non-purchase or refund.
Name |
Description |
amount* |
Type: number The number of points that are used to reduce the cost of placement, accurate to two decimal places. |
operationType* |
Type: OrdersStatsSubsidyOperationType The type of operation with points that are used to reduce the cost of placement. Enum: |
type* |
Type: OrdersStatsSubsidyType The source of the points that are used to reduce the cost of placement. Enum: |
OrdersStatsCommissionType
Service:
FEE
— product placement on the Market.FULFILLMENT
— warehouse handling. Non-refundable since January 1, 2024.LOYALTY_PARTICIPATION_FEE
— participation in the loyalty program and feedback for points.AUCTION_PROMOTION
— boost sales with pay-per-sales.INSTALLMENT
— installments. It has not been returned since February 24, 2022.DELIVERY_TO_CUSTOMER
— delivery to the buyer (FBY, FBS). For DBS and Express, if the order is returned through Yandex. Market logistics.EXPRESS_DELIVERY_TO_CUSTOMER
— express delivery to the buyer (Express).AGENCY
— acceptance of the buyer's payment.PAYMENT_TRANSFER
— transfer of the buyer's payment.RETURNED_ORDERS_STORAGE
— storage of non-purchases and refunds (FBS). For DBS and Express, if the order is returned through Yandex. Market logistics.SORTING
— order processing (FBS).INTAKE_SORTING
— organization of picking up orders from the seller's warehouse (FBS).RETURN_PROCESSING
— Warehouse Order processing (FBS). For DBS and Express, if the order is returned through Yandex. Market logistics.ILLIQUID_GOODS_SALE
— remuneration for the sale of non-imported goods.
Type |
Description |
Enum: |
OrdersStatsDetailsDTO
Information about the removal of the product from the order.
Name |
Description |
itemCount |
Type: integer<int64> The quantity of the product with the status specified in the parameter |
itemStatus |
Type: OrdersStatsItemStatusType The status of the product. Enum: |
stockType |
Type: OrdersStatsStockType Product type. Enum: |
updateDate |
Type: string<date> The date when the product received the status specified in the parameter Date format: |
OrdersStatsPriceDTO
The price or discounts on the product.
Name |
Description |
costPerItem |
Type: number The price or discount per unit in the order. The precision is two decimal places. Includes VAT. |
total |
Type: number The total price or discount for all items in the order. The precision is two decimal places. Includes VAT. |
type |
Type: OrdersStatsPriceType The type of discount or the price of the product. Enum: |
OrdersStatsWarehouseDTO
Information about the warehouse where the product is stored.
Name |
Description |
id |
Type: integer<int64> The warehouse ID. |
name |
Type: string The name of the warehouse. |
OrdersStatsPaymentOrderDTO
Information about the payment order.
Name |
Description |
date |
Type: string<date> The date of the payment order. Date format: |
id |
Type: string The number of the payment order. |
OrdersStatsPaymentSourceType
Money transfer method:
BUYER
— payment or refund in cash.
Outdated methods:
CASHBACK
.MARKETPLACE
.SPLIT
.
Type |
Description |
Enum: |
OrdersStatsPaymentType
Type of money transfer:
PAYMENT
— payment.REFUND
— refund.
Type |
Description |
Enum: |
OrdersStatsSubsidyOperationType
The type of operation with points that are used to reduce the cost of placement:
ACCRUAL
— scoring points.DEDUCTION
— deduction of points.
Type |
Description |
Enum: |
OrdersStatsSubsidyType
The source of the points that are used to reduce the cost of placement:
-
YANDEX_CASHBACK
— discount on Yandex Plus subscription. -
SUBSIDY
— Yandex. Market discount (for promotions, promo codes, coupons, etc.) -
DELIVERY
— discount for shipping (DBS).
Type |
Description |
Enum: |
OrdersStatsItemStatusType
Product status:
REJECTED
— the product was added to the created order, but was not paid for.RETURNED
— the product has been returned.
Type |
Description |
Enum: |
OrdersStatsStockType
Product Type:
-
FIT
— the product is of good quality. -
DEFECT
— the product is defective. -
EXPIRED
— expired product.
Type |
Description |
Enum: |
OrdersStatsPriceType
Discount type or product price:
BUYER
— the price of the product, including discounts, including coupons.CASHBACK
— Plus points.MARKETPLACE
— coupons.
Type |
Description |
Enum: |
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: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
ApiErrorDTO
The general error format.
Name |
Description |
code* |
Type: string The error code. |
message |
Type: string Description of the error. |
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: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType 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: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType 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: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType 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: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType 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: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
No longer supported, please use an alternative and newer version.