Look up every reservation for a demand reference
GET/reservations
Returns every Reservation ever created against a caller-supplied demandRef (an external system's order+line reference, e.g. from order-management). A demandRef can have MULTIPLE reservations across its lifetime — a reservation that was revoked, followed by a successful retry — so this returns a collection, not a single resource; an unknown demandRef returns 200 with an empty items array, not 404. The collection is keyset-paginated (REST guideline section 3): one page of {items, nextCursor} ordered by (createdAt, id), limit (1-500, default 100) and the opaque cursor from the previous page's nextCursor; demandRef is repeated on every page request and nextCursor is absent on the last page. Any query parameter other than demandRef, limit and cursor is 400 unknown-query-parameter (a retired paging parameter such as after fails loudly instead of reading page one forever). This is the read side backing a cross-service order-lifecycle console screen that needs to answer "what did inventory-storage do for order X, line N". Side-effect-free.
Request
Responses
- 200
- 400
- 500
One page of the reservations created against this demandRef (possibly empty), ordered by (createdAt, id).
The demandRef query parameter is missing or empty (missing-demand-ref), limit is not an integer between 1 and 500 (invalid-limit), or cursor is not a page token this API issued (invalid-cursor), or a query parameter other than demandRef, limit and cursor was sent (unknown-query-parameter).
An unexpected internal error occurred.