Low stock
hub_find_low_stockWhat is running out. Answers 'what is low', 'what do I need to reorder', 'what has run out at the warehouse'. Returns the stock-tracked (variant, outlet) lines at or below a threshold, lowest first. Threshold defaults to 5; pass threshold: 0 for "what has actually hit zero". Lines where stock is NOT tracked are excluded on purpose — they have no count, so they can never be low, and reporting them would invent a shortage that does not exist. This is per outlet: the same variant can be empty in one shop and full in another. For one specific product use get_stock instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many lines to return, default 25 | |
| outletId | No | Outlet id from get_outlets. Omit to cover every outlet | |
| threshold | No | Report lines with this many units or fewer. Default 5; use 0 for out-of-stock only |