从促销中删除产品
方法适用于所有模式.
目前不适用于卖家Market Yandex Go.
从促销中删除产品。
这些变化在4-6小时内开始生效。
**⚙️ 限制:**每小时10,000次请求 |
---|
Request
POST
https://api.partner.market.yandex.ru/v2/businesses/{businessId}/promos/offers/delete
Path parameters
Name |
Description |
businessId* |
Type: integer<int64> 内阁ID。 要找到答案,请使用请求 :no-translate[GET v2/campaigns]. Min value: |
Body
application/json
{
"promoId": "string",
"deleteAllOffers": false,
"offerIds": [
"string"
]
}
Name |
Description |
promoId* |
Type: string 促销的ID。 |
deleteAllOffers |
Type: boolean 要从促销活动中删除所有产品并且不再参与其中,请通过值 |
offerIds |
Type: string[] 需要从促销中删除的产品。 使用规则 SKU:
SKU 产品可以在市场上的卖方帐户中更改。 阅读如何做到这一点。 在市场对卖家的帮助. Min length: Max length: Pattern: Min items: Max items: Unique items |
Responses
200 OK
从促销中删除产品的结果。
Body
application/json
{
"status": "OK",
"result": {
"rejectedOffers": [
{
"offerId": "string",
"reason": "OFFER_DOES_NOT_EXIST"
}
]
}
}
Name |
Description |
status* |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
result |
Type: DeletePromoOffersResultDTO 从促销中删除产品的结果。 仅当在请求中传递参数时才返回。 |
ApiResponseStatusType
响应的类型。 可能的值:
OK
-没有错误。ERROR
-处理请求时发生错误。
Type |
Description |
Enum: |
DeletePromoOffersResultDTO
从促销中删除产品的结果。
仅当在请求中传递参数时才返回。 offerIds
.
Name |
Description |
rejectedOffers |
Type: RejectedPromoOfferDeleteDTO[] 错误删除的产品。 只有在有这样的项目的情况下才退还。
Min items: |
RejectedPromoOfferDeleteDTO
有关产品的信息以及删除时出现的错误。
Name |
Description |
offerId* |
Type: string 你的 SKU -系统中的产品ID。 使用规则 SKU:
SKU 产品可以在市场上的卖方帐户中更改。 阅读如何做到这一点。 在市场对卖家的帮助. Min length: Max length: Pattern: |
reason* |
Type: RejectedPromoOfferDeleteReasonType 错误描述:
Enum: |
RejectedPromoOfferDeleteReasonType
错误描述:
OFFER_DOES_NOT_EXIST
-橱柜里没有这个产品 SKU.
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
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.