---
title: "InventoryItem"
description: >
  Represents goods that can be shipped to customers. It stores basic information about the items, including the SKU and whether they are tracked.
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/inventory/objects/inventory-item'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/inventory/objects/inventory-item.md'
---
# InventoryItem

Represents goods that can be shipped to customers. It stores basic information about the items, including the SKU and whether they are tracked.

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

## Type Signature

`InventoryItem`

## Fields

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

## Schema Definition

```graphql
type InventoryItem { 
	countryCodeOfOrigin: CountryCode
	createdAt: Date
	harmonizedSystemCode: String
	id: ID
	inventoryLevel(locationId,ID!): InventoryLevel
	inventoryLevels(first,Int,last,Int,before,String,after,String,reverse,Boolean): InventoryLevelConnection
	requiredShipping: Boolean
	sku: String
	tracked: Boolean
	updatedAt: Date
	variantId: ID 
}
```

## Field from

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

  The updated inventory item.

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

  按ID返回库存对象

* [InventoryItemUpdatePayload](https://developer.shopline.com/docs/admin-graph-ql-api/inventory/objects/inventory-item-update-payload.md).inventoryItem

  The updated inventory item.

* [ProductVariant](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/product-variant.md).inventoryItem

  A product inventory item used for querying stock information.

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

  List of nodes contained within a InventoryItemEdge

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

  The inventory item related to the inventoryLevel.

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

  Node of the InventoryItem.

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

