Tags:
- Admin GraphQL API
- 2026-04
Add isActive field to InventoryLevel
isActive field to InventoryLevelAs of GraphQL Admin API version 2026-04 the object now includes an boolean field, which indicates whether an inventory level is currently active. In this version, you can optionally query for inactive inventory levels, and the field will help you distinguish between active and inactive levels.
Why We Made This Change
Previously, deactivating an inventory level would clear its associated quantities, and these inactive levels were not visible through the API. Starting with version 2026-04, deactivating an inventory level no longer clears its quantities. Inactive levels can be adjusted just like active ones, so the API now returns these inactive levels. The field provides visibility into the activation status, allowing apps to differentiate between locations where inventory tracking has never occurred and those where it has been deactivated.
Impact on Your App
From GraphQL Admin API version 2026-04 onwards, queries on may return inactive inventory levels that were previously excluded. Each inventory level now includes an field, which you can use to filter or display activation status.
What You Need to Do
- No changes are required for existing queries, as they will continue to return only active inventory levels.
- If you choose to include inactive levels in your query, review any logic that assumes all returned inventory levels are active. Use the
field to filter results if your app only requires active inventory levels. - Update any inventory level counts or aggregations to account for the inclusion of inactive levels.