---
title: "Activate, deactivate, archive or delete products"
method: POST
path: "/v1/commerce/products/state"
tags: ["Commerce"]
---

# Activate, deactivate, archive or delete products

`POST /v1/commerce/products/state`

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.

## Request body

- object
  - `accountId` string, required
  - `productIds` string[], required
  - `action` 'activate' | 'deactivate' | 'archive' | 'delete', required

## Response `200`

Action applied

- object
  - `action` 'activate' | 'deactivate' | 'archive' | 'delete'
  - `succeeded` string[]
  - `failed` object[]
    - `productId` string
    - `message` string

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `404` — Account not found or not accessible (code account_not_found).
- `429` — Rate limited, either by Zernio or by the platform. Retry later.

## Changes

- **2026-09-30** `16a7b9d5373e` — 1 info
  - removed the `platform` enum value from the `details/budgetScope` response property for the response status `400`
- **2026-09-29** `69bbe3da3a18` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/zernio/apis/zernio-api/changes/v1/commerce/products/state/post.md)

---

[API](https://skmtc.dev/zernio/apis/zernio-api.md) · [All operations](https://skmtc.dev/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zernio/apis/zernio-api/revisions/16a7b9d5373e?raw)
