Update Stock Across Stores
PATCH/vto-partner/stock/stores
Update stock for every store (project) your API key covers, in one batch (max 200 rows per request).
Send only variant_slug and stock_status and the stock is updated in every project on your API key that has the variant. You don't need a store or project code.
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+variant_slugpair may appear once per request. The same slug for different projects is fine. - Unknown fields are rejected with 400, so a misspelled
project_keycan't turn a one-store row into an all-stores row. - Per-store stock needs each store project to own its catalog. A product linked (not cloned) 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
- 200
- 400
- 401
- 403
- 429
Batch processed. Check each row's status.
Validation error
Missing or invalid API key
API key not authorized for this project
Rate limit exceeded