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.

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.
successobject
timeStampstring
pricedItinerariesobject