Travelport / travelport-uapi-tutorial

The travelport-uapi-tutorial is a Java project for Universal API that will help you connect and code a standard workflow including Air and Hotel.
45 stars 34 forks source link

Flight airline agency pictures and other flight details #91

Open jadchahine opened 8 years ago

jadchahine commented 8 years ago

As we know for the flights, we have the AirSegment details, itinerary details and pricing options.

1) Regarding the flight airline agency, how can we get them using travelport API - JAVA? (Please find the attached image)

2) Regarding flight details like Baggage allowance and others... how can I get them?

airline agencies

vivekjyotipramanik commented 8 years ago

Hi Jad,

uAPI provides all the Airlines details through ReferenceDataRetrieve. Please provide TypeCode as "AirAndRailSupplierType" to get the all Airlines codes.

https://support.travelport.com/webhelp/uapi/uAPI.htm#Getting_Started/Design_Considerations/Reference_Data.htm%3FTocPath%3DGetting%2520Started%7CUniversal%2520API%2520Overview%7CDesign%2520Considerations%7C_____5

uAPI does not provide Airline images.

The baggageAllowance can be found in the AirPriceRsp. Also, there are is FlightDetailsReq which provides flight related details. Please find below the link with all the details.

https://support.travelport.com/webhelp/uapi/uAPI.htm#Air/Flight_Details/Flight_Details.htm%3FTocPath%3DAir%7CAir%2520Shopping%2520and%2520Booking%7COptional%2520Air%2520Transactions%7C_____2

Please let me know how it goes. Thanks.

Thanks & Regards Vivekjyoti Pramanik

jadchahine commented 8 years ago

Hi Vivekjyoti,

Please can you clarify to me how can I retrieve the "Airlines details"? I mean how can I use ReferenceDataRetrieve.

Say I am searching for flights and a List of AirItinerary have been found where in each one of the AirItinerary we have 2 TypeBaseAirSegment and then a AirPriceRsp will be calculated based on this AirItinerary, should I use ReferenceDataRetrieve after looping over all the AirItinerary or how? Please provide me the best practice.

Thanks&Regards

vivekjyotipramanik commented 8 years ago

Hi Jad,

The ReferenceDataRetrieve can be used just once and you can keep the results in your application database or a simple text file. Once you get the LowFareSearch or AirPriceRsp, you can use the text file comparing with the Airline Codes and get the Airline details from the text file. Please let me know how it goes. Thanks.

Thanks & Regards Vivekjyoti Pramanik