Retrieve Itinerary

 

The Retrieve Itinerary (GetReservationRQ) API is used to retrieve and display a passenger name record (PNR) and data that is related to PNR.

API Information

Target Audience
All Sabre APIs Customers
Current Version
1.19.0
Authentication
Session or Sessionless Token
Service Action Code
GetReservationRQ

Once a PNR has been created on the Sabre Host, this Web Service offers capabilities allowing Airline or Agency to retrieve PNR data using PNR Locator as a search criterion. It also enables retrieving PNR from AAA session. Request payload can be further specified by using "ReturnOptions" which determine response message content.

For Read Only Access use the Trip option as the PNR is not unpacked into the user AAA Session. The PNR Locator must always be specified in the request.

For Update Access use the Stateful option as this will unpack the PNR into the user AAA session and be available for follow up Sabre entries. If a Locator is specified in the request the service checks the Locator in the AAA and if they match retrieves the current data in the AAA, if they do not match the service will unpack the PNR into the AAA session as long as the current session is available and there are no updates outstanding.

Sample Request

<ns7:GetReservationRQ xmlns:ns7 = "http://webservices.sabre.com/pnrbuilder/v1_19" Version = "1.19.0">
	<ns7:Locator>IJKZUQ</ns7:Locator>
	<ns7:RequestType>Stateless</ns7:RequestType>
	 <ns7:ReturnOptions PriceQuoteServiceVersion="3.2.0">
		<ns7:SubjectAreas>
			<ns7:SubjectArea>PRICE_QUOTE</ns7:SubjectArea>
		</ns7:SubjectAreas>
		<ns7:ViewName>Simple</ns7:ViewName>
		<ns7:ResponseFormat>STL</ns7:ResponseFormat> 
 </ns7:ReturnOptions>
</ns7:GetReservationRQ>

Sample Response

<stl19:GetReservationRS xmlns:stl19="http://webservices.sabre.com/pnrbuilder/v1_19" xmlns:ns6="http://services.sabre.com/res/orr/v0" xmlns:or114="http://services.sabre.com/res/or/v1_14" xmlns:raw="http://tds.sabre.com/itinerary" xmlns:ns4="http://webservices.sabre.com/pnrconn/ReaccSearch" Version="1.19.0">
	<stl19:Reservation numberInParty="2" numberOfInfants="0" NumberInSegment="2">
		<stl19:BookingDetails>
			<stl19:RecordLocator>IJKZUQ</stl19:RecordLocator>
			<stl19:CreationTimestamp>2018-07-05T06:39:00</stl19:CreationTimestamp>
			<stl19:SystemCreationTimestamp>2018-07-05T06:39:00</stl19:SystemCreationTimestamp>
			<stl19:CreationAgentID>MYE</stl19:CreationAgentID>
			<stl19:UpdateTimestamp>2018-07-20T02:01:36</stl19:UpdateTimestamp>
			<stl19:PNRSequence>6</stl19:PNRSequence>
			<stl19:DivideSplitDetails/>
			<stl19:EstimatedPurgeTimestamp>2018-08-30T00:00:00</stl19:EstimatedPurgeTimestamp>
			<stl19:UpdateToken>-12c37dd4c51e882df40aef3b324db514b62ddf6d93dd1c12</stl19:UpdateToken>
		</stl19:BookingDetails>
		<stl19:POS AirExtras="false" InhibitCode="U">
			<stl19:Source BookingSource="A0A0" AgentSine="MYE" PseudoCityCode="BKK" ISOCountry="TH" AgentDutyCode="5" AirlineVendorID="PG" HomePseudoCityCode="BKK"/>
		</stl19:POS>
		<stl19:PassengerReservation>
			<stl19:Passengers/>
			<stl19:Segments/>
			<stl19:TicketingInfo/>
			<stl19:ItineraryPricing/>
		</stl19:PassengerReservation>
		<stl19:ReceivedFrom/>
		<stl19:EmailAddresses/>
	</stl19:Reservation>
	<or114:PriceQuote>
		<PriceQuoteInfo xmlns="http://www.sabre.com/ns/Ticketing/pqs/1.0">
			<Reservation updateToken="eNc:::3qIVVfgBM9uZ0A7HUjkopQ==">IJKZUQ</Reservation>
			<Summary>
				<NameAssociation firstName="WAIVE" lastName="TWOPAX" nameId="1" nameNumber="1.1">
					<PriceQuote number="1" pricingType="S" status="I" type="PQ">
						<Indicators itineraryChange="true"/>
						<Passenger passengerTypeCount="1" requestedType="ADT" type="ADT"/>
						<ItineraryType>I</ItineraryType>
						<Fee code="T01" itemId="1" type="OB">
							<Amount currencyCode="THB" decimalPlace="0">140</Amount>
						</Fee>
						<ValidatingCarrier>PG</ValidatingCarrier>
						<Amounts>
							<Total currencyCode="THB">8890</Total>
						</Amounts>
						<LocalCreateDateTime>2018-07-05T18:35:00</LocalCreateDateTime>
					</PriceQuote>
				</NameAssociation>
				<NameAssociation firstName="CHARGE" lastName="TWOPAX" nameId="2" nameNumber="2.1">
					<PriceQuote number="2" pricingType="S" status="I" type="PQ">
						<Indicators itineraryChange="true"/>
						<Passenger passengerTypeCount="1" requestedType="ADT" type="ADT"/>
						<ItineraryType>I</ItineraryType>
						<Fee code="T01" itemId="1" type="OB">
							<Amount currencyCode="THB" decimalPlace="0">140</Amount>
							<Waiver>04</Waiver>
						</Fee>
						<ValidatingCarrier>PG</ValidatingCarrier>
						<Amounts>
							<Total currencyCode="THB">8890</Total>
						</Amounts>
						<LocalCreateDateTime>2018-07-05T18:35:00</LocalCreateDateTime>
					</PriceQuote>
				</NameAssociation>
			</Summary>
			<Details number="1" passengerType="ADT" pricingType="S" status="I" type="PQ">
				<AgentInfo duty="5" sine="MYE">
					<HomeLocation>BKK</HomeLocation>
					<WorkLocation>BKK</WorkLocation>
				</AgentInfo>
				<TransactionInfo>
					<CreateDateTime>2018-07-05T06:35:00</CreateDateTime>
					<LocalCreateDateTime>2018-07-05T18:35:00</LocalCreateDateTime>
					<ExpiryDateTime>2019-06-01T00:00:00</ExpiryDateTime>
					<InputEntry>WPN1.1</InputEntry>
				</TransactionInfo>
				<NameAssociationInfo firstName="WAIVE" lastName="TWOPAX" nameId="1" nameNumber="1.1"/>
				<SegmentInfo number="1" segmentStatus="OK">
					<Flight connectionIndicator="O">
						<MarketingFlight number="707">PG</MarketingFlight>
						<ClassOfService>Y</ClassOfService>
						<Departure>
							<DateTime>2018-08-30T13:45:00</DateTime>
							<CityCode name="BANGKOK SUVARNABH">BKK</CityCode>
						</Departure>
						<Arrival>
							<DateTime>2018-08-30T14:35:00</DateTime>
							<CityCode name="YANGON">RGN</CityCode>
						</Arrival>
					</Flight>
					<FareBasis>YOWW</FareBasis>
					<NotValidAfter>2019-08-30</NotValidAfter>
					<Baggage allowance="20" type="K"/>
				</SegmentInfo>
				<FareInfo>
					<FareIndicators/>
					<BaseFare currencyCode="THB">7030</BaseFare>
					<TotalTax currencyCode="THB">1860</TotalTax>
					<TotalFare currencyCode="THB">8890</TotalFare>
					<TaxInfo>
						<CombinedTax code="TS">
							<Amount currencyCode="THB">21811</Amount>
						</CombinedTax>
						<CombinedTax code="E7">
							<Amount currencyCode="THB">21811</Amount>
						</CombinedTax>
						<CombinedTax code="XT">
							<Amount currencyCode="THB">21811</Amount>
						</CombinedTax>
						<Tax code="TS">
							<Amount currencyCode="THB">700</Amount>
						</Tax>
						<Tax code="E7">
							<Amount currencyCode="THB">35</Amount>
						</Tax>
						<Tax code="G8">
							<Amount currencyCode="THB">15</Amount>
						</Tax>
						<Tax code="YQ">
							<Amount currencyCode="THB">1000</Amount>
						</Tax>
						<Tax code="C7">
							<Amount currencyCode="THB">110</Amount>
						</Tax>
					</TaxInfo>
					<FareCalculation>BKK PG RGN218.11NUC218.11END ROE32.231</FareCalculation>
					<FareComponent fareBasisCode="YOWW" number="1">
						<FlightSegmentNumbers>
							<SegmentNumber>1</SegmentNumber>
						</FlightSegmentNumbers>
						<FareDirectionality oneWay="true"/>
						<Departure>
							<DateTime>2018-08-30T13:45:00</DateTime>
							<CityCode name="BANGKOK SUVARNABH">BKK</CityCode>
						</Departure>
						<Arrival>
							<DateTime>2018-08-30T14:35:00</DateTime>
							<CityCode name="YANGON">RGN</CityCode>
						</Arrival>
						<Amount decimalPlace="2">218.11</Amount>
						<GoverningCarrier>PG</GoverningCarrier>
					</FareComponent>
				</FareInfo>
				<FeeInfo>
					<OBFee code="T01" type="OB">
						<Amount currencyCode="THB" decimalPlace="0">140</Amount>
						<Description>CARRIER TICKETING FEE01</Description>
					</OBFee>
				</FeeInfo>
				<MiscellaneousInfo>
					<ValidatingCarrier>PG</ValidatingCarrier>
					<ItineraryType>I</ItineraryType>
				</MiscellaneousInfo>
				<MessageInfo>
					<Message number="301" type="INFO">One or more form of payment fees may apply</Message>
					<Message number="302" type="INFO">Actual total will be based on form of payment used</Message>
					<Message number="201" type="WARNING">Fare not guaranteed until ticketed</Message>
					<Message type="WARNING">PRIVATE FARE APPLIED - CHECK RULES FOR CORRECT TICKETING</Message>
					<Message type="WARNING">VALIDATING CARRIER SPECIFIED - PG</Message>
					<Remarks type="ENS">REFUND AND CHANGE/RESTRICTED/NON ENDORSE</Remarks>
					<PricingParameters>WPN1.1</PricingParameters>
				</MessageInfo>
			</Details>
			<Details number="2" passengerType="ADT" pricingType="S" status="I" type="PQ">
				<AgentInfo duty="5" sine="MYE">
					<HomeLocation>BKK</HomeLocation>
					<WorkLocation>BKK</WorkLocation>
				</AgentInfo>
				<TransactionInfo>
					<CreateDateTime>2018-07-05T06:35:00</CreateDateTime>
					<LocalCreateDateTime>2018-07-05T18:35:00</LocalCreateDateTime>
					<ExpiryDateTime>2019-06-01T00:00:00</ExpiryDateTime>
					<InputEntry>WPN2.1</InputEntry>
				</TransactionInfo>
				<NameAssociationInfo firstName="CHARGE" lastName="TWOPAX" nameId="2" nameNumber="2.1"/>
				<SegmentInfo number="1" segmentStatus="OK">
					<Flight connectionIndicator="O">
						<MarketingFlight number="707">PG</MarketingFlight>
						<ClassOfService>Y</ClassOfService>
						<Departure>
							<DateTime>2018-08-30T13:45:00</DateTime>
							<CityCode name="BANGKOK SUVARNABH">BKK</CityCode>
						</Departure>
						<Arrival>
							<DateTime>2018-08-30T14:35:00</DateTime>
							<CityCode name="YANGON">RGN</CityCode>
						</Arrival>
					</Flight>
					<FareBasis>YOWW</FareBasis>
					<NotValidAfter>2019-08-30</NotValidAfter>
					<Baggage allowance="20" type="K"/>
				</SegmentInfo>
				<FareInfo>
					<FareIndicators/>
					<BaseFare currencyCode="THB">7030</BaseFare>
					<TotalTax currencyCode="THB">1860</TotalTax>
					<TotalFare currencyCode="THB">8890</TotalFare>
					<TaxInfo>
						<CombinedTax code="TS">
							<Amount currencyCode="THB">21811</Amount>
						</CombinedTax>
						<CombinedTax code="E7">
							<Amount currencyCode="THB">21811</Amount>
						</CombinedTax>
						<CombinedTax code="XT">
							<Amount currencyCode="THB">21811</Amount>
						</CombinedTax>
						<Tax code="TS">
							<Amount currencyCode="THB">700</Amount>
						</Tax>
						<Tax code="E7">
							<Amount currencyCode="THB">35</Amount>
						</Tax>
						<Tax code="G8">
							<Amount currencyCode="THB">15</Amount>
						</Tax>
						<Tax code="YQ">
							<Amount currencyCode="THB">1000</Amount>
						</Tax>
						<Tax code="C7">
							<Amount currencyCode="THB">110</Amount>
						</Tax>
					</TaxInfo>
					<FareCalculation>BKK PG RGN218.11NUC218.11END ROE32.231</FareCalculation>
					<FareComponent fareBasisCode="YOWW" number="1">
						<FlightSegmentNumbers>
							<SegmentNumber>1</SegmentNumber>
						</FlightSegmentNumbers>
						<FareDirectionality oneWay="true"/>
						<Departure>
							<DateTime>2018-08-30T13:45:00</DateTime>
							<CityCode name="BANGKOK SUVARNABH">BKK</CityCode>
						</Departure>
						<Arrival>
							<DateTime>2018-08-30T14:35:00</DateTime>
							<CityCode name="YANGON">RGN</CityCode>
						</Arrival>
						<Amount decimalPlace="2">218.11</Amount>
						<GoverningCarrier>PG</GoverningCarrier>
					</FareComponent>
				</FareInfo>
				<FeeInfo>
					<OBFee code="T01" type="OB">
						<Amount currencyCode="THB" decimalPlace="0">140</Amount>
						<Description>CARRIER TICKETING FEE01</Description>
					</OBFee>
				</FeeInfo>
				<MiscellaneousInfo>
					<ValidatingCarrier>PG</ValidatingCarrier>
					<ItineraryType>I</ItineraryType>
				</MiscellaneousInfo>
				<MessageInfo>
					<Message number="301" type="INFO">One or more form of payment fees may apply</Message>
					<Message number="302" type="INFO">Actual total will be based on form of payment used</Message>
					<Message number="201" type="WARNING">Fare not guaranteed until ticketed</Message>
					<Message type="WARNING">PRIVATE FARE APPLIED - CHECK RULES FOR CORRECT TICKETING</Message>
					<Message type="WARNING">VALIDATING CARRIER SPECIFIED - PG</Message>
					<Remarks type="ENS">REFUND AND CHANGE/RESTRICTED/NON ENDORSE</Remarks>
					<PricingParameters>WPN2.1</PricingParameters>
				</MessageInfo>
			</Details>
		</PriceQuoteInfo>
	</or114:PriceQuote>
</stl19:GetReservationRS>

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

Docs Navigation