Get the latest observed usable inventory for a SKU
GET/inventory-view/:sku
Returns the UsableInventoryObserved read model — the latest usable-quantity projection for a SKU, built from Inventory's StockReserved (decrements) and ReservationRevoked (increments) integration events, projected via the Kafka consumer (Task 7). Keyed by SKU, not by process path — Inventory reservations are SKU-scoped, with no natural path mapping. 404 until at least one event has been observed for the SKU.
Request
Responses
- 200
- 404
- 500
Latest observed usable quantity for this SKU.
No inventory event has been observed for this SKU yet.
An unexpected server-side failure (e.g. a repository or event-publisher error).