The inventory item object
How to access it
- Use
{{ order.line_items[n].variant.inventory_item }}
in tasks responding to shopify/orders events - Use
{{ product.variants[n].inventory_item }}
in tasks responding to shopify/products events
What it contains
- Every property from the Shopify API
- An array of related inventory level objects:
{{ variant.inventory_levels }}
- The related variant object:
{{ inventory_item.variant }}