Revoke a reservation
DELETE/reservations/:id
Cancels an ACTIVE reservation and returns its full reserved quantity to usable inventory on every StockUnit it had allocated from. This is the mechanism that makes reservations safe against physical delivery failure: revoke, then reserve again — the second reservation is free to draw from a different physical holding. Idempotent in effect (a resource that no longer exists or is already resolved simply can't be revoked again), though a second call on an already-resolved reservation is reported as 409, not a silent 204.
Request
Responses
- 204
- 404
- 409
- 500
Reservation revoked; quantity returned to usable.
No reservation exists with this id.
The reservation is already resolved (confirmed, revoked, or expired), or a racing request modified the same reservation first (ADR 0019 — re-fetch and retry).
An unexpected internal error occurred.