Skip to main content

Get Product Unlotted Stock

GET 

/api/v2/products/:product/unlotted-stock

On-hand stock for a product that has no lot identity yet — open cost layers with no batch number and no expiry date, summed per stock-holding warehouse. This is stock received before lot tracking was switched on for the product; it still fulfils normally but carries nothing for FEFO, near-expiry alerts or recall tracing until it is backfilled.

Use it to decide whether a backfill is needed, then download a pre-filled CSV with GET /api/inventory-expiry/lot-backfill/template?product_id={product} and upload it to POST /api/inventory-expiry/lot-backfill. Once every layer carries a lot, total_quantity is 0 and warehouses is empty.

Reported for products that are not lot-tracked yet too (is_lot_tracked: false) — there it is simply all of the product's stock, which is the amount that will be left without a lot if tracking is enabled now.

Supplier and archived warehouses are excluded. Quantities are in the product's stock unit.

Authentication: Requires Bearer token. Scope: products:read.

Required scope: products:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Request

Responses

OK

Response Headers
    Content-Type