Skip to content

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_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

  • changesarray of objectsrequired

    1–250 changes, each level at most once.

  • reasonenumrequired

    Why stock changed. sale and reservation are recorded by orders and checkouts only.

    • received
    • correction
    • damaged
    • shrinkage
    • sale
    • return
    • restock
    • reservation
    • transfer_out
    • transfer_in
    • unavailable
  • notestring · or null

    Shown in the variant's history. Up to 500 characters.

Returns

200 The levels after the change.

Errors

  • 403forbiddenMissing permission.
  • 422validation_failedUnknown variant or location, inactive location, or a count below zero.