Home Ask Login Register

Developers Planet

Your answer is one click away!

Muhammad Yasir February 2016


I am trying to generate PNR. For this purpose I used “EnhancedAirBookRQ” for Air Book “OTA_AirBookRQ” and “OTA_AirPriceRQ” for Price.

The work flow is given below.

(1) I used “BargainFinderMaxRQ” for search  
(2) Then I used “EnhancedAirBookRQ” for Air book and Price Iternary.  
(3) Then I used “PassengerDetailsRQ” to input passenger details 
(4) Last I want to end transaction.

I tried so many things but did not able to finish it successfully. What necessary fields I am missing in “EnhancedAirBookRQ” to book and price and how to continue to “PassengerDetailsRQ”.

//Request “EnhancedAirBookRQ”
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <m:MessageHeader xmlns:m="http://www.ebxml.org/namespaces/messageHeader">
            <m:PartyId type="urn:x12.org:IO5:01">malikexpress.com</m:PartyId>
            <m:PartyId type="urn:x12.org:IO5:01">http://webservices.sabre.com/sabreXML/2011/10</m:PartyId>
          <m:Service m:type="OTA">Air Shopping Service</m:Service>
          <m:DuplicateElimination />


Wisdoom February 2016

It would be good to know what is the error you get in the EndTransaction, plus, you have an EndTransaction in the PassengerDetails (inside the PostProcessing element).

There are 5 basic things that you will need to have in any PNR:
Phone number
Received From
Ticketing Time Limit

I recommend you to check on this FormatFinder link in order to learn more about PNRs, like the information above.

Anyway, it might be unrelated, but in the EnhancedAirBook response provided I see that the pricing failed because the booked itinerary was not confirmed. You can see the Status="UC", which means Unable to Confirm. (For more on UCs or different status I recommend you to check with webservices support directly.)

Dhiraj Bastwade February 2016

UC status means seats are UN-CONFIRMED. UC flight segment flights are not allowed to be booked.

You can EndTransaction in PostProcessing element itself in PassengerDetailsRQ which will return you PNR in response ItineraryRef element with ID attribute.

Please Note: TravelItineraryAddInfoRQ + TravelItineraryReadRQ + EndTransaction can be summarized in single step by calling PassengerDetailsRQ

Post Status

Asked in February 2016
Viewed 3,034 times
Voted 4
Answered 2 times


Leave an answer

Quote of the day: live life