Please make sure you read the Conventions before continuing with this guide.
Requirements.
You will need an X-API-KEY.
Getting departure stations for a product
You will interact with the /inventory/stations endpoint of the Inventory Bucket
to load all possible departure stations for a given product.
Parameter | Type | Example |
---|---|---|
providersId | String | 5910cfbafa1b904d0c000017 |
productId | String | 5910cfbafa1b904d0c000016 |
Getting destination stations for a product
Given an 'origin' station, this endpoint will return only the stations considered as 'destination' or destinations from that origin.
This endpoint does not provide guarantees that there are schedules available between the origin and destination stations. It calculates destination stations using the fare tables.
Parameter | Type | Example |
---|---|---|
departure | String | 5910cfbafa1b904d0c000018 |
providersId | String | 5910cfbafa1b904d0c000017 |
productId | String | 5910cfbafa1b904d0c000016 |