Skip to navigation

Search trains and fares

View as Markdown

Search for trains and fares, one way or round trip. Add a second entry to originDestinationInformation for the return leg. Fares are dynamic, so always price against a fresh search. Set availableFlightsOnly to false to also see sold-out classes; a class with resBookDesigQuantity of 0 (or status other than A) is sold out.

When nothing matches, the response is still 200 with an empty pricedItinerary list, not an error. A round trip is searched one leg at a time and combined, so both legs need a train.

Headers

x-api-keystringRequired
local-nameenumRequiredDefaults to OTA_AirLowFareSearchRQ
Routes the request to the search operation.
Allowed values:

Request

This endpoint expects an object.
posobjectRequired
Point of sale. Identifies the agent and channel behind the request.
versionstringRequired
originDestinationInformationlist of objectsRequired
One entry for one way, two for a round trip.
processingInfoobjectOptional
specificFlightInfoobjectOptional
travelerInfoSummaryobjectOptional
availableFlightsOnlybooleanOptional

Set to false to also return sold-out classes. A class with resBookDesigQuantity 0 is sold out.

Response

Matching trains with dynamic fares by class.
successobjectOptional
timeStampstringOptional
pricedItinerariesobjectOptional