Skip to main content

Get Structured Fare Rules

1.2.0
Air
Pricing
SOAP API
Travel Agency
Airline Carrier

Not Signed In.

Looks like you may not have access to all of the resources and documentation for this page.
Please log-in or contact your support desk team if you believe you should have access.

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
API Version
1.2.0
Authentication
Session Token
Service Action Code
StructureFareRulesRQ
Sample Request
<StructureFareRulesRQ xmlns="http://webservices.sabre.com/sabreXML/2003/07" Version="1.2.0">
  <PriceRequestInformation>
    <PassengerTypes>
      <PassengerType Code="ADT" Count="1"/>
    </PassengerTypes>
    <PrivateFare Ind="false"/>
    <ReturnFareComponentPenalties Ind="true"/>
  </PriceRequestInformation>
  <AirItinerary>
    <OriginDestinationOptions>
      <OriginDestinationOption>
        <FlightSegment SegmentNumber="1" SegmentType="A" FlightNumber="458" DepartureDate="2022-10-19T06:00:00" ArrivalDate="2022-10-19T09:15:00" BookingDate="2022-09-09T07:21:00" ResBookDesigCode="K" RealReservationStatus="HK">
          <DepartureAirport LocationCode="LHR"/>
          <ArrivalAirport LocationCode="VIE"/>
          <MarketingAirline Code="OS"/>
          <OperatingAirline Code="OS"/>
        </FlightSegment>
        <SegmentInformation SegmentNumber="1"/>
        <PaxTypeInformation FareBasisCode="KHXU5LGT" PassengerType="ADT" FareComponentNumber="1"/>
      </OriginDestinationOption>
      <OriginDestinationOption>
        <FlightSegment SegmentNumber="2" SegmentType="A" FlightNumber="81" DepartureDate="2022-10-19T09:55:00" ArrivalDate="2022-10-19T13:25:00" BookingDate="2022-09-09T07:21:00" ResBookDesigCode="K" RealReservationStatus="HK">
          <DepartureAirport LocationCode="VIE"/>
          <ArrivalAirport LocationCode="LAX"/>
          <MarketingAirline Code="OS"/>
          <OperatingAirline Code="OS"/>
        </FlightSegment>
        <SegmentInformation SegmentNumber="2"/>
        <PaxTypeInformation FareBasisCode="KHXU5LGT" PassengerType="ADT" FareComponentNumber="1"/>
      </OriginDestinationOption>
      <OriginDestinationOption>
        <FlightSegment SegmentNumber="3" SegmentType="A" FlightNumber="5678" DepartureDate="2022-10-26T13:47:00" ArrivalDate="2022-10-26T15:15:00" BookingDate="2022-09-09T07:21:00" ResBookDesigCode="K" RealReservationStatus="HK">
          <DepartureAirport LocationCode="ONT"/>
          <ArrivalAirport LocationCode="SFO"/>
          <MarketingAirline Code="UA"/>
          <OperatingAirline Code="UA"/>
        </FlightSegment>
        <SegmentInformation SegmentNumber="3"/>
        <PaxTypeInformation FareBasisCode="KHXU5LGT" PassengerType="ADT" FareComponentNumber="2"/>
      </OriginDestinationOption>
      <OriginDestinationOption>
        <FlightSegment SegmentNumber="4" SegmentType="A" FlightNumber="948" DepartureDate="2022-10-26T16:10:00" ArrivalDate="2022-10-27T10:25:00" BookingDate="2022-09-09T07:21:00" ResBookDesigCode="K" RealReservationStatus="HK">
          <DepartureAirport LocationCode="SFO"/>
          <ArrivalAirport LocationCode="LHR"/>
          <MarketingAirline Code="UA"/>
          <OperatingAirline Code="UA"/>
        </FlightSegment>
        <SegmentInformation SegmentNumber="4"/>
        <PaxTypeInformation FareBasisCode="KHXU5LGT" PassengerType="ADT" FareComponentNumber="2"/>
      </OriginDestinationOption>
    </OriginDestinationOptions>
  </AirItinerary>
</StructureFareRulesRQ>
Sample Response
<StructureFareRulesRS xmlns="http://webservices.sabre.com/sabreXML/2003/07" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" Version="1.2.0">
    <Success/>
    <Summary>
        <Total Price="381.00" CurrencyCode="GBP"/>
        <PurchaseSummary IATASalesCode="SOTO" SalesLocation="MSP" SimultaneousResInd="false"/>
        <ValidatingCarrier Code="OS"/>
        <PrivateFare Ind="false"/>
        <Ancillaries NotGuaranteedInd="true"/>
        <PassengerDetails>
            <PassengerDetail PassengerTypeCode="ADT">
                <Endorsements>
                    <Text>NRF-BE/NOCHGDAFTDPT/NOASR</Text>
                    <Text>FARE RESTRICTION MAY APPLY</Text>
                </Endorsements>
                <Warnings>
                    <Text>VALIDATING CARRIER - OS</Text>
                </Warnings>
                <PassengerFare>
                    <BaseFare CurrencyCode="GBP" Amount="381.00"/>
                    <EquivalentFare CurrencyCode="USD" Amount="438.00"/>
                    <Commission Percentage="0.00" Amount="0.00"/>
                </PassengerFare>
                <TicketFareVendor Source="ATPC"/>
                <OptionNumber Value="1"/>
                <ExchangeRateOne Value="0.82587700" NumberOfDecimalPlaces="8"/>
                <Cat35 Ind="false"/>
                <PenaltiesInfo>
                    <Penalty Type="Exchange" Applicability="Before" ConditionsApply="true" Changeable="true" Amount="173.00" CurrencyCode="USD">
                        <NoShowPenalty Changeable="false"/>
                    </Penalty>
                    <Penalty Type="Exchange" Applicability="After" ConditionsApply="true" Changeable="true" Amount="173.00" CurrencyCode="USD">
                        <NoShowPenalty Changeable="false"/>
                        <FareComponent FareBasisCode="KHXU5LGT" Changeable="false"/>
                    </Penalty>
                    <Penalty Type="Refund" Applicability="Before" Refundable="false">
                        <NoShowPenalty Refundable="false"/>
                    </Penalty>
                    <Penalty Type="Refund" Applicability="After" Refundable="false">
                        <NoShowPenalty Refundable="false"/>
                    </Penalty>
                    <Taxes>
                        <Tax Applicability="Before" Code="YQI" Refundable="true" FeeApplicationInd="Sector" Amount="140.30" CurrencyCode="USD" BoardPoint="VIE" OffPoint="LAX"/>
                        <Tax Applicability="Before" Code="YRI" Refundable="true" FeeApplicationInd="Journey" Amount="19.00" CurrencyCode="USD" BoardPoint="LHR" OffPoint="VIE"/>
                        <Tax Applicability="Before" Code="YQI" Refundable="true" FeeApplicationInd="Sector" Amount="138.00" CurrencyCode="USD" BoardPoint="SFO" OffPoint="LHR"/>
                        <Tax Applicability="After" Code="YQI" Refundable="true" FeeApplicationInd="Sector" Amount="140.30" CurrencyCode="USD" BoardPoint="VIE" OffPoint="LAX"/>
                        <Tax Applicability="After" Code="YRI" Refundable="true" FeeApplicationInd="Journey" Amount="19.00" CurrencyCode="USD" BoardPoint="LHR" OffPoint="VIE"/>
                        <Tax Applicability="After" Code="YQI" Refundable="true" FeeApplicationInd="Sector" Amount="138.00" CurrencyCode="USD" BoardPoint="SFO" OffPoint="LHR"/>
                    </Taxes>
                </PenaltiesInfo>
                <FareComponentDataList>
                    <FareComponentData FareComponentNumber="1" PricingUnitNumber="1">
                        <PenaltiesInfo>
                            <Penalty Type="Exchange" Applicability="Before" ConditionsApply="true" Changeable="true" Amount="173.00" CurrencyCode="USD">
                                <NoShowPenalty Changeable="false"/>
                            </Penalty>
                            <Penalty Type="Exchange" Applicability="After" Changeable="true" Amount="173.00" CurrencyCode="USD">
                                <NoShowPenalty Changeable="false"/>
                            </Penalty>
                            <Penalty Type="Refund" Applicability="Before" Refundable="false">
                                <NoShowPenalty Refundable="false"/>
                            </Penalty>
                            <Penalty Type="Refund" Applicability="After" Refundable="false">
                                <NoShowPenalty Refundable="false"/>
                            </Penalty>
                        </PenaltiesInfo>
                        <MinimumStayData MinimumStayDateTime="2022-10-23T00:00:00" MinimumStayLocation="ONT"/>
                        <MaximumStayData LastCommencementDateTime="2023-10-19T23:59:00" RestrictedLocation="ONT"/>
                    </FareComponentData>
                    <FareComponentData FareComponentNumber="2" PricingUnitNumber="1">
                        <PenaltiesInfo>
                            <Penalty Type="Exchange" Applicability="Before" ConditionsApply="true" Changeable="true" Amount="173.00" CurrencyCode="USD">
                                <NoShowPenalty Changeable="false"/>
                            </Penalty>
                            <Penalty Type="Exchange" Applicability="After" Changeable="false">
                                <NoShowPenalty Changeable="false"/>
                            </Penalty>
                            <Penalty Type="Refund" Applicability="Before" Refundable="false">
                                <NoShowPenalty Refundable="false"/>
                            </Penalty>
                            <Penalty Type="Refund" Applicability="After" Refundable="false">
                                <NoShowPenalty Refundable="false"/>
                            </Penalty>
                        </PenaltiesInfo>
                        <MinimumStayData MinimumStayDateTime="2022-10-23T00:00:00" MinimumStayLocation="ONT"/>
                        <MaximumStayData LastCommencementDateTime="2023-10-19T23:59:00" RestrictedLocation="ONT"/>
                    </FareComponentData>
                </FareComponentDataList>
                <PricingUnitDataList>
                    <PricingUnitData PricingUnitNumber="1">
                        <MinimumStayData MinimumStayDateTime="2022-10-23T00:00:00" MinimumStayLocation="ONT"/>
                        <MaximumStayData LastCommencementDateTime="2023-10-19T23:59:00" RestrictedLocation="ONT"/>
                    </PricingUnitData>
                </PricingUnitDataList>
            </PassengerDetail>
        </PassengerDetails>
    </Summary>
</StructureFareRulesRS>