Adjust stock
POST
/ admin/ v1/ stores/ {store_id}/ inventory/ adjustments- Idempotency-Key supported
Change stock levels: add or remove units (delta) or set an exact count (on_hand), for one level or many at once. Every change lands in the history with the reason.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
changesarray of objectsrequired1–250 changes, each level at most once.
reasonenumrequiredWhy stock changed.
saleandreservationare recorded by orders and checkouts only.- received
- correction
- damaged
- shrinkage
- sale
- return
- restock
- reservation
- transfer_out
- transfer_in
- unavailable
notestring · or nullShown in the variant's history. Up to 500 characters.
Returns
200 The levels after the change.
Errors
- 403
forbiddenMissing permission. - 422
validation_failedUnknown variant or location, inactive location, or a count below zero.