Cancel a Vuelo booking
cancel_bookingCancel a Vuelo booking, before or after the traveller confirms. Pass the taskId if it was made in this conversation; from any other conversation, a made booking can be cancelled with its Vuelo reference (VU-...) and the email or mobile it was booked with. Not confirmed yet: it is called off at once, the texted link stops working and nothing was charged. Already booked: call it first with preview: true and tell the traveller what they would get back (refund.amount, summary). If they want to go ahead, call it again without preview. A reservation with nothing paid is cancelled at once. For anything paid, Vuelo texts the traveller a six-digit code and nothing is cancelled until it is given: ask them for it and call again with code (they can also enter it on their booking page). Never guess a code, and never say a paid booking is cancelled until this or get_booking_status says so.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | For a paid booking: the six-digit code Vuelo texted the traveller, as they gave it to you. Finishes the cancellation and the refund. | |
| No | With reference: the email the traveller booked with. | ||
| mobile | No | With reference, instead of email: the mobile on the booking. | |
| taskId | No | The taskId book_trip returned, when the booking was made in this conversation. | |
| preview | No | true: only say what cancelling would refund, changing nothing. | |
| reference | No | Otherwise: the Vuelo booking reference (VU-...). |