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

Earning points with loyalty card UAPI in AirCreateReservation #720

Open zhanfoo13 opened 4 years ago

zhanfoo13 commented 4 years ago

i am trying to build a request for aircreatereservation

understand from https://support.travelport.com/webhelp/uapi/Content/Air/Air_Booking/Create_Air_Booking/Air_Booking_with_Loyalty_Program.htm

that i can insert the loyalty card. Does this means the miles are earned on this? Just want to make sure we are on the right track. If so, is the sample from the link sufficient. Our use case is just to allow users to key in their frequent flyer card upon check out so that they can earn the points.

vivekjyotipramanik commented 4 years ago

Hi zhanfoo13,

Using UAPI, we can just add the Loyalty Card details and Frequent Flyer numbers, but it is completely to Airlines discretion and not shared with Travelport or UAPI, if miles are being accumulated or points are being earned upon using the loyalty or frequent flyer numbers. Carriers does not share this information with Travelport.

zhanfoo13 commented 4 years ago

@vivekjyotipramanik is there a data list for all the airlines loyalty cards? Or do we follow the airline IATA code. MH - for Malaysia Airlines Enrich

vivekjyotipramanik commented 4 years ago

Hi zhanfoo13,

Please follow the Airline Codes. Thanks.

zhanfoo13 commented 4 years ago

@vivekjyotipramanik are there any test cards in UAT?

Secondly, how do we know that the loyalty cards and meals / seat preferences are successful parsed given that the AirCreateReservation returns responses related to the PNR?

vivekjyotipramanik commented 4 years ago

Hi zhanfoo13,

In case of SeatPreference, the Seat number will be returned in the AirCreateReservationRsp like this,

<common_v46_0:AirSeatAssignment ElStat="A" Key="2HVFUlaqQXKHod2hV9VGrw==" Seat="25B" SeatTypeCode="RQST" SegmentRef="7w7rq/2DTkOTiWTS+Lg2qw==" Status="HK"/>

For loyalty cards, A standard Air Booking response is returned. Depending on each supplier's fare policies, loyalty information may or may not affect the fares returned. The mileage membership status is returned in the MembershipStatus attribute. It is associated with a loyalty number (any loyalty number) that is added. Thanks.