从促销中删除产品

方法适用于所有模式.

目前不适用于卖家Market Yandex Go.

如果您使用API-Key令牌,调用该方法时需要具备列表中可用权限之一

从促销中删除产品。

这些变化在4-6小时内开始生效。 要确定它们是否已应用,请使用参数 processing 在方法的响应 POST v2/businesses/{businessId}/promos.

⚙️ 限制: 每小时10,000次请求

Request

POST

https://api.partner.market.yandex.ru/v2/businesses/{businessId}/promos/offers/delete

Path parameters

Name

Description

businessId

Type: integer

内阁ID。 要找到答案,请使用请求 GET v2/campaigns.

ℹ️ 什么是市场上的橱柜和商店?

Min value: 1

Body

application/json
{
  "promoId": "example",
  "deleteAllOffers": true,
  "offerIds": [
    "example"
  ]
}

Name

Description

promoId

Type: string

促销的ID。

Example: example

deleteAllOffers

Type: boolean

要从促销活动中删除所有产品并且不再参与其中,请通过值 true 并且不要传递参数。 offerIds.

offerIds

Type: string[] | null

需要从促销中删除的产品。

Min items: 1

Max items: 500

Unique items: true

Example
[
  "example"
]

Responses

200 OK

从促销中删除产品的结果。

Body

application/json
{
  "status": "OK"
}

Type: object

400 Bad Request

请求包含不正确的数据。 了解更多有关处理股票时的错误

Body

application/json
{
  "status": "OK"
}

Type: object

401 Unauthorized

请求中未指定授权数据。 有关错误的更多信息

Body

application/json
{
  "status": "OK"
}

Type: object

403 Forbidden

授权数据不正确或禁止访问资源。 有关错误的更多信息

Body

application/json
{
  "status": "OK"
}

Type: object

404 Not Found

找不到请求的资源。 有关错误的更多信息

Body

application/json
{
  "status": "OK"
}

Type: object

420 Method Failure

已超出资源访问限制。 有关错误的更多信息

Body

application/json
{
  "status": "OK"
}

Type: object

500 Internal Server Error

Yandex的内部错误。 市场。 有关错误的更多信息

Body

application/json
{
  "status": "OK"
}

Type: object

pathParams:
  - description: "内阁ID。 要找到答案,请使用请求 [GET\_v2/campaigns](../../reference/campaigns/getCampaigns.md).\n\nℹ️ [什么是市场上的橱柜和商店?](https://yandex.ru/support/marketplace/account/introduction.html)\n"
    name: businessId
    in: path
    required: true
    schema:
      type: integer
      format: int64
      minimum: 1
searchParams: []
headers: []
body: |-
  {
    "promoId": "example",
    "deleteAllOffers": true,
    "offerIds": [
      "example"
    ]
  }
schema:
  description: >
    从促销中删除产品。


    要删除:


    * 所有产品从促销活动中不再参与,通过价值 `true` 在参数中
    `deleteAllOffers`;


    * 一些产品,在参数中传递它们的Id `offersIds`.
  type: object
  required:
    - promoId
  properties:
    promoId:
      description: 促销的ID。
      type: string
    deleteAllOffers:
      description: >-
        要从促销活动中删除所有产品并且不再参与其中,请通过值 `true` 并且不要传递参数。
        `offerIds`.
      type: boolean
    offerIds:
      description: 需要从促销中删除的产品。
      type: array
      nullable: true
      minItems: 1
      maxItems: 500
      uniqueItems: true
      items:
        description: "你的 SKU —\_系统中的产品ID。\n\n使用规则 SKU:\n\n* 对于每个产品 SKU 一定有一个。\n\n* 已经设置 SKU 它不能被释放并重新用于另一个产品。 每个产品都应该收到一个以前从未在目录中使用过的新标识符。\n\nSKU 产品可以在市场上的卖方帐户中更改。 阅读如何做到这一点。 [在市场对卖家的帮助](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku).\n\n{% note warning %}\n\n值开头和结尾的空格会自动删除。 例如, `\"  SKU123  \"` 和 `\"SKU123\"` 它们将被视为相同的值。\n\n{% endnote %}\n\n[什么是 SKU 以及如何分配它](https://yandex.ru/support/marketplace/assortment/add/index.html#fields)\n"
        type: string
        pattern: ^(?=.*\S.*)[^\x00-\x08\x0A-\x1f\x7f]{1,255}$
        x-transform: trim
        minLength: 1
        maxLength: 255
bodyType: application/json
method: post
security:
  - type: apiKey
    name: 'Api-Key'
    in: header
  - type: oauth2
    x-inline: true
    flows:
      implicit:
        authorizationUrl: https://oauth.yandex.ru/authorize
        scopes:
          market:partner-api: API Яндекс.Маркета / Поиска по товарам для партнеров
path: v2/businesses/{businessId}/promos/offers/delete
host: https://api.partner.market.yandex.ru

No longer supported, please use an alternative and newer version.