Price a change, leg removal, traveler removal or replacement, or cancellation of an issued train booking

Price one operation on an issued train booking. operationType is change_datetime or change_itinerary (a fareId streamed by POST .../change-fares and the legIds it was searched for, from a search of the same operationType), remove_legs (the legIds to drop, every leg of each group removableLegIds lists on GET .../operations, leaving at least one leg; the quote reports totalPaid, amountWithheld and refundAmount), remove_passengers (the travelerIds to drop, none of them in lockedTravelers, leaving at least one traveler) or change_travellers (unique currentTravelerId to newTravelerId pairs, each replacement a colleague with a date of birth who is not on the booking), or cancellation. Pass estimatedTotalAmount from the response verbatim to POST .../operations.

A change quote reports 409 INSUFFICIENT_CREDIT_LINE when the company credit line cannot cover the new total.

The Idempotency-Key header is required.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Body Params
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

The operator does not allow changing the booking now

410

The change search expired; search again

422

The selection does not fit the booking or the operator's rules (INVALID_CHANGE_SELECTION; details[0].reason says why)

503

Booking or train provider unavailable

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