hotel-api-Error-Codes

Hotel API 1.7

Error Codes

The following table lists the error codes, corresponding error messages, and descriptions that may be returned by the Hotel API.

Sr. No.Error CodeError MessageDescription
1Invalid_RequestInvalid request.The API request contains invalid or missing information.
2Hotel_List_EmptyAt least one hotel is mandatory.At least one hotel ID must be provided.
3Hotel_Limit_ExceededHotel IDs cannot exceed 100.The request contains more than 100 hotel IDs.
4Invalid_CheckIn_DateInvalid check-in date format. Expected yyyy-MM-dd.Check-in date must follow the expected date format.
5Invalid_CheckOut_DateInvalid check-out date format. Expected yyyy-MM-dd.Check-out date must follow the expected date format.
6CheckIn_Date_In_PastCheck-in date cannot be in the past.The requested check-in date is earlier than the current date.
7Invalid_Stay_DatesCheck-out date must be after check-in date.Check-out date must be later than check-in date.
8Max_Stay_ExceededStay cannot exceed 40 nights.The requested stay exceeds 40 nights.
9Room_Details_EmptyRoom details cannot be empty.Room occupancy details are missing.
10Invalid_Room_DetailsInvalid room information.The provided room or occupancy information is invalid.
11Nationality_RequiredNationality cannot be empty.Nationality information is mandatory.
12Invalid_NationalitySelected nationality is not available.The provided nationality is not supported.
13Ratings_RequiredRatings must be provided.Hotel rating information is mandatory.
14Invalid_RatingsSelected rating(s) is not available.One or more selected hotel ratings are invalid or unavailable.
15No_Results_FoundNo hotels found for the requested search.No hotels match the requested search criteria.
16Supplier_TimeoutSupplier request timed out.The supplier did not respond within the configured timeout period.
17Authentication_FailedAuthentication failed.Authentication credentials are invalid or authentication could not be completed.
18Internal_Server_ErrorAn unexpected error occurred.An unexpected internal system error occurred.
19Session_TimeoutSession Timeout!The search session has expired.
20Hotel_Not_Associated_With_SessionThe Hotel Id is not associated with this session!The requested hotel ID does not belong to the original search session.
21CheckIn_Date_MismatchThe check-in date does not match the search request date!The check-in date differs from the original search request.
22CheckOut_Date_MismatchThe check-out date does not match the search request date!The check-out date differs from the original search request.
23User_Not_AvailableUser is not available.The user associated with the request could not be identified or is unavailable.
24Request_Token_MismatchThe request token is not associated with this session!The request token does not belong to the current search session.
25Room_Not_AvailableRoom is not available to book.The selected room is no longer available for booking.
26Adult_Count_MismatchAdult count does not match the search request.The adult count differs from the original search request.
27Child_Count_MismatchChild count does not match the search request.The child count differs from the original search request.
28Room_Availability_Not_ExecutedRoom availability has not been executed.Room availability validation has not been completed.
29Invalid_Request_TokenIncorrect request token.The provided request token is invalid or incorrect.
30Final_Selling_Price_MismatchFinal selling price is not matching with search response.The final selling price differs from the original search response price.
31BOOKING_FAILEDUnable to BookThe booking operation could not be completed successfully.