Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Air ticket booking request shows warnings ? #247

Open
Arehmans opened this issue Jun 23, 2020 · 23 comments
Open

Air ticket booking request shows warnings ? #247

Arehmans opened this issue Jun 23, 2020 · 23 comments

Comments

@Arehmans
Copy link

HI attached my request for booking a ticket as well response. Can you please check the issue /warnings are coming .?
SMART.zip

@vivekjyotipramanik
Copy link
Contributor

Hi Arehmans,

Each of the warnings are based on the fare and are valid in this scenario. If at the time of booking the fare is not valid anymore, the warning 'NO VALID FARE FOR INPUT CRITERIA'/'NO FARES' will show. Please run the Search and Price step again to get the correct fare in this case. Also, please try at least 3 months departureDate from now to get proper fares in PreProduction system. Thanks.

@Arehmans
Copy link
Author

least 3 months departure date from now to get proper fares in the PreProduction system." is this mandatory in a live system or just for production system.

@vivekjyotipramanik
Copy link
Contributor

vivekjyotipramanik commented Jun 24, 2020

Hi Arehmans,

Only in Test/PrePropduction system due to limited testing data. Thanks.

@Arehmans
Copy link
Author

ok, let me try your instructions and ping u if any issue.
Thanks

@Arehmans
Copy link
Author

Hi @vivekjyotipramanik i changed the time now it is giving me some thing else error . Morever in air price infor already set ?
<air:AirPricingInfo ApproximateBasePrice="$ApproximateBasePrice" ApproximateTotalPrice="$ApproximateTotalPrice" BasePrice="$BasePrice" ETicketability="Yes" IncludesVAT="false" Key="/m5bEI4R2BKANSGcGAAAAA==" LatestTicketingTime="2020-05-31T23:59:00.000+05:00" PlatingCarrier="$Carrier" PricingMethod="GuaranteedUsingAirlinePrivateFare" ProviderCode="$Provider" Taxes="$Taxes" TotalPrice="$TotalPrice">
<air:FareInfo Amount="$TotalPrice" DepartureDate="$DepartureDate" Destination="$Destination" EffectiveDate="2020-05-28T15:27:00.000+05:00" FareBasis="OLZ0KO" Key="CYpMcJ3R2BKAl2Z1CAAAAA==" NotValidAfter="$DepartureDate" NotValidBefore="$DepartureDate" Origin="$Location" PassengerTypeCode="ADT" PrivateFare="AirlinePrivateFare" PseudoCityCode="PCC">
<common_v42_0:Endorsement Value="NON-REF/NON-END"/>
<common_v42_0:Endorsement Value="SPECIAL FARE CONDITIONS"/>
<air:FareRuleKey FareInfoRef="CYpMcJ3R2BKAl2Z1CAAAAA==" ProviderCode="$Provider">gws-eJxNjjEOwyAMRQ8T/d22SGg2aAE1A56SIUvvf4zaoEq1hP+HZ2OnlISEaCNJ/7HgsxxP6PUCFGKn54Kwxx1slxtEvCIX1apdMP54MBnSgafyKCyhRRM0aTKRB+6RazmM0RaIXRk+GW6tAz9T32Y1l7NHsUlh9ceJKMIW/QJNByr1
</air:FareRuleKey>
</air:FareInfo>
<air:BookingInfo BookingCode="O" BookingCount="9" CabinClass="$CabinClass" FareInfoRef="CYpMcJ3R2BKAl2Z1CAAAAA==" SegmentRef="/m5bEI4R2BKA7RGcGAAAAA=="/>

air:FareCalcLON QF MEL 131.15QDEAL GB131.15END</air:FareCalc>
<air:PassengerType Code="ADT"/>
air:ChangePenalty
air:AmountPKR12390</air:Amount>
</air:ChangePenalty>
air:BaggageAllowances
<air:BaggageAllowanceInfo Carrier="$Carrier" Destination="$Destination" Origin="$Location" TravelerType="ADT">
air:URLInfo
air:URLMYTRIPANDMORE.COM/BAGGAGEDETAILSQF.BAGG</air:URL>
</air:URLInfo>
air:TextInfo
air:Text1P</air:Text>
air:Text
BAGGAGE DISCOUNTS MAY APPLY BASED ON FREQUENT FLYER STATUS/ ONLINE CHECKIN/FORM OF PAYMENT/MILITARY/ETC.
</air:Text>
</air:TextInfo>
<air:BagDetails ApplicableBags="1stChecked">
air:BaggageRestriction
air:TextInfo
air:TextBAGGAGE CHARGES DATA NOT AVAILABLE</air:Text>
</air:TextInfo>
</air:BaggageRestriction>
</air:BagDetails>
<air:BagDetails ApplicableBags="2ndChecked" ApproximateBasePrice="$ApproximateBasePrice" ApproximateTotalPrice="$ApproximateTotalPrice" BasePrice="$BasePrice" TotalPrice="$TotalPrice">
air:BaggageRestriction
air:TextInfo
air:TextUPTO50LB/23KG AND UPTO55LI/140LCM</air:Text>
</air:TextInfo>
</air:BaggageRestriction>
</air:BagDetails>
</air:BaggageAllowanceInfo>
<air:CarryOnAllowanceInfo Carrier="$Carrier" Destination="$Destination" Origin="$Location"/>
<air:EmbargoInfo Carrier="$Carrier" Destination="$Destination" Origin="$Location">
air:URLInfo
air:URLMYTRIPANDMORE.COM/BAGGAGEDETAILSQF.BAGG</air:URL>
</air:URLInfo>
air:TextInfo
air:Text$Taxes</air:Text>
</air:TextInfo>
</air:EmbargoInfo>
</air:BaggageAllowances>
</air:AirPricingInfo>
Pi
air.zip

@vivekjyotipramanik
Copy link
Contributor

Hi Arehmans,

Could you please share the complete end to end flow xmls. Please share ariAvailReq/Rsp, AirPriceReq/Rsp as well. Thanks.

@Arehmans
Copy link
Author

@vivekjyotipramanik sure

@Arehmans
Copy link
Author

@vivekjyotipramanik please cehck this
air.zip

@Arehmans
Copy link
Author

@vivekjyotipramanik for air avialblity
air_avialblity.zip

@vivekjyotipramanik
Copy link
Contributor

Hi Arehmans,

Still missing the AirPriceReq/Rsp files. AirPriceReq/Rsp creates the Pricing information which is being passed to BookingReq/Rsp. Could you please share those files. Thanks.

@Arehmans
Copy link
Author

Arehmans commented Jul 6, 2020

hi, @vivekjyotipramanik All prices are defined in air creating code. what I understand about that code I am not creating another request for Air price. What I am doing first to search the availability and then start booking.However, i made some more changes and these changes given me some other error that is I think now entertainable can you plz check attached files for that specfic error
THanks in advance
airrr.zip

@vivekjyotipramanik
Copy link
Contributor

vivekjyotipramanik commented Jul 6, 2020

Hi Arehmans,

Looks like you are missing the process. You have to first do AirAvailabilityReq/Rsp or LowFareSearchReq/Rsp. Then you have to run AirPriceReq/Rsp with the itinerary you are selecting anf the AirPriceRsp will confirm the price and then you can take the price and go to the booking step. Please find below the link with the step by step process.

https://support.travelport.com/webhelp/uapi/uapi.htm#SampleWeb/Air.htm%3FTocPath%3DSamples%7C_____2

https://support.travelport.com/webhelp/uapi/uapi.htm#Air/Air_Shopping_and_Booking.htm%3FTocPath%3DAir%7CAir%2520Shopping%2520and%2520Booking%7C_____0

The error air:ErrorMessageUNABLE - CLASS DOES NOT EXIST FOR THIS FLIGHT</air:ErrorMessage> , you are getting cause the ClassOfService 'O' is not available for this flight. You will get the proper ClassOfService in the AirAvailabilityRsp/LowFareRsp and you have to confirm the price using the AirPriceReq/Rsp. Thanks.

@Arehmans
Copy link
Author

Arehmans commented Jul 6, 2020

Hi @vivekjyotipramanik can you please send me a demo code that contains all these steps.

@vivekjyotipramanik
Copy link
Contributor

Hi Arehmans,

The below code base all the sample code containing the steps. Thanks.

https://github.com/Travelport/travelport-uapi-tutorial-c-sharp/tree/master/ConsoleApplication1

@Arehmans
Copy link
Author

Arehmans commented Jul 7, 2020

HI @vivekjyotipramanik
i have made Air price request now i am getting this error ... please find attached req and response file
001-1G_AirPriceReq.zip

@vivekjyotipramanik
Copy link
Contributor

Hi Arehmans,

I believe you have shared the request xml only. Could you please share the response xml as well. Thanks.

@Arehmans
Copy link
Author

Arehmans commented Jul 8, 2020

HI @vivekjyotipramanik
Oh So sorry i forgot to attach please find new attachment having both
airrr.zip

@vivekjyotipramanik
Copy link
Contributor

Hi Arehmans,

You have again shared the bokingReq/Rsp. I need the PriceReq/Rsp to analyze the issue. Could you please share it. Thanks.

@Arehmans
Copy link
Author

Arehmans commented Jul 8, 2020

Hi @vivekjyotipramanik
its Price request just name of files refers maybe its booking request.

@vivekjyotipramanik
Copy link
Contributor

Hi Arehmans,

The price rsp you have shared, I am not seeing any issues with it and it looks absolutely fine. You have to use the the AirPricingSolution from the PriceRsp in the BookingReq. Thanks.

@Arehmans
Copy link
Author

Arehmans commented Jul 8, 2020

Hi @vivekjyotipramanik let me try this in next step booking request

@Arehmans
Copy link
Author

Arehmans commented Jul 9, 2020

Hi @vivekjyotipramanik i have tested that in my booking and I found following response
airrr.zip

@vivekjyotipramanik
Copy link
Contributor

Hi Arehmans,

You are using <air:AirSegmentRef Key="K4YIQM8Q2BKARdGSCAAAAA=="/> which will not work, you havee use the complete AirSegment. You can get the complete AirSegment element instead fro =m the AirPriceRsp as well. Please find below the link to end to end flow samples. Thanks.

https://support.travelport.com/webhelp/uapi/uapi.htm#SampleWeb/XMLFiles/1G_Air_Vehicle_Hotel/Air%20LowFareSearch-%20PricePoint-PASS.txt

https://support.travelport.com/webhelp/uapi/uapi.htm#SampleWeb/XMLFiles/1G_Air_Vehicle_Hotel/Air%20Price-PASS.txt

https://support.travelport.com/webhelp/uapi/uapi.htm#SampleWeb/XMLFiles/1G_Air_Vehicle_Hotel/Air%20Book-PASS.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants