Receive lot
POST
/ admin/ v1/ stores/ {store_id}/ inventory/ lots- Idempotency-Key supported
Stock arriving into a lot, with its expiry date on first receipt.
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.lot_numberstringrequiredThe supplier's batch number.
quantityintegerrequiredexpires_ondate · or null
Returns
200 The lot, with what it holds now.
Errors
- 404
not_foundNo such variant or location. - 409The product doesn't keep lots (
lots_off). - 422
validation_failedNo lot number, or a quantity out of range.