Cancel a booking
cancel_bookingCancels a booking made through Bota. Without confirm it only returns the booking and whether it can be cancelled; with confirm=true it cancels it. Cancellation fees, if any, follow the company's terms.
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": {
"company_id": "<company_id>",
"booking_reference": "<booking_reference>",
"email": "<email>"
},
"name": "cancel_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Email the booking was made with. Required to prove the customer owns it. | ||
| confirm | No | true cancels the booking; omitted or false only previews it. | |
| language | No | Language of the conversation, BCP-47 (es, en, pt-BR, fr, de, it…). Defaults to 'en'. Bota also answers in the language the customer writes. | |
| company_id | Yes | Rental company id. | |
| booking_reference | Yes | Booking reference from the customer's confirmation email. |