Inventory Item Properties
Here is the detailed breakdown of the properties for inventory items:
Field | Type | Description |
---|---|---|
id | string | The unique identifier of the inventory item. |
product_id | string | The unique identifier of the product. |
variant_id | string | The unique identifier of the variant. |
tracking | bool | Indicates whether inventory tracking is enabled for the item. |
tracking_policy | string | Specifies the tracking policy (e.g., "allow", "deny","auto_unpublished","continue"). |
created_at | string | The timestamp when the inventory item was created (ISO 8601 format). |
updated_at | string | The 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
}
]
}
]
}