Update a stock level
Corrects one shelf. Send count_on_hand for the count the shelf should
end at, or adjustment for a signed change; either is recorded as a
stock movement labelled with reason.
Required scope: write_stock (for API-key authentication).
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Path Parameters
Stock level ID
Body
Identities the record has in external systems, keyed by system: the same { system: external_id } map the Admin API renders, so what you read can be sent straight back. Systems you do not name keep the reference they have. A list of { system, external_id } entries is accepted too.
The count the shelf should end at: a whole number of zero or more. The API records the difference as an adjusted movement, so the correction appears in the stock history.
A signed change to the shelf instead of a target count, applied to the count the API holds at that moment and recorded the same way. Cannot be sent together with count_on_hand.
Whether this location sells the variant beyond what it holds.
Labels the correction in the stock history. Defaults to "Manual adjustment".
Response
stock level updated

