v1

latestOpenAPI 3.0.1Apache 2.02026-07-26193304444.4 KB
Inventory

List inventory levels

Returns a paginated list of inventory levels.

🔒 Requires: inventory:read scope

post/inventory_levels

Request body

group_variantsboolean

If filtering by root_product_ids and group_variants is true, one aggregated level will be returned for each variant family at each outlet.

include_compositesboolean

Include composite products in the response.

include_inactiveboolean

Include inactive products in the response.

location_idsstring[]

Optional outlet IDs to filter response by.

offsetinteger

How many inventory levels to skip.

product_idsstring[]

Optional product IDs to filter response by. Mutually exclusive with root_product_ids. When omitted, returns inventory levels for all products.

root_product_idsstring[]

Optional root product IDs to filter response by. Mutually exclusive with product_ids. When omitted, returns inventory levels for all products.

sizeinteger

How many inventory levels to return.

sort_direction'asc' | 'desc'

Whether to sort the response ascending or descending.

sort_type'total_count' | 'total_cost' | 'average_cost' | 'reorder_point' | 'reorder_amount' | 'product_name' | 'created_at'

Which response field to sort by.

supplier_idsstring[]

Optional supplier IDs to filter response by.

to_be_procured_onlyboolean

Only include inventory with a positive quantity to procure.

Response

average_costnumber double

The average cost of inventory available to sell.

🔒 Requires: product:cost:view scope

brand_idstring uuid
current_inventory_levelnumber double

Total inventory available to sell.

location_idstring uuid
namestring
product_idstring uuid
product_type_idstring uuid
quantity_to_procurenumber double

Quantity of stock to procure in order to satisfy current fulfilments and service orders.

reorder_amountnumber double

The quantity of stock to reorder. For FIXED, this is the static amount configured when the reorder method was set up. For MIN_MAX, this is dynamically computed as reorder_target minus current_inventory_level (or zero if current stock already meets or exceeds the target). Omitted if no reorder method is configured.

reorder_method'FIXED' | 'MIN_MAX' | 'null' nullable

The reorder strategy in use. FIXED uses a static reorder amount each time the threshold is reached. MIN_MAX dynamically computes the reorder amount to bring stock up to the configured maximum. Omitted if no reorder method is configured.

reorder_targetnumber double

The target inventory level for replenishment. For FIXED, this equals reorder_threshold + reorder_amount. For MIN_MAX, this is the maximum inventory level to restock to. Omitted if no reorder method is configured.

reorder_thresholdnumber double

The inventory level at which reordering is triggered. For FIXED, this is the reorder point below which a reorder is suggested. For MIN_MAX, this is the minimum inventory level. Omitted if no reorder method is configured.

root_product_idstring uuid

The root product ID of the product's variant family.

supplier_idstring uuid
total_costnumber double

The total cost of inventory available to sell.