A list of offers for several models
The method is available for the DBS model.
Not yet available for Market Yandex Go sellers.
If you are using an API Key token, one of the accesses in the list is required to call the method
- offers-and-cards-management — Manage products and cards
- offers-and-cards-management:read-only — View products and cards
- all-methods — Full account management
- all-methods:read-only — View all data
Returns information about the first ten offers located on the model cards whose IDs are specified in the request.
Offers are issued for a specific region and are arranged in the same order in which they are shown in the Market output on the model card.
Suggestions are not supported for group models. The IDs of the group models are ignored.
In one request, you can get information about offers for up to 100 models.
For methods GET models/{modelId}/offers
and POST models/offers
The group resource limit is in effect. The limit is imposed on the total number of models, information about which is requested using these methods.
, Limit: 100,000 offers per hour |
---|
Request
POST
https://api.partner.market.yandex.ru/models/offers
Query parameters
Name |
Description |
regionId* |
Type: integer<int64> ID of the region. You can get the region ID using a request GET regions. |
currency |
Type: CurrencyType The currency in which the prices of offers are displayed on the search results pages. Possible values:
Default value: the national currency of the store is used (the national currency of the store's country of origin). |
orderByPrice |
Type: SortOrderType The direction of sorting by price. Possible values:
Default value: the sentences are displayed in any order. |
CurrencyType
Currency codes:
RUR
— Russian ruble.UAH
— the Ukrainian hryvnia.BYR
— Belarusian ruble.KZT
— Kazakhstani tenge.UZS
— Uzbek sum.
Type |
Description |
Enum: |
SortOrderType
Sorting direction:
ASC
— sort in ascending order.DESC
— sort in descending order.
Type |
Description |
Enum: |
Body
application/json
{
"models": [
0
]
}
Name |
Description |
models* |
Type: integer<int64>[] List of models. Min value (exclusive): Min items: Unique items |
Responses
200 OK
A list of offers for models.
Body
application/json
{
"models": [
{
"id": 0,
"name": "string",
"prices": {
"avg": 0,
"max": 0,
"min": 0
},
"offers": [
{
"discount": 0,
"name": "string",
"pos": 0,
"preDiscountPrice": 0,
"price": 0,
"regionId": 0,
"shippingCost": 0,
"shopName": "string",
"shopRating": 0,
"inStock": 0
}
],
"offlineOffers": 0,
"onlineOffers": 0
}
],
"currency": "RUR",
"regionId": 0
}
Name |
Description |
models* |
Type: EnrichedModelDTO[] List of product models. |
currency |
Type: CurrencyType Currency codes:
Enum: |
regionId |
Type: integer<int64> ID of the region for which information about the model's offers (delivered to this region) is displayed. You can get information about the region by ID using a request. GET regions/{regionId}. |
EnrichedModelDTO
The product model.
Name |
Description |
id |
Type: integer<int64> The product model ID. |
name |
Type: string The name of the product model. |
offers |
Type: ModelOfferDTO[] A list of the first ten offers located on the model's card. In response to the request, offers from various stores are returned. If there are several offers from the same store, the response displays only one, the most relevant of them.
Min items: |
offlineOffers |
Type: integer<int32> The total number of offers in retail stores in the region. All offers from each store are taken into account. |
onlineOffers |
Type: integer<int32> The total number of offers in online stores in the region. All offers from each store are taken into account. |
prices |
Type: ModelPriceDTO Information about prices for the product model. |
ModelOfferDTO
Information about the offer.
Name |
Description |
discount |
Type: integer<int32> Percentage discount on the offer. |
inStock ⦸
|
Type: integer<int32> Do not use this option. |
name |
Type: string The name of the offer. |
pos |
Type: integer<int32> The position of the offer in the Market output on the model card. |
preDiscountPrice |
Type: number The offer price without the store's discount. |
price |
Type: number The offer price without the discount that the buyer receives when paying via Yandex Pay. |
regionId |
Type: integer<int64> The identifier of the region of the offer (the region from where the product is delivered). First, the offers delivered from the region specified in the request parameter are shown. |
shippingCost |
Type: number The cost of shipping the product to the region:
If the shipping cost is unknown, the parameter is not displayed. |
shopName |
Type: string The name of the store (as displayed on the Market). |
shopRating |
Type: integer<int32> The store's rating. Possible values:
|
ModelPriceDTO
Information about prices for the product model.
Name |
Description |
avg |
Type: number The average offer price for the model in the region. |
max |
Type: number The maximum offer price for a model in the region. |
min |
Type: number The minimum offer price for the model in the region. |
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. |
ApiResponseStatusType
The type of response. Possible values:
OK
— there are no mistakes.ERROR
— an error occurred while processing the request.
Type |
Description |
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: 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 in Yandex. 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.