一个型号的报价一览表
方法适用于模式DBS.
目前不适用于卖家Market Yandex Go.
如果您使用API-Key令牌,调用该方法时需要具备列表中可用权限之一
返回有关模型卡上的前十个优惠的信息。
报价是针对特定地区发出的,并按照它们在模型卡上的市场输出中显示的相同顺序排列。
组模型不支持此方法。 组模型的ID被忽略。
对于方法 GETv2/models/{modelId}/offers
和 POSTv2/models/offers
组资源限制生效。 该限制是对模型的总数施加的,使用这些方法请求的信息。
**⚙️ 限额:**每小时100,000个优惠 |
---|
Request
GET
https://api.partner.market.yandex.ru/v2/models/{modelId}/offers
Path parameters
Name |
Description |
modelId* |
Type: integer<int64> 产品型号ID。 Min value (exclusive): |
Query parameters
Name |
Description |
regionId* |
Type: integer<int64> 区域的ID。 您可以使用请求获取区域ID :no-translate[GET v2/regions]. |
count |
Type: integer<int32> 响应页面上的建议数量。 Default: |
currency |
Type: CurrencyType 在搜索结果页面上显示报价的货币。 可能的值:
默认值:使用商店的国家货币(商店原产国的国家货币)。 |
orderByPrice |
Type: SortOrderType 按价格排序的方向。 可能的值:
默认值:句子以任意顺序显示。 |
page |
Type: integer<int32> 如果方法有 用它代替参数 结果页的编号。 与参数一起使用
Default: Max value: |
CurrencyType
货币代码:
RUR
-俄罗斯卢布。UAH
-乌克兰格里夫纳。BYR
-白俄罗斯卢布。KZT
-哈萨克斯坦坚戈。UZS
-乌兹别克总和。
Type |
Description |
Enum: |
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: EnrichedModelDTO[] 产品型号列表。 |
currency |
Type: CurrencyType 货币代码:
Enum: |
regionId |
Type: integer<int64> 显示模型提供信息(传递到该区域)的区域的ID。 您可以使用请求通过ID获取有关区域的信息。 GET v2/regions/{regionId}. |
EnrichedModelDTO
的产品型号。
Name |
Description |
id |
Type: integer<int64> 产品型号ID。 |
name |
Type: string 产品型号的名称。 |
offers |
Type: ModelOfferDTO[] 位于模型卡上的前十个优惠列表。 响应请求,返回来自各个商店的优惠。 如果同一商店有多个优惠,则响应只显示一个,其中最相关的一个。
Min items: |
offlineOffers |
Type: integer<int32> 该地区零售商店的优惠总数。 每个商店的所有优惠都被考虑在内。 |
onlineOffers |
Type: integer<int32> 该地区在线商店的优惠总数。 每个商店的所有优惠都被考虑在内。 |
prices |
Type: ModelPriceDTO 有关产品型号价格的信息。 |
ModelOfferDTO
有关报价的信息。
Name |
Description |
discount |
Type: integer<int32> 优惠的百分比折扣。 |
inStock ⦸
|
Type: integer<int32> 请勿使用此选项。 |
name |
Type: string 要约的名称。 |
pos |
Type: integer<int32> 模型卡上的报价在市场输出中的位置。 |
preDiscountPrice |
Type: number 没有商店折扣的报价. |
price |
Type: number 没有折扣的报价,买方通过支付时收到 Yandex Pay. |
regionId |
Type: integer<int64> 要约区域的标识符(产品交付的区域)。 首先,将显示从请求参数中指定的区域提供的优惠。 |
shippingCost |
Type: number 将产品运送到该地区的成本:
如果运费未知,则不显示该参数。 |
shopName |
Type: string 商店的名称(如市场上显示的)。 |
shopRating |
Type: integer<int32> 商店的评级。 可能的值:
|
ModelPriceDTO
有关产品型号价格的信息。
Name |
Description |
avg |
Type: number 该模型在该地区的平均报价。 |
max |
Type: number 该地区型号的最高报价。 |
min |
Type: number 该模型在该地区的最低报价. |
400 Bad Request
请求包含不正确的数据。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] 错误列表。 Min items: |
status |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
ApiErrorDTO
一般错误格式。
Name |
Description |
code* |
Type: string 的错误代码。 |
message |
Type: string 错误的描述。 |
ApiResponseStatusType
响应的类型。 可能的值:
OK
-没有错误。ERROR
-处理请求时发生错误。
Type |
Description |
Enum: |
401 Unauthorized
请求中未指定授权数据。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] 错误列表。 Min items: |
status |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
403 Forbidden
授权数据不正确或禁止访问资源。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] 错误列表。 Min items: |
status |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
404 Not Found
找不到请求的资源。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] 错误列表。 Min items: |
status |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
420 Method Failure
已超出资源访问限制。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] 错误列表。 Min items: |
status |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
500 Internal Server Error
Yandex的内部错误。 市场。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] 错误列表。 Min items: |
status |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
No longer supported, please use an alternative and newer version.