Search train fares (SSE stream)

Fetch fares for a train solution and stream them as Server-Sent Events.

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

POST body for /v1/trains/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.

Responses

401

Missing or invalid authentication

410

Search solution expired; refresh search

422

Invalid fare search parameters

503

Train fare provider unavailable

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here!