Inventory
Stock levels, stock movements, stock adjustments and stock counts.
📄️ Get the stock of one item
The on-hand quantity of one item at the outlet in `X-Outlet-ID`, in the item's own unit. `item_type` is `product` (`item_id` is a variant id) or `raw_material` (`item_id` is a raw material id; needs the raw material plan feature). An item with no stock movement at the outlet answers `0`. An item of another merchant answers `404 NOT_FOUND`. This is the one place to read stock.
📄️ List stock movements
The stock movement log of the outlet in `X-Outlet-ID`, without filters. Pages are offset-based: rows added while you page can shift a page.
📄️ Adjust stock
Adds `delta` (negative to remove) to the stock of one item at the outlet in `X-Outlet-ID`, as the acting user.
📄️ Set item stock to an exact quantity
Counts one item at the outlet in `X-Outlet-ID` as the acting user: the stock ends at `quantity`, whatever it was before. Sending the same count again changes nothing.