Get booking links
get_booking_linksGet booking URLs for a specific itinerary (airline-direct by default; ignav_id lookups inherit allow_third_party from the search and can override it with allow_third_party=true/false). Preferred: pass ignav_id from search_flights. Alternatively, pass manual flight details (origin, destination, departure_date, outbound_carrier_code, outbound_flight_number, and optional return fields). Returns grouped booking_options: choose one link per group; multiple groups require separate bookings.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_booking_links"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adults | No | Manual lookup only: number of adult passengers. | |
| market | No | Manual lookup only: 2-letter country code for pricing currency and locale. | |
| origin | No | Manual lookup only: 3-letter origin airport IATA code. | |
| children | No | Manual lookup only: number of child passengers. | |
| ignav_id | No | Opaque itinerary ID from a fare search (preferred). Do not combine with manual flight, passenger, or market fields. | |
| destination | No | Manual lookup only: 3-letter destination airport IATA code. | |
| return_date | No | Manual lookup only: optional round-trip return date in YYYY-MM-DD format. | |
| departure_date | No | Manual lookup only: outbound departure date in YYYY-MM-DD format. | |
| infants_on_lap | No | Manual lookup only: number of lap infants. | |
| infants_in_seat | No | Manual lookup only: number of seated infants. | |
| allow_third_party | No | Include third-party agency (OTA) booking links. When omitted, ignav_id lookups inherit the search's allow_third_party setting and manual lookups default to false. | |
| inbound_carrier_code | No | Manual lookup only: 2-character inbound airline code (required with return_date). | |
| inbound_flight_number | No | Manual lookup only: inbound flight number (required with return_date). | |
| outbound_carrier_code | No | Manual lookup only: 2-character outbound airline code (e.g. UA). | |
| outbound_flight_number | No | Manual lookup only: outbound flight number (e.g. 101). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||