Cancel a booking or request
cancel_bookingTwo-step. First call with confirm=false to see what the guest gets back if they cancel now (nothing changes). Tell the guest that refund and get their go-ahead, then call again with confirm=true and expected_refund_cents set to the refund amount from the first call. If the refund changed in between, the call fails with refund_changed instead of cancelling. Refunds go to the guest's card automatically. Pass guest_email (the email the booking was made with) unless you connect with an agent token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | ||
| booking_id | Yes | ||
| guest_email | No | ||
| expected_refund_cents | No | Required when confirm is true: refund.amount from the confirm=false call. |