Changing the terms of sale of goods in the store
The method is available for models: FBY, FBS, Express and DBS.
If you are using an API Key token, one of the accesses in the list is required to call the method
- offers-and-cards-management — Manage products and cards
- all-methods — Full account management
Changes the parameters of product placement in a particular store: product availability, quantum sales, and applicable VAT.
| ⚙️ Limit: 10,000 items per minute |
|---|
Request
POST
https://api.partner.market.yandex.ru/v2/campaigns/{campaignId}/offers/update
Path parameters
|
Name |
Description |
|
campaignId |
Type: integer The ID of the campaign (store) — The technical identifier that represents your store in the Yandex Market system when working through the API. It is uniquely linked to your store, but it is intended only for automated interaction. You can find it using a query GET v2/campaigns or find it in the seller's office on the Market. Click on your account icon → Settings and in the menu on the left, select APIs and modules:
⚠️ Do not confuse it with:
Min value: |
Body
application/json
{
"offers": [
{
"offerId": "example",
"quantum": {
"minQuantity": 1,
"stepQuantity": 1
},
"available": true
}
]
}
|
Name |
Description |
|
offers |
Type: object[] Product placement parameters in the specified store. Min items: Max items: Example
|
Responses
200 OK
Answer 200 indicates that the new parameters have been received by Yandex.Market and will take effect soon.
Body
application/json
{
"status": "OK"
}
Type: object
400 Bad Request
The request contains incorrect data. Learn more about errors when working with prices
Body
application/json
{
"status": "OK"
}
Type: object
401 Unauthorized
The authorization data is not specified in the request. More information about the error
Body
application/json
{
"status": "OK"
}
Type: object
403 Forbidden
The authorization data is incorrect or access to the resource is prohibited. More information about the error
Body
application/json
{
"status": "OK"
}
Type: object
404 Not Found
The requested resource was not found. More information about the error
Body
application/json
{
"status": "OK"
}
Type: object
420 Method Failure
The resource access limit has been exceeded. More information about the error
Body
application/json
{
"status": "OK"
}
Type: object
423 Locked
The specified method cannot be applied to the resource. More information about the error
Body
application/json
{
"status": "OK"
}
Type: object
500 Internal Server Error
Internal error in Yandex. Market. More information about the error
Body
application/json
{
"status": "OK"
}
Type: object
pathParams:
- description: "The ID of the campaign (store) — The technical identifier that represents your store in the Yandex Market system when working through the API. It is uniquely linked to your store, but it is intended only for automated interaction.\n\nYou can find it using a query [GET\_v2/campaigns](../../reference/campaigns/getCampaigns.md) or find it in the seller's office on the Market. Click on your account icon → **Settings** and in the menu on the left, select **APIs and modules**:\n\n* block **Campaign ID**;\n* tab **Query log** → drop-down list in the block **Show logs**.\n\n⚠️ Do not confuse it with:\n- the store's identifier, which is displayed in the merchant's personal account.\n- advertising campaigns.\n"
name: campaignId
in: path
required: true
schema:
type: integer
format: int64
minimum: 1
searchParams: []
headers: []
body: |-
{
"offers": [
{
"offerId": "example",
"quantum": {
"minQuantity": 1,
"stepQuantity": 1
},
"available": true
}
]
}
schema:
description: Request to update the store's product offers.
type: object
required:
- offers
properties:
offers:
description: Product placement parameters in the specified store.
type: array
minItems: 1
maxItems: 500
items:
description: Product placement parameters in the store.
type: object
allOf:
- description: Information about the new product price.
type: object
required:
- offerId
properties:
offerId:
description: "Your SKU —\_the product ID in your system.\n\nUsage rules SKU:\n\n* For each product SKU there must be one.\n\n* Already set SKU it cannot be released and reused for another product. Each product should receive a new identifier that has never been used in your catalog before.\n\nSKU The product can be changed in the seller's account on the Market. Read about how to do this. [in the Help of the Market for sellers](https://yandex.ru/support2/marketplace/ru/assortment/operations/edit-sku).\n\n{% note warning %}\n\nSpaces at the beginning and end of the value are automatically deleted. For example, `\" SKU123 \"` and `\"SKU123\"` they will be treated as identical values.\n\n{% endnote %}\n\n[What is SKU and how to assign it](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
quantum:
deprecated: true
description: >
Setting up a quantum sale.
To reset the previously set values, pass an empty parameter
`quantum`.
{% cut "Example" %}
```json translate=no
{
"offers": [
{
"offerId": "08e35dc1-89a2-11e3-8055-0015e9b8c48d",
"quantum": {}
}
]
}
```
{% endcut %}
type: object
properties:
minQuantity:
description: >
The minimum number of product units in the order. For
example, if you specify 10, the customer will be able to
add at least 10 items to the cart.
⚠️ If the quantity of goods in the
warehouse is less than the specified one, the restriction
will not work and the buyer will be able to order it.
type: integer
format: int32
minimum: 1
stepQuantity:
description: >
By how many units the buyer will be able to increase the
quantity of goods in the basket.
For example, if you set 5, the buyer will be able to add
only 5, 10, 15, ... items to the order.
⚠️ If the quantity of goods in stock does
not reach the quantum, the restriction will not work and
the buyer will be able to order a quantity that is not a
multiple of the quantum.
type: integer
format: int32
minimum: 1
maximum: 100
available:
description: "{% note warning \"Instead, use methods to hide goods from the showcase.\" %}\n\n* [GET\_v2/campaigns/{campaignId}/hidden-offers](../../reference/assortment/getHiddenOffers.md) — viewing hidden goods;\n* [POST\_v2/campaigns/{campaignId}/hidden-offers](../../reference/assortment/addHiddenOffers.md) — hiding of goods;\n* [POST\_v2/campaigns/{campaignId}/hidden-offers/delete](../../reference/assortment/deleteHiddenOffers.md) — resuming the show.\n\n{% endnote %}\n\nWhether the product is on sale.\n"
deprecated: true
type: boolean
- properties:
vat:
description: >
The VAT identifier used for the product:
* `2` — 10% VAT. For example, it
is used in the sale of certain food and medical products.
* `5` — VAT is 0%. For example,
it is used for the sale of goods exported in the customs
procedure of export, or for the provision of services for the
international transportation of goods.
* `6` — VAT is not charged, it
is used only for certain types of services.
* `7` — VAT 20%. Basic VAT from
2019 to January 1, 2026.
* `10` — VAT is 5%. VAT for the
simplified taxation system (USN).
* `11` — VAT is 7%. VAT for the
simplified taxation system (USN).
* `14` — VAT is 22%. Basic VAT
starting from January 1, 2026.
If the parameter is omitted, the VAT set in the cabinet is
used.
**For sellers Market Yandex Go** transfer and
receipt of VAT is not available.
type: integer
format: int32
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/campaigns/{campaignId}/offers/update
host: https://api.partner.market.yandex.ru
No longer supported, please use an alternative and newer version.