Answer Package Part Cancellation
answer_package_part_cancellationAnswer the choice Zestli offers after an operator cancelled part of a booking: its part of a package, or some nights of a stay (scope 'stay'; cancelled_nights and kept_nights are local dates). get_booking_status lists it in package_choices. Call with confirm=false to read both outcomes: keep_rest keeps the other parts or nights booked and refunds what was cancelled (keep_rest_refund_minor); refund_all cancels the whole booking and refunds everything (refund_everything_minor). Tell the user both, and the answer_by deadline (no answer by then refunds everything). Then, with the user's explicit choice, call again with confirm=true, the choice's cancellation_id, the answer and a new request_id; retrying with the same request_id and answer is safe and answers the same choice again, changing nothing. One answer per choice. The refund then moves within about a minute; its refund_state here and in get_booking_status says whether it has settled.
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": {
"request": "<request>"
},
"name": "answer_package_part_cancellation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes | Input for answer_package_part_cancellation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| choices | No | ||
| message | No | ||
| recorded | No | ||
| booking_id | Yes | ||
| error_code | No | ||
| read_scope | No |