Auto Exchange and Refund

 

Please note that this service is restricted to SabreSonicRes-based airline customers.

API Information

Target Audience
Sabre Airline Solutions
Current Version
1.5.1
Authentication
Session Token
Service Action Code
AERRQ

The Automated Exchanges and Refunds ( AER) web service prices exchanges and refunds, prices itineraries based on varying degrees of manual pricing criteria, retains the pricing result and/or fulfills the exchange or refund. Additional related functions include irregular operations such as involuntary reroute, schedule change and no coupon situations. For a Sabre hosted carrier, these functions are based in whole or in part on the information stored in the Virtual Coupon Record ( VCR) electronic ticketing database, the manually provided ticket information (if no electronic record is available), the itinerary in the Agent Assembly Area ( AAA), the fares filed in the Sabre GDS, the historical fare information and related CAT31 rules as filed with Sabre, the tables configured in the Sabre GDS such as the options table and the form number table and any override parameters that are part of the XML request. AER relies on the binary security token obtained on a prior call to SessionCreateRQ.

The AER web service uses the AER package in TPF to complete AER transactions. Generally, a transaction is priced and retained and if the price satisfies the customer, the transaction is then fulfilled. Depending on whether an exchange is requested or a refund is requested and whether the result requires additional money to be collected or a refund to be issued, different documents are generated (eg electronic ticket, refund receipt, voucher, etc.). When issuing a ticket, AER updates the AAA with the TE line for electronic tickets. When retaining a price, AER updates the AAA with the price quote record. Exchange pricing and fulfillment requires the AAA to contain the new itinerary. This may be accomplished outside of the AER web service. Refunds and exchanges require a document to exchange. Electronic documents may be referred to by document number. Manual documents require data entered in the XML request. Manual pricing requests require a AAA with new itinerary data.

The response to pricing requests include the ticketing data (if exchanging or refunding) as well as the pricing result data including the comparison data. Messages that would have come from TPF AER are also included in the response. Fulfillment request responses include the new document number as well as the pricing data. Data in the XML is limited to what's provided in the TPF data transmission record. The XML contains most of the TPF data transmission record fields.

For Ticketing to provide support to a carrier when using Ticketing web services such as MISCServicesRQ and AERRQ, the carrier needs to provide access credentials almost identical to what the carrier will use to access the web service. The ID should be robotic, contain a non-expiring password, be able to issue tickets and be present in RES (production), CERT (certification) and TSTS (integration). Recommended, but not required: ID should be created inactive in RES; ID should be given duty code Cross of Lorraine.

The ID will be used in the automated regression test suite and will be used when researching questions and problems. Once Ticketing receives the ID, Ticketing will request allocation of a TAM pool and the associated ICE security attributes for accessing the web service.

Sample request

<AER_RQ version="1.5.1" xmlns="http://services.sabre.com/ticketing/aer/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <AERDetails>
        <Transaction Action="Exchange">
            <SubAction Retain="true">
                <BrandCode brandCarrier="AA">FL</BrandCode>
            </SubAction>
        </Transaction>
        <ExchDoc>
            <Number PlatingCarrier="795">2126247303</Number>
            <Type/>
        </ExchDoc>
    </AERDetails>
</AER_RQ>

Sample response

<AER_RS xmlns="http://services.sabre.com/ticketing/aer/1.0" timeStamp="2016-01-28T04:09:19" transactionIdentifier="TKTHLI702-1453975759710-44-aer" version="1.5.1">
    <AERDetails>
        <Transaction Action="Exchange" NonFlight="false">
            <Host Country="43" Currency="AUD" DecimalPlaces="2" />
            <AAA Currency="NZD" DecimalPlaces="2" />
            <Agent LNIATA="000000" />
            <SubAction Retain="true" />
        </Transaction>
        <ExchDoc AirlineVendorID="VA" CRS="VA">
            <Number CheckDigit="6" PlatingCarrier="795">2126245720</Number>
            <Type Database="true" Flight="true" Form="TKT" SubType="N" />
            <Point>
                <Issue Date="2016-01-13" Time="22:12:00">
                    <Location>
                        <LocationCode>WAG</LocationCode>
                        <CountryCode>NZ</CountryCode>
                    </Location>
                </Issue>
                <Sale>
                    <LocationCode>WAG</LocationCode>
                    <CountryCode>NZ</CountryCode>
                </Sale>
                <Ticket>
                    <LocationCode>WAG</LocationCode>
                    <CountryCode>NZ</CountryCode>
                </Ticket>
            </Point>
            <Passenger PassengerTypeCode="ADT">
                <PersonName>
                    <GivenName>JAN</GivenName>
                    <Surname>KOWALSKI</Surname>
                </PersonName>
            </Passenger>
            <Coupons Booklet="1" Flown="U" Transaction="X">
                <FlightSegment bookingCode="Y" status="1">
                    <FlightNumber>1</FlightNumber>
                    <OperatingFlightNumber>1</OperatingFlightNumber>
                    <MarketingAirline name="VIRGIN AUSTRALIA">VA</MarketingAirline>
                    <OperatingAirline name="VIRGIN AUSTRALIA">VA</OperatingAirline>
                    <Departure>
                        <Airport name="SYDNEY">SYD</Airport>
                        <DateTime>2016-03-14T10:40:00</DateTime>
                    </Departure>
                    <Arrival>
                        <Airport name="LOS ANGELES">LAX</Airport>
                        <Time>06:30:00</Time>
                    </Arrival>
                </FlightSegment>
                <FareInfo CalcCode="03" FareBasisCode="YLE0OVUR" FareComponent="1">
                    <Break Currency="NUC" Point="true" />
                    <NotValid After="2017-03-14" />
                    <Base Amount="151521" DecimalPlaces="2" />
                    <Rules Governed="VA" Number="A120" Tarrif="3" Vendor="ATP" />
                </FareInfo>
                <Class PNR="Y" TKT="OK" />
                <Baggage Amount="02" Type="P" />
            </Coupons>
            <Fare>
                <BaseFare CurrencyCode="AUD" DecimalPlaces="2" Rate="1.377358000" Raw="2087.00">2087.00</BaseFare>
                <NUC Amount="1515.21" DecimalPlaces="2" />
                <EquivFare CurrencyCode="NZD" DecimalPlaces="2" Raw="2227.00">2227.00</EquivFare>
                <TotalFare CurrencyCode="NZD" DecimalPlaces="2" Raw="2368.50">2368.50</TotalFare>
                <UnstructuredFareCalc>SYD VA LAX1515.21YLE0OVUR NUC1515.21END ROE1.377358</UnstructuredFareCalc>
                <NonRefundableFare CurrencyCode="AUD" DecimalPlaces="2" Raw="2087.00">2087.00</NonRefundableFare>
                <AERTaxes>
                    <Tax Amount="58.70" CurrencyCode="NZD" DecimalPlaces="2" Raw="58.70" TaxCode="AU" />
                    <Tax Amount="30.40" CurrencyCode="NZD" DecimalPlaces="2" Raw="30.40" TaxCode="WY" />
                    <Tax Amount="27.20" CurrencyCode="NZD" DecimalPlaces="2" Raw="27.20" TaxCode="US2" />
                    <Tax Amount="8.40" CurrencyCode="NZD" DecimalPlaces="2" Raw="8.40" TaxCode="YC" />
                    <Tax Amount="10.70" CurrencyCode="NZD" DecimalPlaces="2" Raw="10.70" TaxCode="XY" />
                    <Tax Amount="6.10" CurrencyCode="NZD" DecimalPlaces="2" Raw="6.10" TaxCode="XA" />
                    <Bucket1 Amount="58.70" DecimalPlaces="2" Raw="58.70" TaxCode="AU" />
                    <Bucket2 Amount="30.40" DecimalPlaces="2" Raw="30.40" TaxCode="WY" />
                    <Bucket3 Amount="52.40" DecimalPlaces="2" Raw="52.40" TaxCode="XT" />
                </AERTaxes>
                <Modifiers appliedDiscount="false" appliedTicketDesignator="false" />
            </Fare>
            <Pay>
                <Cash/>
                <PaymentAmount CurrencyCode="NZD" DecimalPlaces="2">2368.50</PaymentAmount>
            </Pay>
        </ExchDoc>
        <NewDoc OverrideValCarrier="VA" Purchase="2016-01-28">
            <Passenger CorporateID="false" PassengerTypeCode="ADT">
                <PersonName>
                    <GivenName>JAN</GivenName>
                    <Surname>KOWALSKI</Surname>
                </PersonName>
                <TravelerRefNumber surnameRefNumber="1">1.1</TravelerRefNumber>
            </Passenger>
            <Reissue>
                <LocationCode>WAG</LocationCode>
                <CountryCode>NZ</CountryCode>
            </Reissue>
            <PointOfSale>
                <LocationCode>WAG</LocationCode>
                <CountryCode>NZ</CountryCode>
            </PointOfSale>
            <PointOfTicket>
                <LocationCode>WAG</LocationCode>
                <CountryCode>NZ</CountryCode>
            </PointOfTicket>
            <Entitlement Booking="2016-01-28T04:09:00" Flown="U" StatusCode="SS">
                <FlightSegment bookingCode="Y" e_TicketEligibility="Eligible">
                    <FlightNumber>1</FlightNumber>
                    <OperatingFlightNumber>1</OperatingFlightNumber>
                    <MarketingAirline name="VIRGIN AUSTRALIA INTL">VA</MarketingAirline>
                    <OperatingAirline name="VIRGIN AUSTRALIA INTL">VA</OperatingAirline>
                    <Departure Connection="O" Currency="AUD" DecimalPlaces="2">
                        <Airport country="AU" name="SYDNEY">SYD</Airport>
                        <DateTime>2016-03-01T00:00:00</DateTime>
                    </Departure>
                    <Arrival Connection="O" Currency="USD" DecimalPlaces="2">
                        <Airport country="US" name="LOS ANGELES">LAX</Airport>
                        <DateTime>2016-03-01T00:00:00</DateTime>
                    </Arrival>
                    <PNR ID="2" Number="1" />
                </FlightSegment>
                <FareInfo FareBasisCode="YLE0OVUR" GlobalIndicatorCode="PA" SideTrip="0">
                    <Break Point="true" />
                    <Component Amount="151521" FareBasis="YLE0OVUR" GlobalDirection="PA" Index="1">
                        <Indicators OneWay="true" />
                        <MarketCharged City1="SYD" City2="LAX" />
                        <GoverningCXR Joint1="VA" />
                    </Component>
                    <NotValid After="2017-03-01" Before="2016-03-01" />
                    <Base Amount="151521" DecimalPlaces="2" />
                    <BrandCode brandCarrier="AA">FL</BrandCode>
                </FareInfo>
                <Class PNR="Y" />
                <Baggage Amount="02" Type="P" />
            </Entitlement>
            <Fare ExchPrice="true" ExchReissuePriceTypeDate="2016-01-28" ExchReissuePriceTypeTime="23:09:00" ReissuePrice="false" cat31or33="true">
                <BaseFare CurrencyCode="AUD" DecimalPlaces="2" Raw="2087.00" rateType="BSR">2087.00</BaseFare>
                <EquivFare CurrencyCode="NZD" DecimalPlaces="2" Raw="2227.00">2227.00</EquivFare>
                <Fees Usage="N">0</Fees>
                <TotalFare CurrencyCode="NZD" DecimalPlaces="2" Raw="2368.50">2368.50</TotalFare>
                <UnstructuredFareCalc Currency="NUC">SYD VA LAX1515.21YLE0OVUR NUC1515.21END ROE1.377358</UnstructuredFareCalc>
                <AERTaxes>
                    <Tax Amount="58.70" CurrencyCode="NZD" DecimalPlaces="2" Raw="58.70" TaxCode="AU" />
                    <Tax Amount="30.40" CurrencyCode="NZD" DecimalPlaces="2" Raw="30.40" TaxCode="WY" />
                    <Tax Amount="27.20" CurrencyCode="NZD" DecimalPlaces="2" Raw="27.20" TaxCode="US2" />
                    <Tax Amount="8.40" CurrencyCode="NZD" DecimalPlaces="2" Raw="8.40" TaxCode="YC" />
                    <Tax Amount="10.70" CurrencyCode="NZD" DecimalPlaces="2" Raw="10.70" TaxCode="XY" />
                    <Tax Amount="6.10" CurrencyCode="NZD" DecimalPlaces="2" Raw="6.10" TaxCode="XA" />
                    <Bucket1 Amount="58.70" DecimalPlaces="2" Raw="58.70" TaxCode="AU" />
                    <Bucket2 Amount="30.40" DecimalPlaces="2" Raw="30.40" TaxCode="WY" />
                    <Bucket3 Amount="52.40" DecimalPlaces="2" Raw="52.40" TaxCode="XT" />
                </AERTaxes>
                <Modifiers appliedDiscount="false" appliedTicketDesignator="false" />
            </Fare>
            <BaggageDisclosure>BAG ALLOWANCE -SYDLAX-02P/VA/EACH PIECE UP TO 50 POUNDS/23 KILOGRAMS AND UP TO 62 LINEAR INCHES/158 LINEAR CENTIMETERS CARRY ON ALLOWANCE SYDLAX-02P/VA 01/MUSICAL INSTRUMENTS 01/CARRYON HAND BAGGAGE 01/UP TO 15 POUNDS/7 KILOGRAMS AND UP TO 45 LINEAR INCHES/115 L INEAR CENTIMETERS ADDITIONAL ALLOWANCES AND/OR DISCOUNTS MAY APPLY DEPENDING ON FLYER-SPECIFIC FACTORS /E.G. FREQUENT FLYER STATUS/MILITARY/ CREDIT CARD FORM OF PAYMENT/EARLY PURCHASE OVER INTERNET,ETC./ </BaggageDisclosure>
        </NewDoc>
        <Comparison>
            <Summary CurrencyType="R" ticketUse="true">
                <Differences>
                    <Base Raw="0.00">0.00</Base>
                    <CurrencyFare CurrencyCode="NZD" DecimalPlaces="2" Raw="0.00">0.00</CurrencyFare>
                    <TotalTax CurrencyCode="NZD" DecimalPlaces="2" Raw="0.00">0.00</TotalTax>
                    <SubTotal CurrencyCode="NZD" DecimalPlaces="2" Raw="0.00">0.00</SubTotal>
                    <GrandTotal CurrencyCode="NZD" DecimalPlaces="2" Raw="0.00">0.00</GrandTotal>
                </Differences>
                <Fees>
                    <Fee CurrencyCode="NZD" DecimalPlaces="0" Raw="N/A" Usage="N">0</Fee>
                </Fees>
            </Summary>
        </Comparison>
        <Message Type="D">LAST DATE TO PURCHASE 26FEB16 - 1346</Message>
        <Message Type="D">TRANSACTION RETAINED</Message>
        <Message Type="S">AUD2087.00 NONREFUNDABLE</Message>
        <Message Type="S">NON ENDORSABLE</Message>
        <Message Type="W">VALIDATING CARRIER SPECIFIED - VA</Message>
    </AERDetails>
</AER_RS>

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

Docs Navigation