Get cancellation policy
get_cancellation_policyGet the cancellation terms stored for one TripWays tour by bokun_id: the type (free, flexible, partial, or non_refundable), the refund percent and cutoff when the tour has them, and the operator's policy text. These are the tour's terms, not a quote for a specific booking.
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_cancellation_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bokun_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| url | No | The tour's TripWays page. | |
| note | 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. | |
| cutoff | No | How long before the start the terms apply. | |
| summary | No | One-line terms, e.g. 'Free Cancellation'. | |
| bokun_id | No | ||
| guidance | No | ||
| policy_text | No | The operator's policy text. | |
| cancellation | No | free, flexible, partial, or non_refundable. | |
| refund_percent | No |