Shopify capability
Read Shopify inventory by location
Query an InventoryLevel to read quantities for one inventory item at one location. Use the Inventory page to check quantities for a location in Shopify admin.
Documentation reviewed
Ways to do it
API
GraphQL Admin API inventoryLevel query
Read named quantities such as available and on_hand for a single inventory level.
- Requirements
- An app access token with read_inventory and the InventoryLevel global ID.
- Limitations
- The ID identifies one item-location pair. Query additional levels to compare stock across locations.
Example
query ReadInventory($id: ID!) {
inventoryLevel(id: $id) {
location { name }
quantities(names: ["available", "on_hand"]) { name quantity }
}
}Interface
Shopify admin → Products → Inventory
Open Inventory and choose a location to check the store’s tracked stock.
- Requirements
- Access to Products and Inventory in the store’s admin. Inventory tracking must be enabled for the relevant variants.
- Limitations
- Quantities depend on the selected location and on which variants have inventory tracking enabled.