The booking flow is as follows: - First thing you need to make sure you ran the booking information request
- Once your client acknowledged all the details on the booking information response, you can run a booking request
- If the booking request returned a "confirmed" booking status - you're all done, no need to continue reading this
- Sometimes, there is a change in the room price between the time of the search and the time of the actual booking. in this case, you can do one of the two options below:
- fail the booking and stop the flow, nothing happened, nothing was booked
- ask your user if they accept the new price. if they don't - do nothing. if they do - run a confirmation call and check for the booking response
- In some cases, the hotels will return a pending (on request) status. in this case you will need to run a status query every 20 minutes or so to check if the status was changed by the hotel or not. if it was changed - good. if not - keep checking
- In other cases, there was an error during the booking process. in this case, you are advised to contact support and verify your booking status
|
|