Skip to main content

Products

๐Ÿ“„๏ธ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`.