InventoryItem

Version 2019-10

An inventory item represents the physical good available to be shipped to a customer. It holds essential information about the physical good, including its SKU and whether its inventory is tracked.

There is a 1:1 relationship between a product variant and an inventory item. Each product variant includes the ID of its related inventory item. You can use the inventory item ID to query the InventoryLevel resource to retrieve inventory information.

Use the InventoryItem resource together with the InventoryLevel and Location resources to manage a store's inventory across multiple locations.

What you can do with InventoryItem

The Shopify API lets you do the following with the InventoryItem resource. More detailed versions of these general actions may be available:

InventoryItem properties

cost
"cost": "25.00"

The unit cost of the inventory item.

country_code_of_origin
"country_code_of_origin": "FR"

The two-digit code for the country where the inventory item was made.

country_harmonized_system_codes
"country_harmonized_system_codes": [
  {
    "harmonized_system_code": "1234561111",
    "country_code": "CA"
  },
  {
    "harmonized_system_code": "1234562222",
    "country_code": "US"
  }
]

An array of country-specific Harmonized System (HS) codes for the item. Used to determine duties when shipping the inventory item to certain countries.

created_at
read-only
"created_at": "2012-08-24T14:01:47-04:00"

The date and time (ISO 8601 format) when the inventory item was created.

harmonized_system_code
"harmonized_system_code": 123456

The general Harmonized System (HS) code for the inventory item. Used if a country-specific HS code is not available.

id
read-only