Skip to main content

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​

One page of the reservations created against this demandRef (possibly empty), ordered by (createdAt, id).