Basic Information

appmixer.shopify.inventory.SetInventoryQuantity

1.0.0

Public

Set the available (or on-hand) quantity of a product variant's inventory at a location. Switches inventory tracking on and stocks the item at the location when needed. Returns the inventory level. Needs the write_inventory access scope on the Shopify app.

Input Ports

in

FieldTypeDescription
Inventory Item ID text The inventory item of the product variant (gid://shopify/InventoryItem/123 or 123), for example variants[].inventoryItem.id of Get Product. A product variant ID (gid://shopify/ProductVariant/123) is accepted too.
Location ID text The location (gid://shopify/Location/123 or 123). Leave empty to use the location the item is stocked at, or the store's primary location.
Quantity number The new quantity, a whole number.
Quantity Type select Which quantity to set: available for sale, or on hand (available plus committed and reserved units).
Reason select The reason Shopify records in the inventory history.

Output Ports

out

FieldTypeDescription
Inventory Level ID string -
Active boolean -
Created At string -
Updated At string -
Quantities array -
Inventory Item object -
Location object -

Full Metadata