Get Prices
get_pricesGet ticket prices for one or more Swiss train connections. Apply Half-Fare or GA discounts. With SwissTrip, enter traveler names to obtain family pricing.
Instructions
Get ticket prices for one or more train connections. Supports Half-Fare card (Halbtax) and GA travelcard discounts. When connected to SwissTrip (SWISSTRIP_TOKEN), pass traveler_names to get family pricing for multiple travelers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trip_ids | Yes | Trip IDs from search_connections results | |
| traveler_type | No | Traveler type (used when no traveler_names given) | ADULT |
| reduction_card | No | Swiss reduction card (used when no traveler_names given) | HALF_FARE |
| traveler_names | No | Names of SwissTrip travelers to price for (e.g. ["Fabian", "Anna"]). Requires SWISSTRIP_TOKEN. Each traveler's reduction card is applied automatically. |