在促销中添加产品或更改其价格
方法适用于所有模式.
目前不适用于卖家Market Yandex Go.
将产品添加到促销中或更改参与促销的产品的价格。
这些变化在4-6小时内开始生效。 要确定它们是否已应用,请使用参数 processing 在方法的响应 POST v2/businesses/{businessId}/promos.
| ⚙️ 限制: 每小时10,000次请求 |
|---|
Request
POST
https://api.partner.market.yandex.ru/v2/businesses/{businessId}/promos/offers/update
Path parameters
|
Name |
Description |
|
businessId* |
Type: integer<int64> 内阁ID。 要找到答案,请使用请求 GET v2/campaigns. Min value: |
Body
application/json
{
"promoId": "string",
"offers": [
{
"offerId": "string",
"params": {
"discountParams": {
"price": 0,
"promoPrice": 0
}
}
}
]
}
|
Name |
Description |
|
offers* |
Type: object[] 需要添加到促销活动或其价格需要更改的产品。 Min items: Max items: |
|
promoId* |
Type: string 促销的ID。 |
Responses
200 OK
将产品添加到促销或更新其价格的结果。
Body
application/json
{
"status": "OK",
"result": {
"rejectedOffers": [
{
"offerId": "string",
"reason": "OFFER_DOES_NOT_EXIST"
}
],
"warningOffers": [
{
"offerId": "string",
"warnings": [
{
"code": "DEEP_DISCOUNT_OFFER",
"campaignIds": [
0
]
}
]
}
]
}
}
|
Name |
Description |
||||
|
status* |
Type: string 响应的类型。 可能的值:
Enum: |
||||
|
result |
Type: object
向促销添加产品时出现的错误和警告。 |
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.
Цена, которая действует во всех магазинах.