查看特定商店中特定产品的价格
方法适用于模式:FBY, FBS, Express 和 DBS.
如果您使用API-Key令牌,调用该方法时需要具备列表中可用权限之一
返回商店中指定产品的价格列表。
该方法仅适用于个别商店
仅当机柜在个别商店中具有独特的价格时,才使用此方法。
要查看在所有商店有效的价格,请使用 POST v2/businesses/{businessId}/offer-mappings.
| ⚙️ 限制: 每分钟150,000件物品 |
|---|
Request
POST
https://api.partner.market.yandex.ru/v2/campaigns/{campaignId}/offer-prices
Path parameters
|
Name |
Description |
|
campaignId* |
Type: integer<int64> 活动ID。 您可以使用查询找到它 GET v2/campaigns 或者在市场上的卖家办公室找到 — 点击您的帐户图标→ 设置 在左边的菜单中,选择 Api和模块:
⚠️ 不要发送商店ID,这是在市场上的卖家帐户旁边的商店名称和一些报告。
Min value: |
Query parameters
|
Name |
Description |
|
limit |
Type: integer<int32> 每页的值数。
Min value: |
|
page_token |
Type: string 结果页面的ID。 如果省略该参数,则返回第一页。 我们建议传输输出参数的值 如果设置 |
Body
application/json
{
"offerIds": [
"string"
]
}
|
Name |
Description |
|
offerIds |
Type: string[] 名单 SKU. 此列表仅完整返回。 如果你要求提供特定的资料 SKU,不填写:
使用规则 SKU:
SKU 产品可以在市场上的卖方帐户中更改。 阅读有关如何做到这一点。 在市场对卖家的帮助. Min length: Max length: Pattern: Min items: Max items: Unique items |
Responses
200 OK
为给定商店设置价格的产品列表。
Body
application/json
{
"status": "OK",
"result": {
"offers": [
{
"offerId": "string",
"price": {
"value": 0,
"discountBase": 0,
"currencyId": "RUR",
"vat": 0
},
"updatedAt": "2022-12-29T18:02:01Z"
}
],
"paging": {
"nextPageToken": "string"
}
}
}
|
Name |
Description |
|
status* |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
|
result |
Type: OfferPriceByOfferIdsListResponseDTO 价格表。 |
ApiResponseStatusType
响应的类型。 可能的值:
OK— 没有错误。ERROR— 处理请求时出错。
|
Type |
Description |
|
Enum: |
OfferPriceByOfferIdsListResponseDTO
价格表。
|
Name |
Description |
|
offers* |
Type: OfferPriceByOfferIdsResponseDTO[] 价目表页。 |
|
paging |
Type: ForwardScrollingPagerDTO 下一页的ID。 |
OfferPriceByOfferIdsResponseDTO
设定价格的信息。
|
Name |
Description |
|
offerId |
Type: string 你的 SKU — 系统中的产品ID。 使用规则 SKU:
SKU 产品可以在市场上的卖方帐户中更改。 阅读有关如何做到这一点。 在市场对卖家的帮助. Min length: Max length: Pattern: |
|
price |
Type: PriceDTO 价格包括折扣、货币和上次更新的时间. |
|
updatedAt |
Type: string<date-time> 上次价格更新的日期和时间。 |
ForwardScrollingPagerDTO
下一页的ID。
|
Name |
Description |
|
nextPageToken |
Type: string 下一个结果页面的ID。 |
PriceDTO
价格包括折扣、货币和上次更新的时间.
|
Name |
Description |
|
currencyId |
Type: CurrencyType Валюта, в которой указана цена товара. Enum: |
|
discountBase |
Type: number 划掉的价格。 数字必须是整数。 您可以指定折扣从5到99%的价格。 如果您提供产品折扣,则在每次更新价格时传递此参数。 Min value (exclusive): |
|
value |
Type: number 品的价格。 Min value (exclusive): |
|
vat |
Type: integer<int32> 用于产品的增值税标识符:
如果省略该参数,则使用机柜中设置的增值税。 卖家须知 Market Yandex Go不提供增值税的转让和收据。 |
CurrencyType
货币代码:
RUR— 俄罗斯卢布。UAH— 乌克兰格里夫纳。BYR— 白俄罗斯卢布。KZT— 哈萨克斯坦坚戈。UZS— 乌兹别克总和。
|
Type |
Description |
|
Enum: |
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 错误的描述。 |
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
市场的内部错误。 有关错误的更多信息
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.