Returns an InventoryLevel object by ID.


Anchor to id
id
required

The ID of the InventoryLevel to return.


Was this section helpful?

Anchor to InventoryLevel
InventoryLevel
Access requirements

The quantities of an inventory item that are related to a specific location. Learn more about the relationships between inventory objects.


Was this section helpful?
Get the location, inventory item, and quantities for an inventory level
Hide code
Copy
query {
  inventoryLevel(id: "gid://shopify/InventoryLevel/523463154?inventory_item_id=30322695") {
    id
    quantities(names: ["available", "incoming", "committed", "damaged", "on_hand", "quality_control", "reserved", "safety_stock"]) {
      name
      quantity
    }
    item {
      id
      sku
    }
    location {
      id
      name
    }
  }
}
Hide code
Response
JSON
{
  "inventoryLevel": {
    "id": "gid://shopify/InventoryLevel/523463154?inventory_item_id=30322695",
    "quantities": [
      {
        "name": "available",
        "quantity": 2
      },
      {
        "name": "incoming",
        "quantity": 146
      },
      {
        "name": "committed",
        "quantity": 1
      },
      {
        "name": "damaged",
        "quantity": 0
      },
      {
        "name": "on_hand",
        "quantity": 33
      },
      {
        "name": "quality_control",
        "quantity": 0
      },
      {
        "name": "reserved",
        "quantity": 30
      },
      {
        "name": "safety_stock",
        "quantity": 0
      }
    ],
    "item": {
      "id": "gid://shopify/InventoryItem/30322695",
      "sku": "element-151"
    },
    "location": {
      "id": "gid://shopify/Location/346779380",
      "name": "Ottawa Store"
    }
  }
}