v1

latestSwagger 2.02026-07-141993129.2 KB
Bookings

Cancel one reservation.

This request will cancel one specific reservation. It will show up in the hetras UI in the Cancellation and NoShow processing screen and it will be up to the hotel staff to either charge or waive the cancellation fee.<br /> For more details on how the API responds to errors please check our documentation on <a href="https://developer.hetras.com/docs/errors/" onfocus="this.blur()">Error Handling</a>.

post/api/booking/v0/bookings/{confirmationId}/reservations/{reservationNumber}/cancel

Path parameters

confirmationIdstring required

The confirmation id for the booking the reservation was made.

reservationNumberinteger required

Specifies the reservation number for the reservation to cancel.

Query parameters

sendConfirmationboolean

Whether to send a confirmation email to the primary guest

Headers

App-Idstring required

Application identifier

App-Keystring required

Application key.

Response

Returns the cancellation id and the cancellation fee that will be charged to the folio of the reservation.

_warningsstring[]

Warnings that came up when your request was processed. Your request will still be processed successfull when you see such warnings in your response

balancenumber double

The current balance on the reservations folio without the cancellation fee

cancellation_feenumber double

The fee that might be charged to the folio of the reservation. The cancelled reservation will show up in the cancellation and no show processing screen and the hotel staff will either charge the fee or waive it.

cancellation_idstring

The id of the successful cancellation. With this id the hotel staff will be able to find the reservation