Skip to main content

Create or update a product by its SKU

POST 

/products

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.

Request​

Responses​

OK. The product was updated, or the push changed nothing.

Response Headers
    ETag

    Strong hash of the product state — the value If-Match is compared with.