Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • variant_idstringrequired

    TypeID with the var prefix.

  • location_idstringrequired

    TypeID with the loc prefix.

  • lot_numberstringrequired

    The supplier's batch number.

  • quantityintegerrequired
  • expires_ondate · or null

Returns

200 The lot, with what it holds now.

Errors

  • 404not_foundNo such variant or location.
  • 409The product doesn't keep lots (lots_off).
  • 422validation_failedNo lot number, or a quantity out of range.