Get a booking link
get_booking_linkGet the TripWays checkout link for a tour, optionally preset to a date, start time, rate, and traveler mix. The traveler pays on tripways.com; this tool does not hold seats or take payment. bookable_natively and reason say whether the link opens TripWays checkout or the operator's calendar, and whether a hotel pickup must be chosen at checkout.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bokun_id": "<bokun_id>"
},
"name": "get_booking_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| rate_id | No | Option to preselect: the rate_id get_price_quote priced or one from its rate_options. Omit for the option a quote would price. | |
| bokun_id | Yes | ||
| travelers | No | Simple ages; mapped to Bokun pricing categories. | |
| start_time | No | HH:MM if start_time_id unknown. | |
| start_time_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | Present when ok is false. code: tour_not_found, destination_not_found, destination_ambiguous, or unpriced. message is written for the traveler. | |
| reason | No | ||
| bokun_id | No | ||
| spots_left | No | ||
| start_time | No | ||
| checkout_url | No | Open in the browser to pay on tripways.com. | |
| min_participants | No | ||
| bookable_natively | No |