Tags:
- Admin GraphQL API
- 2026-04
Add includeInactive argument to inventoryLevels and inventoryLevel fields
includeInactive argument to inventoryLevels and inventoryLevel fieldsAs of API version 2026-04, you can pass when querying the or fields on and Location to include inactive inventory levels in the response. By default, only active inventory levels are returned.
Why we made this change
Previously, there was no way to retrieve inactive inventory levels through the API. The argument gives apps explicit control over whether inactive levels are included in results.
Impact on your app
- GraphQL: In the 2026-04 and later API versions, the fields
,,, andaccept a new optionalboolean argument. The default is false, ensuring existing queries remain unaffected.
What you need to do
- No changes are required for existing queries, as they will continue to return only active inventory levels.
- To access inactive inventory levels, include
in your queries.
Was this section helpful?