Skip to main content

Booking flow and management

Hotel-X can return errors or warnings as the severity of these issues can vary. These errors or warnings may be directly generated by the Hotel-X API layer, or they could be transmitted from the Seller's system in cases where they encounter errors on their end.

Below, you will find the list of the possible values that you will receive.

Errors List​

Errors are situations where the service has been terminated for some reason. Each error returned by the Hotel-X API layer has an alphabetic code and a type. Here, you will find the various options and their explanations.

CodeTypeDescriptionExplanation
ACCESS_ERRORVALIDATION_ERRORNo valid accesses foundThe access is not found or it has no permission, or you are using a test access and you need to add the testMode field to "true".
MISSING_FIELDVALIDATION_ERRORDepending on the scenarioSome mandatory fields are missing in input.
WRONG_FIELDVALIDATION_ERRORDepending on the scenarioA field or fields in the request are not correct.
ALL_PROCESSES_FAILEDPROCESS_ERRORSee warnings for more informationThis happens when our system has to make more than one request to the supplier's system. For example, in a search query, if we're checking availability for many hotels or suppliers, or in a booking query when we're asking about reservations for multiple bookings. If none of these requests get a successful response, we show this error. You can find more details about why it happened in the warning message. Sometimes, it can also happen if there's something wrong with the default settings.
OPTION_NOT_FOUNDPROCESS_ERRORDepending on the scenarioOption not found in quote. This occurs when the option's status has changed between the search response and the quote response.
INTERNAL_ERRORAPI_ERRORDepending on the scenarioCovers any unexpected error or errors due to internal service.
NOT_IMPLEMENTEDAPI_ERRORDepending on the scenarioThe requested operation is currently unavailable and has not been implemented for this supplier integration.
TIMEOUTCONNECTION_ERRORDepending on the scenarioThis occurs due to a connection timeout.
INTERNAL_ERRORREQUEST_CANCELEDDepending on the scenarioRequest has been cancelled and connection has been cut.

Warning List​

Warnings are potentially harmful situations or errors that do not require the service to be terminated. Warnings can originate from either the Hotel-X layer or the Seller's system. In the case of a warning from the Hotel-X layer, the code and type can be as follows:

Hotel-X warnings​

CodeTypeDescriptionExplanation
WRONG_FIELDPLUGIN_ERRORAccording to the caseIt occurs when the input of the plugin is misintroduced or misconstructed.
BLACKLISTPLUGIN_ERRORAccording to the caseIt occurs when the hotels or accesses are blacklisted.
MAPPING_NOT_FOUNDMAPPING_ERRORAccording to the caseThe option couldn't be processed due to the absence of mapping codes for the supplier context.
INTERNAL_ERRORMAPPING_ERRORAccording to the caseInternal error produced when mapping codes, it usually happens regarding hotel mapping.
COMMISSION_NOT_FOUNDAPI_ERRORAccording to the caseThis occurs when the options are discarded because the supplier returns options with a negative commission that does not allow the calculation of the net price. You need to upload the commission file to solve it.
NOT_IMPLEMENTEDAPI_ERRORDepending on the scenarioThe requested operation is currently unavailable and has not been implemented for this supplier integration.
REFERENCE_NOT_EXISTSBOOKING_ERRORSupplier has not returned any booking with this criteriaThis occurs when the provided booking reference is not available in the supplier's system.

Connection warnings​

If the errors originate from the connection with the Seller's system, you will receive the following codes and types:

CodeTypeDescription
Depends on the Seller101Unspecified Error (Exception not controlled or not classified as controlled error). This could be caused by an integration error or an unexpected supplier response.
Depends on the Seller102Supplier Error.
Depends on the Seller103Too many requests to the supplier.
Depends on the Seller104Error indicating that the operation exceeded the allotted time for execution (refer to the common attribute timeout).
Depends on the Seller105Communication Error.
Depends on the Seller204Supplier returns 0 results in availability.
Depends on the Seller205The Supplier doesn’t accept the occupations RQ.
Depends on the Seller206The Supplier doesn’t accept the dates RQ.
Depends on the Seller207The Supplier doesn’t accept the request RQ.
Depends on the Seller301Option not found in policies.
Depends on the Seller302Hotel Not Found in DescriptiveInfo.
Depends on the Seller303Booking not confirmed in the supplier’s system.