Commerce

Activate, deactivate, archive or delete products

Applies one action to up to 50 products and reports each product's outcome, so one failure does not abort the rest. On Shopify, deactivate sets the product to draft and delete is permanent.

post/v1/commerce/products/state

Request body

accountIdstring required
productIdsstring[] required
action'activate' | 'deactivate' | 'archive' | 'delete' required

Response

Action applied

action'activate' | 'deactivate' | 'archive' | 'delete'
succeededstring[]

Changes

Changed in 2 of the 60 revisions of this API.2