Products
List products (keyset-paginated)
Returns one page of products in the uniform list envelope `{ data, pagination }`. Keep paginating while `pagination.nextCursor` is non-null โ even when `data` is empty โ passing it back verbatim as `?cursor=`. Add `?expand=details` for the optional `Product` keys on every item.
Create or update a product by its SKU
Pushes one product. The product is found by `sku` within the `brandId`: none โ it is created (`201`, with a `Location`), exactly one โ it is updated (`200`), more than one โ `409` and nothing is written. The match is by SKU only, never by title. The push is partial: a field you leave out is untouched, `null` clears a single value and `[]` clears a list. Photos are fetched in the background; read their state with `?expand=details`. Both answers carry the product with every `?expand=details` key and its state `ETag`. `Idempotency-Key` is required: a retry with the same key and body returns the same answer and writes nothing more. A SKU whose product is linked to a connected store is refused (`409`). There is no `PATCH` and no `DELETE`: archive a product with `POST /products/{productId}/archive`.
Get a single product by id
Returns the single product with the given stable Mocart product document id. Add `?expand=details` for the optional `Product` keys. The strong `ETag` header identifies the product state; it is sent on the plain read only, and `If-None-Match` answers `304`.
Archive a product
Archives a product and returns it with every `?expand=details` key. Archiving is how a key retires a product (a key never deletes one). Archiving an archived product is a `200` no-op that records no event. An archived product does not count toward the planโs product limit, and archiving is never refused for it. `Idempotency-Key` is required.
Unarchive a product
Restores an archived product to `active` and returns it with every `?expand=details` key. Unarchiving a product that is not archived is a `200` no-op that records no event. A restored product counts toward the planโs product limit again, so at the limit the unarchive is refused (`403` `LIMIT_EXCEEDED`). `Idempotency-Key` is required.