Skip to main content

Get Structured Fare Rules

1.0.4
Air
Pricing
SOAP API

The Get Structured Fare Rules (StructureFareRulesRQ) service has functionally similar to Rule Text Generator service, but providing structured xml rule information rather than static text.

Target Audience
Travel Agency
Airline Carrier
Current Version
1.0.4
Authentication
Session Token
Service Action Code
StructureFareRulesRQ
Sample Request
<StructureFareRulesRQ Version="1.0.4" xmlns="http://webservices.sabre.com/sabreXML/2003/07" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<PriceRequestInformation BuyingDate="2016-06-14T05:19:00" CurrencyCode="USD">
		<PassengerTypes>
			<PassengerType Code="ADT" Count="01"/>
		</PassengerTypes>
		<ReturnAllData Value="1"/>
		<FreeBaggageSubscriber Ind="true"/>
	</PriceRequestInformation>
	<AirItinerary>
		<OriginDestinationOptions>
			<OriginDestinationOption>
				<FlightSegment DepartureDate="2016-09-20T12:00:00" ArrivalDate="2016-09-20T15:00:00" BookingDate="2016-05-14T05:19:00" FlightNumber="3" RealReservationStatus="SS" ResBookDesigCode="Y" SegmentNumber="01" SegmentType="A">
					<DepartureAirport LocationCode="JFK"/>
					<ArrivalAirport LocationCode="LAX"/>
					<MarketingAirline Code="AA"/>
					<OperatingAirline Code="AA"/>
				</FlightSegment>
				<SegmentInformation SegmentNumber="01"/>
				<PaxTypeInformation PassengerType="ADT" FareComponentNumber="1" FareBasisCode="FBC1" FareComponentAmount="100.0"/>
			</OriginDestinationOption>
			<OriginDestinationOption>
				<FlightSegment DepartureDate="2016-09-21T14:50:00" ArrivalDate="2016-09-21T22:45:00" BookingDate="2016-05-14T05:19:00" FlightNumber="252" RealReservationStatus="SS" ResBookDesigCode="Y" SegmentNumber="02" SegmentType="A">
					<DepartureAirport LocationCode="LAX"/>
					<ArrivalAirport LocationCode="MIA"/>
					<MarketingAirline Code="AA"/>
					<OperatingAirline Code="AA"/>
				</FlightSegment>
				<SegmentInformation SegmentNumber="02"/>
				<PaxTypeInformation PassengerType="ADT" FareComponentNumber="2" FareBasisCode="FBC2" FareComponentAmount="150.0"/>
			</OriginDestinationOption>
			<OriginDestinationOption>
				<FlightSegment DepartureDate="2016-09-22T13:15:00" ArrivalDate="2016-09-22T15:25:00" BookingDate="2016-05-14T05:19:00" FlightNumber="671" RealReservationStatus="SS" ResBookDesigCode="Y" SegmentNumber="03" SegmentType="A">
					<DepartureAirport LocationCode="MIA"/>
					<ArrivalAirport LocationCode="DFW"/>
					<MarketingAirline Code="AA"/>
					<OperatingAirline Code="AA"/>
				</FlightSegment>
				<SegmentInformation SegmentNumber="03"/>
				<PaxTypeInformation PassengerType="ADT" FareComponentNumber="2" FareBasisCode="FBC2" FareComponentAmount="150.0"/>
			</OriginDestinationOption>
		</OriginDestinationOptions>
	</AirItinerary>
</StructureFareRulesRQ>
Sample Response
<StructureFareRulesRS xmlns="http://webservices.sabre.com/sabreXML/2003/07" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="1.0.4">
	<Success/>
	<Summary>
		<Total CurrencyCode="USD" Price="3273.50"/>
		<PurchaseSummary AdvancePurchaseDate="2016-09-20" IATASalesCode="SITI"/>
		<ValidatingCarrier Code="AA"/>
		<PrivateFare Ind="false"/>
		<PassengerDetails>
			<PassengerDetail PassengerTypeCode="ADT">
				<Warnings>
					<Text>VALIDATING CARRIER - AA</Text>
				</Warnings>
				<PassengerFare>
					<BaseFare Amount="3273.50" CurrencyCode="USD"/>
					<Commission Amount="0.00" Percentage="0.00"/>
				</PassengerFare>
				<OptionNumber Value="1"/>
				<ExchangeRateOne Value="1.00000000000000" NumberOfDecimalPlaces="13"/>
				<Cat35 Ind="false"/>
				<PenaltiesInfo>
					<Penalty Type="Exchange" Changeable="true" Applicability="Before" Amount="0.0"/>
					<Penalty Type="Exchange" Changeable="true" Applicability="After" ConditionsApply="true" Amount="100.00" CurrencyCode="USD"/>
					<Penalty Type="Refund" Refundable="true" Applicability="Before" Amount="90.00" CurrencyCode="USD" Cat16Info="true"/>
					<Penalty Type="Refund" Refundable="false" Applicability="After" Cat16Info="true"/>
				</PenaltiesInfo>
				<FareComponentDataList>
					<FareComponentData PricingUnitNumber="1" FareComponentNumber="1">
						<AdvancedPurchaseData LastDateTimeToBook="2016-09-18T12:34:00" LastDateTimeToPurchase="2016-09-20T22:34:00"/>
						<MinimumStayData MinimumStayDateTime="2016-09-20T20:34:00" MinimumStayLocation="LAX"/>
						<MaximumStayData LastCommencementDateTime="2016-09-22T21:34:00" LastTravelEndDateTime="2016-09-30T21:34:00" RestrictedLocation="LAX"/>
					</FareComponentData>
				</FareComponentDataList>
				<PricingUnitDataList>
					<PricingUnitData PricingUnitNumber="1">
						<MinimumStayData MinimumStayDateTime="2016-09-20T20:34:00" MinimumStayLocation="MIA"/>
						<MaximumStayData LastCommencementDateTime="2016-01-22T21:34:00" LastTravelEndDateTime="2016-09-30T21:34:00" RestrictedLocation="MIA"/>
					</PricingUnitData>
				</PricingUnitDataList>
				<JourneyLevelDataList>
					<JourneyLevelData>
						<AdvancedPurchaseData LastDateTimeToBook="2016-09-18T12:34:00" LastDateTimeToPurchase="2016-09-20T22:34:00"/>
					</JourneyLevelData>
				</JourneyLevelDataList>
			</PassengerDetail>
		</PassengerDetails>
	</Summary>
</StructureFareRulesRS>