Cancel a booking (with e-mailed code)
cancel_bookingCancel a booking under the terms and conditions: free more than 24 hours before pick-up, 50% charged between 24 and 2 hours (or a 100% credit instead), no refund within 2 hours. First call with booking_ref and email: returns the fee and refund, and e-mails a 6-digit code to the booking address. Second call with confirmation_code (after the customer agrees): cancels, refunds the card automatically and sends the confirmation e-mail.
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_ref": "<booking_ref>",
"email": "<email>"
},
"name": "cancel_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of notes and booking link (default en). | |
| Yes | |||
| choice | No | At the 50% stage only: refund (50%) or credit (100%, valid 12 months). | |
| booking_ref | Yes | ||
| confirmation_code | No | Second call only. |