Move unavailable
POST
/ admin/ v1/ stores/ {store_id}/ inventory/ unavailable- Idempotency-Key supported
Hold units back from sale (damaged, waiting for a quality check, safety stock), or put held units back on sale. They stay on the books; nobody can buy them.
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
variant_idstringrequiredTypeID with the
varprefix.location_idstringrequiredTypeID with the
locprefix.reasonenumrequired- damaged
- quality_control
- safety_stock
- other
quantityintegerrequiredUnits to hold back; below zero puts held units back on sale.
notestring · or null
Returns
200 The variant's units held back now.
Errors
- 403
forbiddenMissing permission, or a branch the caller doesn't work at. - 404
not_foundNo such variant or location. - 409Stock isn't tracked.
- 422
validation_failedMore than is available, or than is held for that reason.