Cancel a booking (free, at least 48 h before; customer confirms by email code)
cancel_bookingCancels an existing home-cleaning booking free of charge when the visit is at least 48 hours away (terms, article 7.4). Two calls: 1) without verification_code - checks the request and emails a 6-digit code to the address on the booking; 2) ask the customer for the code and call again with the same arguments plus verification_code. Recurring plans: scope "visit" cancels one visit (with visit_date), scope "plan" stops all upcoming visits (visits less than 48 hours away stay scheduled). Less than 48 hours before, or for an already-paid booking: use send_message or call 01 89 19 68 69.
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_reference": "<booking_reference>",
"email": "<email>"
},
"name": "cancel_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Email address used for the booking | ||
| scope | No | booking = one-off booking (default); visit = one visit of a recurring plan; plan = stop the recurring plan | |
| language | No | Language of the emails | fr |
| agent_name | No | Name of the assistant/app | |
| visit_date | No | With scope=visit: date of the visit to cancel | |
| booking_reference | Yes | Booking reference given at booking (booking_reference) | |
| verification_code | No | 6-digit code from the email, second call only |