Information about multiple 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 product models.
You can get information about up to 100 models in one request.
For methods GET models
, GET models/{modelId}
and POST models
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 models per hour |
---|
Request
POST
https://api.partner.market.yandex.ru/models
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). |
CurrencyType
Currency codes:
RUR
— Russian ruble.UAH
— the Ukrainian hryvnia.BYR
— Belarusian ruble.KZT
— Kazakhstani tenge.UZS
— Uzbek sum.
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
Information about the models.
Body
application/json
{
"models": [
{
"id": 0,
"name": "string",
"prices": {
"avg": 0,
"max": 0,
"min": 0
}
}
],
"currency": "RUR",
"regionId": 0
}
Name |
Description |
models* |
Type: ModelDTO[] 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. Information about the region by ID can be obtained using a request. GET regions/{regionId}. |
ModelDTO
The product model.
Name |
Description |
id |
Type: integer<int64> The product model ID. |
name |
Type: string The name of the product model. |
prices |
Type: ModelPriceDTO Information about prices for the product model. |
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 of 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.