Anuluj rezerwację
cancel_bookingPURPOSE: Cancels the verified customer's existing booking. Irreversible. WHEN TO USE: Only after the customer explicitly confirmed they want to cancel this specific booking (reference and date read back to them). WHEN NOT TO USE: Not to change the date (use reschedule_booking), never on an unclear request. REQUIRED: booking_reference, customer_grant (or a signed-in customer). reason and idempotency_key optional. SIDE EFFECTS: cancels the booking and notifies the customer by SMS/e-mail. Repeating the same call returns the same result.
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>"
},
"name": "cancel_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional short reason given by the customer | |
| session_id | No | Optional. session_id from the previous result, if you have it. The server also recovers the session from quote_id / slot_id / confirmation_id / customer_grant. | |
| customer_grant | No | customer_grant returned by verify_phone_code | |
| idempotency_key | No | Optional. Same value when retrying the same request. If omitted, the server derives the key from the request, so a retry never creates a second booking. | |
| booking_reference | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| date | No | YYYY-MM-DD, Polish time | |
| time | No | HH:MM, Polish time | |
| error | No | Stable machine-readable error id when success=false, e.g. missing_required_fields, unsupported_postcode, no_availability | |
| price | No | ||
| total | No | ||
| end_at | No | ||
| status | No | ||
| message | No | ||
| success | Yes | true = operation done / data returned; false = see error | |
| currency | No | ||
| start_at | No | ||
| booking_id | No | Booking reference to give the customer (same as booking_reference) | |
| can_cancel | No | ||
| session_id | No | ||
| can_reschedule | No | ||
| missing_fields | No | ||
| service_summary | No | ||
| booking_reference | No |