Skip to content

Set threshold

PUT/admin/v1/stores/{store_id}/inventory/variants/{variant_id}/low-stock-threshold
  • inventory:write

Set or clear the low-stock threshold of a variant.

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.

  • variant_idstringrequired

    The variant's ID, like var_01k8qs5s….

Headers

  • shop-api-versionYYYY-MM

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

Body

  • low_stock_thresholdinteger · or null

    null clears it.

Returns

204 Saved.

Errors

  • 404not_foundNo such variant.
  • 422validation_failedValidation failed.