Hotel Cancellation
After complete the booking then if user needs to cancel a Hotel then it has to follow below process.
Hotel cancellation flow there are 2 section as given below.
- Get cancellation charge
- Cancel the Hotel Booking
Before canceling the booking cancellation charges can be viewed from the cancellation charges response.
Refer below table to refer the suppliers who support each scenario.
Supplier | Support get cancellation charge |
Support cancellation |
---|---|---|
Hotelbeds | YES | YES |
DOTW | YES | YES |
LOH | YES | YES |
Rezlive | NO | YES |
TBO Holidays | NO | YES |
TBO India | NO | YES |
Yalago | YES | YES |
Nitvana NOW | YES | YES |
MMT | NO | YES |
Yatra | NO | YES |
Both Get-cancellation-charge and Hotel-cancellation will be used same API call by mentioning action in the command
attribute.
Note:
Few attributes in below sample response are supplier specific, hence there can be possibility these attributes will not appear in the response. We recommend you to parse these fields as mentioned in the sample responses.
Get cancellation charge
Tags | Attribute | Description |
---|---|---|
HotelCancellationCriteria | (JsonObject) | |
command* (String) |
Command should be "cancellationCharges" to get cancellation charges | |
bookingReferenceId* (String) |
Unique Key for the booking | |
hotel cancellation charge request | |
---|---|
Tags | Attribute | Description |
---|---|---|
HotelCancellationChargesResponse | (JsonObject) | |
bookingReferenceId* (String) |
Unique Key for the booking | |
command* (String) |
the command returns as "cancellationCharges" on the cancellation charges response | |
bookingStatus* (String) |
The status of the booking | |
currency* | Applicable currency for cancellation charges | |
cancellationCharge | (JsonObject) | Applicable currency for cancellation charges |
supplierCancellationCharge * (Double) |
Supplier cancellation charge amount | |
adminCancellationCharge * (Double) |
Admin cancellation charge amount | |
totalCancellationCharges * (Double) |
Total cancellation charges |
Hotel cancellation
Tags | Attribute | Description |
---|---|---|
HotelCancellationCriteria | (JsonObject) | |
command* (String) |
The command should be 'cancel' to perform the hotel cancellation | |
bookingReferenceId* (String) |
Unique Key for tje booking | |
Tags | Attribute | Description |
---|---|---|
HotelCancellationResponse | (JsonObject) | |
bookingReferenceId* (String) |
Unique Key for the booking | |
command* (String) |
the command should be "cancel" in order to cancel a booking | |
bookingStatus* (String) |
The status of the booking | |
currency* | Applicable currency for cancellation charges | |
cancellationCharge | (JsonObject) | Applicable currency for cancellation charges |
supplierCancellationCharge * (Double) |
Supplier cancellation charge amount | |
adminCancellationCharge * (Double) |
Admin cancellation charge amount | |
totalCancellationCharges * (Double) |
Total cancellation charges |