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