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

Issue In AirPriceReq #68

Open anoopkp opened 8 years ago

anoopkp commented 8 years ago

Dear Vivek,

    I have tried to get the OptionalService (Meals), by using the AirPriceRequest. But I am Getting an Error "Price request unsuccessful due to incorrect OptionalService/ServiceData. At least one OptionalService/ServiceData is required for non-seat optional service and must reference one air segment and one booking traveler to fulfill optional service. ". I have attached the AirPriceReq XML file here for your review and hope your valuable reply.

Thank you

Anoop Kumar.K.P MindBridge (SITN). airPriceRequest.txt

vivekjyotipramanik commented 8 years ago

Hi Anoop,

Could you please provide me the AirPriceRsp which returned the OptionalService. The flow should be, If you receive OptionalService in AirPriceRsp, then only you will do the 2nd AirPriceReq with OptionalService. Again, this request is failing because the mandatory element ServiceData is not there in OptionalSevice. Please find below a sample. Please let me know how it goes. Thanks.

AirPriceReq to check available optional services:

Request: https://support.travelport.com/webhelp/uapi/Content/SampleWeb/SampleFiles/044_02_ACH_AirPrice-OptSvceQuery_Rq.xml

Response: https://support.travelport.com/webhelp/uapi/Content/SampleWeb/SampleFiles/044_02_ACH_AirPrice-OptSvceQuery_Rs.xml

2nd AirPriceReq to price the optionalservice which will be booked:

Request: https://support.travelport.com/webhelp/uapi/Content/SampleWeb/SampleFiles/044_04_ACH_AirPrice-Meals_Rq.xml

Response: https://support.travelport.com/webhelp/uapi/Content/SampleWeb/SampleFiles/044_04_ACH_AirPrice-Meals_Rs.xml

Thanks & Regards Vivekjyoti Pramanik

anoopkp commented 8 years ago

Dear Vivek,

Thank you for your quick reply and I am testing it. In our New Application, related to Travelport, We need the Details of the services like whether the Airline provides Meals Or Not. If  they Provide,How to  get the list of Meal Details like BreakFast,Lunch,Dinner etc, in LowfareSearch. 

When the User select the Meals, he needed, then we can send MealRequest for that passenger,using PriceReq.

Hope your Valuable Help.

Regards

Anoop Kumar.K.P MindBridge (SITN)

vivekjyotipramanik commented 8 years ago

Hi Anoop,

If the Airline supports meals and other optional services like baggage, seats, it will show in the AirPriceReq. There is no way to get the list in LowFareSearch. The list can be only retrieved during AirPriceReq(PreBooking) and after Ticketing it can be retrieved using AirMerchandisingOfferAvailability.

So, in this case there are two AirPriceReq, one to get the details and another to get the price with the selected optional service.

Please let me know how it goes. Thanks.

Thanks & Regards Vivekjyoti Pramanik