-
Notifications
You must be signed in to change notification settings - Fork 30
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
Unsuccessful primary host transaction causing reservation failure #221
Comments
While making request of AirCreateReservation, you have to set all the attributes of AirSegment of AirPriceRsp in AirCreateReservation. |
hi, the FOP - FormOfPayment is not a mandatory parameter to create a booking. So, my first recommendation is to create the booking without FOP, if it is OK, add the element of FOP. Then the error could be isolated. The FOP is a simple element with few parameters. The AirPricingSolution element is most important parameter and it must be filled with all required values. If you add the request and response I could check some it. |
@RicOsiro I even tried with generated XML From the Demo site in the Travelport Test Tool , i got the same error same error. FYI : Also iam getting some erros in the demo site as well Will b so grateful if u helped me out |
hi, the demo site is working, the 13DWU4 was created, you could retrieve it. Please, check which environment are you calling, production or pre-prod? production is not allowed to book flights. Also, in the file "BookingXMLGit.txt" there is a soapenv:Header, |
@RicOsiro I am using 30 Days Trail API access only. |
Hi, the method BeforeSendRequest it not enough to make sure that all headers was sent, these http headers is not saved on the file and the method depends of context variables to fill the headers. Compare the 2 XMLs you sent, only the BookingXMLGit.txt has the soapheader, it is different the http header. A suggestion is to use a neutral tool the test your credential and XML, you can use the SoapUI(http://www.soapui.org) or Postman(https://go.postman.co/home), the similar way the test tool do it. I've just create another booking 13IPRU, please try another origin-destination and date to have a valid XMLs, not only the structure but also the values inside the XMLs, remember this is not a production environment, so some flights is not available to book even in the test tool. |
Hello @RicOsiro for now even the Air Pricing function stopped working, as previously it was working as expected now I am getting this error "000002 INVALID INPUT", I have used the postman for the air pricing and got the same error (you can check my request below ). and I got the same error when using the custom credentials from the Demo site. so I am getting this error from our app, from PostMan request and the same as the demo site. XML Samples used in Post Man in the attached file. |
Hi, the xml is working, but I've just tested it, also on test tool. But, again it has the SOAP Action inside of Envelope, make sure to send it on Http header, it is not mandatory on Soap envelope. Maybe that moment the environment was unavailable or even that route. But the XML is ok About you credential, I suggest to contact a Travelport commercial representative to request a permanent credential. You can also fill the Sale Inquiry form at https://www.travelport.com/contact to request a contact. |
Hello,
I am trying to book a ticket with "AirCreateReservation" after "AirPriceRsp", but I am getting different errors with "FormOfPayment" If I am using the Type as cash, then I am getting this:- Invalid data for a form of payment type:: If formOfPayment type is cash, you cannot specify other form of payment element
If I am using the Type as Credit, then I am getting this:- "Unsuccessful primary host transaction causing reservation failure." Note: I am using Test Credit Card from my bank as I understand travelport doesn't provide the testing card.
The text was updated successfully, but these errors were encountered: