Cancel a confirmed booking (flights, stays, cars, trains; others return 503). Send estimatedTotalAmount or cancellationFee from a preceding POST /v1/{vertical}/bookings/{id}/calculate-cancel-costs call when the vertical supports it.
A train fee mismatch returns 409 CANCELLATION_FEE_CHANGED. Quote again and confirm with a new Idempotency-Key.
For trains this route is deprecated: use POST /v1/trains/bookings/{id}/operation-quotes and .../operations with operationType: cancellation. Behaviour is unchanged.
The Idempotency-Key header is required.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
401Missing or invalid authentication
403User lacks booking capability for this vertical
404Booking not found
409Booking already in a terminal state, or the train cancellation fee changed (CANCELLATION_FEE_CHANGED). A fee change requires a new quote and a new Idempotency-Key.
410Offer expired (OFFER_EXPIRED); refresh fare search
422Missing Idempotency-Key header, or account requires mandatory custom attributes that were not supplied
503Service not configured or temporarily unavailable