Cancel a booking or request
cancel_bookingTwo-step. First call with confirm=false to see what the guest gets back if they cancel now (nothing changes). Tell the guest that refund and get their go-ahead, then call again with confirm=true and expected_refund_cents set to the refund amount from the first call. If the refund changed in between, the call fails with refund_changed instead of cancelling. Refunds go to the guest's card automatically. Pass guest_email (the email the booking was made with) unless you connect with an agent token.
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": {
"booking_id": "<booking_id>",
"confirm": "<confirm>"
},
"name": "cancel_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | False to preview the refund without changing anything; true to cancel. | |
| booking_id | Yes | The booking or request to cancel. | |
| guest_email | No | The email the booking was made with. Needed unless you connect with an agent token. | |
| expected_refund_cents | No | Required when confirm is true: refund.amount from the confirm=false call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refund | No | An amount in cents with its currency. | |
| booking | No |