Estimate cancellation cost

Return the estimated cost for cancelling a confirmed booking. Pass estimatedTotalAmount or, for trains, cancellationFee to the subsequent POST /v1/{vertical}/bookings/{id}/cancel call so the cancellation cost can be verified. Train responses also include totalPaid and refundAmount.

Supported verticals: flights, stays, cars, trains. Other verticals return 503.

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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
enum
required
Allowed:
string
required
Headers

Client-generated idempotency key (UUID v4 recommended). Required on all booking mutation requests. Whether a repeated key replays the first response depends on the operation; see its description and the idempotency and retries guide.

Responses

401

Missing or invalid authentication

404

Booking not found

409

Booking already in a terminal state

410

Offer expired — the fare behind the booking is gone. Returned as OFFER_EXPIRED with recoveryAction: CHANGE_SELECTION.

422

Validation error or missing Idempotency-Key

503

Service not configured or vertical not supported

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json