Stock management
The Yandex.Market API allows you to receive information about Yandex. Market promotions and participate in them.
Add products to the promotion
You already know the IDs of the list of stocks and products.
Skip the steps to get them.
- Get a list of Yandex.Market shares using a request POST businesses/{businessId}/promos.
- Pass the stock ID in the request POST businesses/{businessId}/promos/offers to find out which products can participate in the promotion.
- Make a request POST businesses/{businessId}/promos/offers/update, where pass the ID of the promotion and the products that need to be added.
Change the price of products that have already been added to the promotion
You already know the IDs of the list of stocks and products.
Skip the steps to get them.
- Get a list of Yandex.Market shares using a request POST businesses/{businessId}/promos.
- Pass the promotion ID and the parameter
statusType
with the valueMANUALLY_ADDED
in the request POST businesses/{businessId}/promos/offers to find out which products have been added to the promotion. - Send the SKU of the products and their new prices — request POST businesses/{businessId}/promos/offers/update.
Remove products from the promotion
You already know the IDs of the list of stocks and products.
Skip the steps to get them.
-
Get a list of Yandex.Market shares using a request POST businesses/{businessId}/promos.
-
Pass the promotion ID and the parameter
statusType
with the valueMANUALLY_ADDED
in the request POST businesses/{businessId}/promos/offers to find out which products have been added to the promotion. -
Make a request POST businesses/{businessId}/promos/offers/delete to remove from the promotion:
- All products are a parameter
deleteAllOffers
with the valuetrue
; - Some products are a parameter
offerIds
.
- All products are a parameter
View the results of participation in the promotion
You can download a report with all orders that contain products sold under the promotion. For information on how to receive reports, see step-by-step instructions.