Search fares for a new departure of an issued train booking (SSE stream)

Stream the fares of one solution returned by POST .../change-search for the same booking, using the same projection as POST /v1/trains/fares. Quote the chosen fare with POST .../operation-quotes.

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

POST body for /v1/trains/bookings/{id}/change-fares.

string
required
length ≥ 1

Mercury UUID for the search solution (the id field of a TrainSearchResult emitted by POST /v1/trains/search).

string
required

SHA-256 solution key for lineage tracking. Clients must supply the value received from the search stream — omitting it returns HTTP 422.

enum

Filter fares to this travel class. Provider-specific class strings are normalised to the four standard values before filtering.

enum

change_datetime or change_itinerary. Optional: the change the searched solution belongs to. A value that contradicts it is rejected.

Responses
200

SSE stream of train fares

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!