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.

  1. Get a list of Yandex.Market shares using a request POST businesses/{businessId}/promos.
  2. Pass the stock ID in the request POST businesses/{businessId}/promos/offers to find out which products can participate in the promotion.
  3. 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.

  1. Get a list of Yandex.Market shares using a request POST businesses/{businessId}/promos.
  2. Pass the promotion ID and the parameter statusType with the value MANUALLY_ADDED in the request POST businesses/{businessId}/promos/offers to find out which products have been added to the promotion.
  3. 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.

  1. Get a list of Yandex.Market shares using a request POST businesses/{businessId}/promos.

  2. Pass the promotion ID and the parameter statusType with the value MANUALLY_ADDED in the request POST businesses/{businessId}/promos/offers to find out which products have been added to the promotion.

  3. Make a request POST businesses/{businessId}/promos/offers/delete to remove from the promotion:

    • All products are a parameter deleteAllOffers with the value true;
    • Some products are a parameter offerIds.

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.