Please make sure you read the Conventions before continuing with this guide.
You will need an X-API-KEY.
You will interact with the /inventory/trips endpoint of the
Inventory Bucket to find a trip given some parameters.
|departureDate||Date formatted as yyyy-mm-dd||2017-10-28|
Notice the fareIds is not only an array of fareIds, but they include the number of passengers for that fare Id as well.
The fareId and the qty are separated by a colon
The originId and destinationId parameters are station ids.
The response will contain zero or more departure and return Trips. For each Trip, pricing information can be found in the
fares property, or the
fareClasses property if you performed a search for a product that has Fare Classes configured.