Get Cancellation Policy
get_cancellation_policyReturns the cancellation terms for one rate plan at a TravelOpen partner hotel: whether it is refundable, the free-cancellation window, the refund percentage, a plain-language summary and, given the check-in date, the exact free-cancellation deadline. Takes the propertyId and the ratePlanId from get_hotel_detail.
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": {
"propertyId": "<propertyId>",
"ratePlanId": "<ratePlanId>",
"checkInDate": "<checkInDate>"
},
"name": "get_cancellation_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Reply language. Falls back to queryText, then English. | |
| queryText | No | Short excerpt of the guest's request, used only to pick the reply language. | |
| propertyId | Yes | TravelOpen propertyId UUID from search results | |
| ratePlanId | Yes | ratePlanId from get_hotel_detail roomTypes[].ratePlanId | |
| checkInDate | Yes | Check-in date YYYY-MM-DD — required to compute the exact free-cancel deadline |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policyText | Yes | ||
| ratePlanId | Yes | ||
| nonRefundable | Yes | ||
| computedDeadline | Yes | ||
| freeCancelUntilHours | Yes | ||
| refundPercentAfterWindow | Yes |