- Real-time stock tracking: Monitor physical, reserved, and available quantities for each item variant.
- Multi-location support: Track inventory across multiple warehouse locations with embedded address information.
- Automated reordering: Set reorder levels and quantities to trigger alerts when stock runs low.
- Expandable relationships: Use the
expandparameter to include full Item, Variant, and Address details.
Attributes
| Field | Type | Description | Required | Expandable |
|---|---|---|---|---|
rootfi_id | integer | Unique identifier for this inventory record | Yes | No |
rootfi_created_at | datetime | When this inventory record was created in Commenda’s system | Yes | No |
rootfi_updated_at | datetime | When this inventory record was last updated | Yes | No |
rootfi_company_id | integer | Company identifier this inventory belongs to | Yes | No |
platform_id | string | Platform-specific inventory identifier | Yes | No |
item_id | string | Reference to the Item being tracked | Yes | Yes |
variant_id | string | Reference to the specific Variant being tracked | No | Yes |
sku | string | Stock Keeping Unit for this inventory item | Yes | No |
quantity | integer | Total physical quantity in stock | Yes | No |
reserved_quantity | integer | Quantity allocated to pending orders but not yet shipped | Yes | No |
available_quantity | integer | Quantity available for new orders (quantity - reserved_quantity) | Yes | No |
status | enum | Current inventory status | Yes | No |
is_trackable | boolean | Whether inventory levels are actively monitored for this item | Yes | No |
reorder_level | integer | Quantity threshold that triggers reorder alerts | No | No |
reorder_quantity | integer | Suggested quantity to reorder when stock is low | No | No |
addresses | array | Warehouse locations where this inventory is stored | No | Yes |
Status Enum Values
| Value | Description |
|---|---|
in_stock | Item is available in sufficient quantity |
low_stock | Item quantity is below reorder level |
out_of_stock | Item quantity is zero |
discontinued | Item is no longer being restocked |
unknown | Status cannot be determined |
Expandable Attributes
expand=item- Includes full Item objectexpand=variant- Includes full Variant objectexpand=addresses- Includes warehouse location details
Warehouse Address Object
Each address in theaddresses array represents a warehouse location:
| Field | Type | Description | Required |
|---|---|---|---|
rootfi_id | integer | Unique identifier for this address | Yes |
platform_id | string | Platform-specific address identifier | No |
type | enum | Address type (always warehouse for inventory locations) | Yes |
street | string | Street address of the warehouse | Yes |
city | string | City where the warehouse is located | Yes |
state | string | State or province | No |
postal_code | string | ZIP or postal code | Yes |
country | string | ISO 3166-1 alpha-2 country code | Yes |
Filtering Inventory
You can filter inventory records using query parameters:Low Stock Example
Low Stock Inventory Response