几种型号的报价列表
方法适用于模式DBS.
目前不适用于卖家Market Yandex Go.
如果您使用API-Key令牌,调用该方法时需要具备列表中可用权限之一
返回有关位于其Id在请求中指定的模型卡上的前十个优惠的信息。
报价是针对特定地区发出的,并按照它们在模型卡上的市场输出中显示的相同顺序排列。
组模型不支持建议。 组模型的Id将被忽略。
在一个请求中,您可以获得多达100种型号的优惠信息。
对于方法 GET v2/models/{modelId}/offers 和 POST v2/models/offers 组资源限制生效。 该限制是对模型的总数施加的,使用这些方法请求的信息。
| ⚙️ 限制: 每小时100,000个优惠 |
|---|
Request
POST
https://api.partner.market.yandex.ru/v2/models/offers
Query parameters
|
Name |
Description |
|
regionId* |
Type: integer<int64> 区域的ID。 您可以使用请求获取区域ID GET v2/regions. |
|
currency |
Type: string 在搜索结果页面上显示报价的货币。 可能的值:
默认值:使用商店的国家货币(商店原产国的国家货币)。
Enum: |
|
orderByPrice |
Type: string 按价格排序的方向。 可能的值:
默认值:句子以任何顺序显示。
Enum: |
Body
application/json
{
"models": [
0
]
}
|
Name |
Description |
|
models* |
Type: integer[] 模型列表。 Min value (exclusive): Min items: Unique items |
Responses
200 OK
模型的报价列表。
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: object[] 产品型号列表。 |
|
currency |
Type: string 货币代码:
Enum: |
|
regionId |
Type: integer<int64> 显示模型提供信息(传递到该区域)的区域的ID。 您可以使用请求通过ID获取有关区域的信息。 GET v2/regions/{regionId}. |
400 Bad Request
请求包含不正确的数据。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] 错误列表。 Min items: |
|
status |
Type: string 响应的类型。 可能的值:
Enum: |
401 Unauthorized
请求中未指定授权数据。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] 错误列表。 Min items: |
|
status |
Type: string 响应的类型。 可能的值:
Enum: |
403 Forbidden
授权数据不正确或禁止访问资源。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] 错误列表。 Min items: |
|
status |
Type: string 响应的类型。 可能的值:
Enum: |
404 Not Found
找不到请求的资源。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] 错误列表。 Min items: |
|
status |
Type: string 响应的类型。 可能的值:
Enum: |
420 Method Failure
已超出资源访问限制。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] 错误列表。 Min items: |
|
status |
Type: string 响应的类型。 可能的值:
Enum: |
500 Internal Server Error
市场的内部错误。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] 错误列表。 Min items: |
|
status |
Type: string 响应的类型。 可能的值:
Enum: |
No longer supported, please use an alternative and newer version.