Skip to main content

Add includeInactive argument to inventoryLevels and inventoryLevel fields

As of API version 2026-04, you can pass includeInactive: true when querying the inventoryLevels or inventoryLevel fields on InventoryItem 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 includeInactive argument gives apps explicit control over whether inactive levels are included in results.

Impact on your app

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 includeInactive: true in your queries.
Was this section helpful?