Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

query

Returns an InventoryItem object by ID.

ID!required

The ID of the InventoryItem to return.


Was this section helpful?

Represents the goods available to be shipped to a customer. It holds essential information about the goods, including SKU and whether it is tracked. Learn more about the relationships between inventory objects.

countryCodeOfOrigin

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

countryHarmonizedSystemCodes
non-null

A list of country specific harmonized system codes.

createdAt
non-null

The date and time when the inventory item was created.

duplicateSkuCount
non-null

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

harmonizedSystemCode

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

id
non-null

A globally-unique ID.

inventoryHistoryUrl

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

inventoryLevel

The inventory item's quantities at the specified location.

inventoryLevels
non-null

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

legacyResourceId
non-null

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

measurement
non-null

The packaging dimensions of the inventory item.

provinceCodeOfOrigin

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

requiresShipping
non-null

Whether the inventory item requires shipping.

sku

Inventory item SKU. Case-sensitive string.

tracked
non-null

Whether inventory levels are tracked for the item.

trackedEditable
non-null

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

unitCost

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.

updatedAt
non-null

The date and time when the inventory item was updated.

variant
non-null

The variant that owns this inventory item.


Was this section helpful?