Inventory Tools
Stock levels, movements and value.
Every tool on this page also takes company_id and connection_id (both required) and the freshness parameters. List tools also take page_size, cursor, sort_by and sort_direction; report tools take page_size, cursor, order_by and sort_direction. See Common Parameters.
What each system can answer is on the Sage 50 (UK) page. Sage 50 has a single stock location, so warehouse_ids and grouping by warehouse are refused.
inventory_list_stock_levels
Current stock per product and location: on hand, allocated, available (on hand less allocated), on order and reorder level. Products with nothing in stock are left out unless you ask for them.
| Parameter | Default | Description |
|---|---|---|
product_ids |
All | Only these products, using IDs from catalog_list_products. |
warehouse_ids |
All | Only these warehouses. |
include_zero |
false |
Include products with nothing on hand. |
query |
Empty | Searches stock IDs, product IDs and names. |
inventory_list_stock_movements
Stock in and out, by date. Quantities coming in are positive and going out are negative.
| Parameter | Default | Description |
|---|---|---|
period |
last_30_days |
Movement date. See Periods. |
product_ids |
All | Only these products. |
warehouse_ids |
All | Only these warehouses. |
types |
All | Any of receipt, issue, transfer_in, transfer_out, adjustment, return, production, other. |
query |
Empty | Searches movement IDs, products, documents and lots. |
inventory_get_valuation
Report. The current value of your stock in your base currency, using the valuation method your system reports. One row per unit, currency and method.
| Parameter | Default | Description |
|---|---|---|
group_by |
None | Any of product, warehouse, category. |
order_by |
dimension_key |
dimension_key, product, warehouse, quantity, inventory_value or valuation_method. |
inventory_get_reorder_candidates
Report. Products whose available stock is below their reorder level, with the reorder quantity and preferred supplier from your system. Stock already on order isn't taken into account, and no purchase order is created.
| Parameter | Default | Description |
|---|---|---|
warehouse_ids |
All | Only these warehouses. |
order_by |
dimension_key |
dimension_key, product, warehouse, available, reorder_point, suggested_order_quantity or preferred_supplier. |
inventory_get_stock_cover
Report. How many days your available stock will last: available stock divided by average daily use. Use is stock issued and used in production; returns, adjustments and transfers aren't counted. This is a guide based on past use, not a forecast.
Products with no recent use have unlimited cover, and sort as the highest.
| Parameter | Default | Description |
|---|---|---|
lookback_days |
90 | How many complete days of history, up to yesterday, to average use over. From 1 to 3660. |
order_by |
dimension_key |
dimension_key, product, warehouse, available, average_daily_demand or days_cover. |
inventory_get_stock_ageing
Report. How long the stock on hand has been sitting, by when it was received: age_0_30, age_31_90, age_91_180 and age_181_plus days. Stock that can't be traced to a receipt is shown as unaged_quantity rather than assumed to be new.
| Parameter | Default | Description |
|---|---|---|
order_by |
dimension_key |
dimension_key, product, warehouse, age_0_30, age_31_90, age_91_180, age_181_plus or unaged_quantity. |