editAssortmentProducts

This call is deprecated. We recommend to use PIM API instead.

The corresponding new call is: PATCH /v1/assortment/products/{id}.

Change the status of products in an assortment.

An assortment defines which products a particular store is allowed to sell and/or to purchase.

To retrieve a list of assortments, see getAssortments. To edit an assortment or add a new one, see saveAssortment. To manipulate with the products associated with an assortment, see API calls getAssortmentProducts, addAssortmentProducts and removeAssortmentProducts. To retrieve all products that can be sold in location according to product status in assortment and it's card see getSellableProducts.

This API call is available only if "Assortments" module has been enabled on your account.

Input parameters

Parameter name Description Possible value Required
productIDs Comma-separated list of product IDs. string yes
assortmentID Assortment ID. integer yes
status New status for the listed products. Possible statuses are 'ACTIVE', 'NO_LONGER_ORDERED', 'NOT_FOR_SALE' and 'ARCHIVED'. string yes

Response

Field name Type Description
productsNotInAssortment string Comma-separated list of product IDs that this assortment does not contain. These do not get automatically added into the assortment. Call addAssortmentProducts to add them.

This API call returns error code 1006 if "Assortments" module has not been enabled on your account.