---
title: "inventoryItem"
description: "Retrieve a InventoryItem using the provided ID."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/inventory/queries/inventory-item'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/inventory/queries/inventory-item.md'
---
# inventoryItem

Retrieve a InventoryItem using the provided ID.

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

## Type Signature

`InventoryItem`

## Arguments

* `id`

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

  The returned InventoryItem's id.

## Returns

* `countryCodeOfOrigin`

  [CountryCode](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/enums/country-code.md)

  The ISO 3166-1 alpha-2 country/region code for the origin of the product.

* `createdAt`

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

  Date and time of the inventory item's creation.

* `harmonizedSystemCode`

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

  The standardized system code for the item.

* `id`

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

  The ID of inventory item.

* `inventoryLevel`

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

  The quantity of inventory items at a specified location.

* `inventoryLevels`

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

  The list of the quantity of the inventory item that can be stored at each location.

* `requiredShipping`

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

  Indicates if the inventory item needs to be shipped.

* `sku`

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

  The SKU of the inventory item. This is a case-sensitive string.

* `tracked`

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

  Track the inventory levels of this item or not.

* `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 item.

* `variantId`

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

  The variant ID of this inventoryItem

## Code Example

```graphql
 {
	inventoryItem(id ) 
		 {
			# InventoryItem fields
		}
}
```

## 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).

