Actions83
- Product Actions
- Product Variant Actions
- Collection Actions
- Article Actions
- Blog Actions
- Customer Actions
- Order Actions
- Draft Order Actions
- Inventory Actions
- File Actions
- Publication Actions
- Translation Actions
- Taxonomy Actions
- Metaobject Actions
- Metaobject Definition Actions
- Metafield Value Actions
- Metafield Definition Actions
- Service Actions
Inventory → Set Quantities
AI-generatedSummary
Set absolute inventory quantities for Shopify inventory items at specified locations. Choose available or on-hand stock, and optionally supply last-known quantities for compare-and-swap checks.
Inputs
- authentication — Choose Admin API Credentials (default) or OAuth2 to authenticate with Shopify.
- inventoryQuantities — Repeated quantity entries, each requiring an inventory item global ID, a location global ID, and a nonnegative target quantity. Optional Compare Quantity supplies the last-known quantity for a compare-and-swap check.
- inventorySetOptions — Optional settings: inventory state (available or on_hand; default available), change reason (default correction), reference document URI, and Ignore Compare Quantity (default false), declared to disable compare-and-swap checks for API version 2025-10.
- outputMode — Choose Simplified (default), Raw, or Selected Fields output.
- selectedFields — Specify fields to retain when Output Mode is Selected Fields.
Output shape
An operation result formatted according to the selected output mode.
The signature-only source does not reveal the mutation response fields, exact item count, or error handling, so the precise return shape cannot be confirmed.