Booking Failure Handling
Important Note
- The Travlinq OTA API internally invokes various supplier(GDS, aggregators,consolidators, LCC, NDC, Hotels etc) APIs.
- Sometimes, we do not receive the proper API response from our upstream suppliers, or sometimes it can take additional time at the supplier end. Also, the suppliers may update the ticket numbers after a few minutes.
- In such cases, the Travlinq OTA API will not be able to return the proper response or may time out.
- In case you do not receive a proper status from the Travlinq OTA API, do not assume that the booking has failed.
- The below method describes an approach which you should implement at your side to handle such scenarios.
- In spite of multiple attempts, in case of any ambiguity whether a booking has failed, the recommended approach is to verify with the supplier portal, before taking any actions on the booking failures.
- This is to ensure that there is no inconsistency between the supplier system, VE system and your system, and avoid any financial impact in case the booking has been ticketed on the supplier system, but not updated in your system.
Async Retry Handling
This service provides endpoints for fetching data asynchronously. Each request has maximum 25s lifetime then client has to use fetch endpoint and retrieve the relevant response.
For more information: Asynchronously Data Fetching
Booking API call
- Invoke the Booking API of Air or Non-Air Products.
- If there is no response, null response, empty response, network timeout.
- Then invoke the Booking Retrieve API
- If Booking Retrieve API returns booking details in response, then consider it as a successful response, and update the details in your database.
- Else if the Booking Retrieve API does not return proper response, then repeat step 2(a), at 10 second intervals, for at least 2 minutes from the initial Booking API call.
- If there is no proper response after multiple attempts, then use the Scheduler approach.
- Then invoke the Booking Retrieve API
- Else if you receive a proper response
- If the Book Response is with booking status as TICKETED, PNR FAILED or ON HOLD for AIR and “CONFIRMED” status for Non-Air products, then consider the book response as successful and update the respective status in your database.
- If the Book Response is with booking status “OK TO TICKET” and "IN PROGRESS" for Air and “ON REQUEST” and "IN PROGRESS" for Non-Air products, then go for Scheduler approach
Scheduler Approach
- Invoke the Booking Retrieve API every 5 minutes
- If the Booking Retrieve Response is with booking status as TICKETED, PNR FAILED or ON HOLD for Air and “CONFIRMED” status for Non-Air, then consider the book response as successful and update the respective status in your database.
- If booking status is still “OK TO TICKET” and "IN PROGRESS" for Air and “ON REQUEST” and "IN PROGRESS" for Non-Air or no/null/empty response then continue with Step 1 from Scheduler Approach.
- After 30 minutes from the booking time, if you still get the booking status as “OK TO TICKET” and "IN PROGRESS" for Air and “ON REQUEST” and "IN PROGRESS" for Non-Air or no/null/empty response, then verify the status of the booking on supplier portal before taking any actions on the booking failures.
- Here, we recommend adding a notification mechanism for you to keep track of such bookings to verify the same on the supplier end.