Order Network Exception Handling Process
#
BackgroundThe Huazhu distribution platform and the distributor server use Internet communication, transmission can not avoid timeout and other network anomalies, the following content mainly for such problems and response methods to explain.
#
Network exception definition- Connection timeout
- Connection read timeout
- Connection reset
- Exceptions caused by other networks (Http status codes are not 200 and not 4XX)
#
User StoryAfter the distributor system sends out the request, due to the network anomaly, the distributor system cannot receive the real response from the Huazhu system, at this time, the reservation may be successful in Huazhu system, for such reservations, both parties must abide by the plan given in this document for processing, not processed will have to bear the corresponding hotel losses. In general, there are two types of network anomalies:
#
Solution#
Booking Result Consistency ConfirmationIf you do not receive any response or receive a response with Http status code other than 200 and 4XX from Huazhu Distribution System when calling the Book interface, you need to call the Consistency Query interface several times within 8 minutes to confirm the booking result (recommended frequency: no more than 16 times/per order within 8 minutes).
If the reservation result is confirmed within 8 minutes, the reservation will be recognized as a valid reservation in the distributor's system (the valid reservation should be settled to the store). If the reservation is invalid in the distributor system, it is recommended to call the cancellation interface for cancellation); if the reservation result is not compensated for more than 8 minutes, the reservation will be recorded as a failure.
If there is a network exception in the compensation inquiry, such reservations need to be manually intervened within 24 hours to notify Huazhu to confirm the order status together.
The consistency query will return the order number and order status. when receiving the order status of HOTEL_FAILED can be recognized as a failure, without the need to continue compensation query.
#
Attached: Processing Flow of Network Exception Booking#
Network Exception Booking Process- If the network in the picture occur an exception and the distributor does not receive a response from the Huazhu system (a response with the Http status code of 200), the distributor must confirm the booking result through the Consistency Query interface within eight minutes.