Get a price quote
get_price_quoteGet the live total for a TripWays tour on one date and start time for a traveler mix, priced from the operator's booking calendar. Without rate_id it prices the option the tour page advertises (else the operator's default, then the cheapest option that fits the group). rate_options lists every option at that start time with its total for the same travelers; pass one's rate_id to price that option. The start time can be left out when the date has only one. A quote does not hold seats or charge anything. Optional extras and promo codes are not included. When no option can price the mix, the result is unpriced and the message gives the group size the options take. from_price is what one adult pays (the price Google shows); group_price, when present, is the per-person price for a group as the tour page shows it.
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>",
"date": "<date>"
},
"name": "get_price_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| rate_id | No | Option to price: a rate_id from rate_options (or check_availability rate_ids). Omit for the option the tour page advertises. | |
| 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 | ||
| date | No | ||
| 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 | ||
| rate_id | No | The option priced. Pass to get_booking_link. | |
| bokun_id | No | ||
| currency | No | ||
| from_price | No | The tour's From price: what one adult pays on the option the tour page advertises, the price Google shows. Not the price of this quote; that is package_total. | |
| per_person | No | What each traveler pays in this quote, when all are one age group on a per-person option (package_total split evenly). | |
| quote_kind | No | ||
| rate_title | No | ||
| start_time | No | ||
| group_price | No | Present when the tour page also shows a group price, for example "2 travelers: $187.09 each": what each pays when that many adults book together on the advertised option. Quote it as given. | |
| checkout_url | No | Checkout preset to this date, time, and travelers. | |
| rate_options | No | Every option at this start time. Priced options carry package_total for the same travelers; unpriced ones carry min_travelers or max_travelers when group size is the reason. Pass rate_id to get_price_quote or get_booking_link to choose one. | |
| package_total | No | Total for the whole group, before optional extras and promo codes. | |
| pickup_charge | No | Compulsory pickup / drop-off charge, already in package_total. | |
| promo_applied | No | ||
| min_participants | No | ||
| travelers_priced | No | Traveler counts the total covers. | |
| bookable_natively | No | ||
| from_price_basis_adults | No | Travelers from_price covers: 1, or the minimum group on a tour sold only to groups (from_price is then that group's total). | |
| includes_required_extras | No | ||
| optional_extras_excluded | No | ||
| required_extras_unpriced | No |