Search for Itineraries

 

Once a PNR has been created on the Sabre® Host the Trip_SearchRQ Web Service offers functionality to allow the Airline or Agency to search for PNRs by many different criteria. It is the equivalent of the Sabre *-name command .The request can be further detailed by the ReturnOption section which specifies content of the return message.

API Information

Target Audience
All Sabre APIs Customers
Current Version
4.2.0
Authentication
Session Token
Service Action Code
Trip_SearchRQ

Trip_SearchRQ provides the capability for Hosted Carriers to retrieve PNR data in either OTA or STL formats and the search criteria include:

  1. Flight date or date ranges , Flight Number, Operating Carrier, Marketing Carrier, Status Codes, Countries, Cities
  2. Specific SSR codes
  3. Frequent Flier Programs, Frequent Flier Numbers
  4. Phone Numbers
  5. Ticket Numbers
  6. Form of ID, Passport, Driving License
  7. Secure Flight Passenger Data (SFPD)

Please check the User Guide for more options.

Sample request

<Trip_SearchRQ Version="4.2.0" EchoToken=" " xmlns="http://webservices.sabre.com/triprecord">
    <ReadRequests>
        <ReservationReadRequest>
            <NameCriteria>
                <Name>
                    <FirstName>CAL MR</FirstName>
                    <LastName MatchMode="START">MARTI</LastName>
                </Name>
            </NameCriteria>
            <PosCriteria AirlineCode="AB"/>
            <DestinationCriteria>
                <StartCityCode>AGP</StartCityCode>
                <StartDate>2015-06-18</StartDate>
                <EndCityCode>STR</EndCityCode>
            </DestinationCriteria>
            <ReturnOptions MaxItemsReturned="1000" ResponseFormat="TVL" ViewName="TripSearchBlobX"/>
        </ReservationReadRequest>
    </ReadRequests>
</Trip_SearchRQ>

Sample response

<Trip_SearchRS EchoToken=" " TimeStamp="2015-06-19T08:23:44" Target="Production" Version="4.2.0" xmlns="http://webservices.sabre.com/triprecord" xmlns:ns2="http://services.sabre.com/STL/v01" xmlns:ns4="http://webservices.sabre.com/sabreXML/2003/07" xmlns:ns3="http://webservices.sabre.com/pnrbuilder" xmlns:ns9="http://www.sabre.com/ssg/des/v1" xmlns:ns12="http://www.sabre.com/eps/schemas" xmlns:ns5="http://tds.sabre.com/rules" xmlns:ns6="http://tds.sabre.com/itinerary" xmlns:ns10="http://opentravel.org/common/v02" xmlns:ns7="http://services.sabre.com/STL_Header/v02_00" xmlns:ns11="http://www.OpenTravel.org/ns/OTA2/AppInfo_v01_00" xmlns:ns8="http://services.sabre.com/STL/v02">
    <Success>Success</Success>
    <ReservationsList NumberResults="1" NumberPages="1" TotalResults="1">
        <Reservations>
            <Reservation Locator="POLPCJ">
                <TravelItineraryReadRS:TravelItineraryReadRS Version="3.4.0" xmlns:TravelItineraryReadRS="http://webservices.sabre.com/sabreXML/2011/10" xmlns="http://webservices.sabre.com/sabreXML/2011/10" xmlns:ns4="http://services.sabre.com/res/ortl/v0" xmlns:ns3="http://services.sabre.com/res/or/v1_0" xmlns:ns5="http://services.sabre.com/res/ores/v0" xmlns:ns6="http://services.sabre.com/STL_Header/v120" xmlns:stl="http://services.sabre.com/STL/v01">
                    <stl:ApplicationResults status="Complete">
                        <stl:Success timeStamp="2015-06-19T08:23:45.617-05:00"/>
                    </stl:ApplicationResults>
                    <TravelItinerary>
                        <CustomerInfo>
                            <PersonName NameNumber="01.01" RPH="1" WithInfant="false">
                                <GivenName>CAL MR</GivenName>
                                <Surname>MARTIN</Surname>
                            </PersonName>
                        </CustomerInfo>
                        <ItineraryInfo>
                            <ReservationItems>
                                <Item RPH="1">
                                    <FlightSegment AirMilesFlown="1140" ArrivalDateTime="06-18T12:25" ConnectionInd="O" DayOfWeekInd="4" DepartureDateTime="2015-06-18T09:35" FlightNumber="2267" NumberInParty="01" ResBookDesigCode="Y" SegmentNumber="0001" SpecialMeal="false" Status="HK" eTicket="true">
                                        <DestinationLocation LocationCode="MUC"/>
                                        <Equipment AirEquipType="320"/>
                                        <MarketingAirline Code="AB" FlightNumber="2267"/>
                                        <OriginLocation LocationCode="AGP"/>
                                        <UpdatedArrivalTime>06-18T12:25</UpdatedArrivalTime>
                                        <UpdatedDepartureTime>06-18T09:35</UpdatedDepartureTime>
                                    </FlightSegment>
                                </Item>
                                <Item RPH="2">
                                    <FlightSegment AirMilesFlown="0314" ArrivalDateTime="06-18T16:05" ConnectionInd="I" DayOfWeekInd="4" DepartureDateTime="2015-06-18T14:55" FlightNumber="6196" NumberInParty="01" ResBookDesigCode="Y" SegmentNumber="0002" SpecialMeal="false" Status="HK" eTicket="true">
                                        <DestinationLocation LocationCode="TXL"/>
                                        <Equipment AirEquipType="320"/>
                                        <MarketingAirline Code="AB" FlightNumber="6196"/>
                                        <OriginLocation LocationCode="MUC"/>
                                        <UpdatedArrivalTime>06-18T16:05</UpdatedArrivalTime>
                                        <UpdatedDepartureTime>06-18T14:55</UpdatedDepartureTime>
                                    </FlightSegment>
                                </Item>
                                <Item RPH="3">
                                    <FlightSegment AirMilesFlown="0293" ArrivalDateTime="06-18T18:20" ConnectionInd="I" DayOfWeekInd="4" DepartureDateTime="2015-06-18T17:10" FlightNumber="6447" NumberInParty="01" ResBookDesigCode="Y" SegmentNumber="0003" SpecialMeal="false" Status="HK" eTicket="true">
                                        <DestinationLocation LocationCode="DUS"/>
                                        <Equipment AirEquipType="319"/>
                                        <MarketingAirline Code="AB" FlightNumber="6447"/>
                                        <OriginLocation LocationCode="TXL"/>
                                        <UpdatedArrivalTime>06-18T18:20</UpdatedArrivalTime>
                                        <UpdatedDepartureTime>06-18T17:10</UpdatedDepartureTime>
                                    </FlightSegment>
                                </Item>
                                <Item RPH="4">
                                    <FlightSegment AirMilesFlown="0210" ArrivalDateTime="06-18T20:25" ConnectionInd="I" DayOfWeekInd="4" DepartureDateTime="2015-06-18T19:25" FlightNumber="6846" NumberInParty="01" ResBookDesigCode="Y" SegmentNumber="0004" SpecialMeal="false" Status="HK" eTicket="true">
                                        <DestinationLocation LocationCode="STR"/>
                                        <Equipment AirEquipType="DH4"/>
                                        <MarketingAirline Code="AB" FlightNumber="6846"/>
                                        <OriginLocation LocationCode="DUS"/>
                                        <UpdatedArrivalTime>06-18T20:25</UpdatedArrivalTime>
                                        <UpdatedDepartureTime>06-18T19:25</UpdatedDepartureTime>
                                    </FlightSegment>
                                </Item>
                            </ReservationItems>
                        </ItineraryInfo>
                        <ItineraryRef AccountingCity="DUS" AccountingCode="AP" AirExtras="false" ID="POLPCJ" InhibitCode="U" OfficeStationCode="2349764" PartitionID="AB" PrimeHostID="AB" TicketingCarrier="AB">
                            <Source AAA_PseudoCityCode="DUS" CreateDateTime="2015-06-17T16:40" CreationAgent="KAD" HomePseudoCityCode="HDQ" LastUpdateDateTime="2015-06-17T16:40" PseudoCityCode="A0A0" SequenceNumber="1"/>
                        </ItineraryRef>
                        <SpecialServiceInfo RPH="001" Type="AFX">
                            <Service SSR_Code="SSR" SSR_Type="DOCS">
                                <PersonName NameNumber="01.01">MARTIN/CAL MR</PersonName>
                                <Text>AB HK1/P/US/453645779/US/29MAR77/M/11FEB21/MARTIN/CAL</Text>
                            </Service>
                        </SpecialServiceInfo>
                    </TravelItinerary>
                </TravelItineraryReadRS:TravelItineraryReadRS>
            </Reservation>
        </Reservations>
    </ReservationsList>
</Trip_SearchRS>

If you are a Sabre customer currently using Sabre APIs in production, access  Resources    

Docs Navigation