Get usable inventory for a SKU
GET/inventory/:sku/usable
Returns the usable-inventory read model for a SKU: on-hand minus active reservations minus held/unlocated stock, summed across every StockUnit for that SKU. This is a projection, not a stored aggregate — it is what constrains ReserveStock, since total on-hand is not what's available to promise to new demand. Side-effect-free.
Request
Responses
- 200
- 400
- 500
Usable quantity for the SKU and owner (0 if the SKU is unknown).
SKU path segment missing/empty (empty-sku), or ownerRef malformed (invalid-owner-ref).
An unexpected internal error occurred.