Inventory quantity changed

The Inventory quantity changed trigger starts a workflow when inventory is changed for a specific product variant. The source of the inventory change can be an order, a manual change to inventory, or an app that changes inventory quantities.

Data provided

The following data is provided to workflows that start with the Inventory quantity changed trigger.

Data that is provided to workflows with the Inventory quantity changed trigger.
DataDescription
productThe product which had its inventory quantity changed.
productVariantThe product variant which had its inventory quantity changed.
inventoryQuantityPriorThe previous inventory quantity for the product variant.

Testing the Inventory quantity changed trigger

To test a workflow that starts with this trigger, change a product's inventory.

Examples

The Flow template library has many examples that make use of the Inventory quantity changed trigger. These examples show how to make use of inventory for products, variants, and per location.

Actions

The following actions can be used in workflows that start with the Inventory quantity changed trigger.

API details

The Inventory quantity changed trigger allows actions to be taken with the Product Graphql API object.

Ready to start selling with Shopify?Try it free