---
title: "InventoryLevel"
description: "The quantity of inventory items related to the specific location."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/inventory/objects/inventory-level'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/inventory/objects/inventory-level.md'
---
# InventoryLevel

The quantity of inventory items related to the specific location.

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`InventoryLevel`

## Fields

* `createdAt`

  [Date](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/date.md)

  Date and time of the inventory level's creation.

* `id`

  [ID](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  The ID of Inventory level for the specified location.

* `item`

  [InventoryItem](https://developer.shopline.com/docs/admin-graph-ql-api/inventory/objects/inventory-item.md)

  The inventory item related to the inventoryLevel.

* `itemId`

  [ID](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  The ID of Inventory item associated with the inventory level.

* `locationId`

  [ID](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  The ID of location.

* `quantities`

  [[InventoryQuantity]](https://developer.shopline.com/docs/admin-graph-ql-api/inventory/objects/inventory-quantity.md)

  The quantity of the requested name.

* `updatedAt`

  [Date](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/date.md)

  Date and time of the last update to the inventory level.

## Schema Definition

```graphql
type InventoryLevel { 
	createdAt: Date
	id: ID
	item: InventoryItem
	itemId: ID
	locationId: ID
	quantities: [InventoryQuantity]
	updatedAt: Date 
}
```

## Field from

* [Query](https://developer.shopline.com/docs/admin-graph-ql-api/inventory/queries/inventory-level.md).inventoryLevel

  按 ID 返回 InventoryLevel 对象。

* [InventoryLevelEdge](https://developer.shopline.com/docs/admin-graph-ql-api/inventory/objects/inventory-level-edge.md).node

  Node of the InventoryLevel.

* [InventoryLevelConnection](https://developer.shopline.com/docs/admin-graph-ql-api/inventory/objects/inventory-level-connection.md).nodes

  List of nodes contained within a InventoryLevelEdge

* [InventoryActivatePayload](https://developer.shopline.com/docs/admin-graph-ql-api/inventory/objects/inventory-activate-payload.md).inventoryLevel

  The activated inventory level. 

* [InventoryItem](https://developer.shopline.com/docs/admin-graph-ql-api/inventory/objects/inventory-item.md).inventoryLevel

  The quantity of inventory items at a specified location.

* [InventoryBulkToggleActivationPayload](https://developer.shopline.com/docs/admin-graph-ql-api/inventory/objects/inventory-bulk-toggle-activation-payload.md).inventoryLevels

  The inventory levels that were activated.

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

