Inventory Properties

Inventory Item Properties

Here is the detailed breakdown of the properties for inventory items:

FieldTypeDescription
idstringThe unique identifier of the inventory item.
product_idstringThe unique identifier of the product.
variant_idstringThe unique identifier of the variant.
trackingboolIndicates whether inventory tracking is enabled for the item.
tracking_policystringSpecifies the tracking policy (e.g., "allow", "deny","auto_unpublished","continue").
created_atstringThe timestamp when the inventory item was created (ISO 8601 format).
updated_atstringThe timestamp when the inventory item was last updated (ISO 8601 format).

Example Inventory API Request Body

{
  "product_id": "f854e9a2-986d-4e2b-9df0-8e4c139ae80e",
  "variants": [
    {
      "variant_id": "5723299f-238a-4491-8b42-a187462e748a",
      "location_items": [
        {
          "location_id": 327627904831724000,
          "stock": 1
        }
      ]
    }
  ]
}