Skip to main content
query

Returns an InventoryItem object by ID.

•ID!
required

The ID of the InventoryItem to return.


Was this section helpful?

•InventoryItem

A product variant's inventory information across all locations. The inventory item connects the product variant to its inventory levels at different locations, tracking stock keeping unit (SKU), whether quantities are tracked, shipping requirements, and customs information for the product.

Learn more about inventory object relationships.

•CountryCode

The ISO 3166-1 alpha-2 country code of where the item originated from.

Anchor to countryHarmonizedSystemCodescountryHarmonizedSystemCodes
•CountryHarmonizedSystemCodeConnection!
non-null

A list of country specific harmonized system codes.

Arguments

•Int

The first n elements from the paginated list.

•String

The elements that come after the specified cursor.

•Int

The last n elements from the paginated list.

•String

The elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.


•DateTime!
non-null

The date and time when the inventory item was created.

•Int!
non-null

The number of inventory items that share the same SKU with this item.

Anchor to harmonizedSystemCodeharmonizedSystemCode
•String

The harmonized system code of the item. This must be a number between 6 and 13 digits.

•ID!
non-null

A globally-unique ID.

•URL

The URL that points to the inventory history for the item.

•InventoryLevel

The inventory item's quantities at the specified location.

Arguments

•ID!
required

ID of the location for which the inventory level is requested.


•InventoryLevelConnection!
non-null

A list of the inventory item's quantities for each location that the inventory item can be stocked at.

Arguments

•Int

The first n elements from the paginated list.

•String

The elements that come after the specified cursor.

•Int

The last n elements from the paginated list.

•String

The elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.

•String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to created_at
•time
•id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to inventory_group_id
•id
Anchor to inventory_item_id
•id
Anchor to updated_at
•time

•UnsignedInt64!
non-null

The ID of the corresponding resource in the REST Admin API.

•Count

The number of locations where this inventory item is stocked.

•InventoryItemMeasurement!
non-null

The packaging dimensions of the inventory item.

Anchor to provinceCodeOfOriginprovinceCodeOfOrigin
•String

The ISO 3166-2 alpha-2 province code of where the item originated from.

•Boolean!
non-null

Whether the inventory item requires shipping.

•String

Inventory item SKU. Case-sensitive string.

•Boolean!
non-null

Whether inventory levels are tracked for the item.

•EditableProperty!
non-null

Whether the value of the tracked field for the inventory item can be changed.

•MoneyV2

Unit cost associated with the inventory item. Note: the user must have "View product costs" permission granted in order to access this field once product granular permissions are enabled.

•DateTime!
non-null

The date and time when the inventory item was updated.

•ProductVariantConnection

A paginated list of the variants that reference this inventory item.

Arguments

•Int

The first n elements from the paginated list.

•String

The elements that come after the specified cursor.

•Int

The last n elements from the paginated list.

•String

The elements that come before the specified cursor.


•ProductVariant!
non-nullDeprecated

Was this section helpful?