hemmabo_booking_cancel
Cancel a confirmed booking and process Stripe refund per the host’s cancellation policy. Requires the booking UUID from checkout or creation. Optional reason forwarded to the host.
Instructions
Cancel a confirmed booking and process the Stripe refund per host cancellation policy. Use when the guest explicitly requests cancellation. Do not use for pending/unpaid bookings — those expire automatically. Requires Authorization: Bearer token (MCP_API_KEY or OAuth). Destructive and idempotent: cancelling an already-cancelled booking returns the same status. Rate-limited per token. reservationId must be the booking UUID from hemmabo_booking_checkout or hemmabo_booking_create — not a propertyId; reason is optional free text forwarded to the host.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Human-readable cancellation reason for the host (e.g. 'Travel plans changed', 'Flight cancelled'). Optional; omit when the guest did not give a reason. | |
| reservationId | Yes | Booking or reservation UUID from hemmabo_booking_checkout or hemmabo_booking_create (e.g. '7c9e6679-7425-40de-944b-e07fc1f90ae7'). Required to look up, cancel, or reschedule the same booking record. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when isError=true. | |
| refund | No | Refund payload returned by cancel-booking edge function, when present. | |
| status | Yes | Final booking status after cancellation. | |
| reservationId | Yes |