Skip to main content

Update Stock Across Stores

PATCH 

/skinai-partner/stock/stores

Update stock for every store (project) your API key covers, in one batch (max 200 rows per request).

Send only product_slug and stock_status and the stock is updated in every project on your API key that has the product.

Optional project_key: add a project slug (or id) to a row to update that store only. A UUID-shaped value is always treated as an id.

Each row gets its own result, so one failing row doesn't block the others.

Rules:

  • A project_key + product_slug pair may appear once per request.
  • Unknown fields are rejected with 400, so a misspelled project_key can't turn a one-store row into an all-stores row.
  • Per-store stock needs each store project to own its products. A product linked into several projects is one shared record, so it holds one stock value for all of them; giving it different statuses in one batch returns conflict.

Request​

Responses​

Success. For batches, check each item's status.