Air Pricing by Booking Class

Air Pricing by Booking Class retrieves a price quote for an air itinerary based on the requested class of service, taking into consideration all appropriate fare rules and fare construction principles. The fare quote/price response retrieves only fares that match the booking classes specified in the request. Available classes of service can vary by supplier and individual flight segment. Requesting an air pricing by using booking codes is referred to as Price as Booked.

Booking class modifiers are supported only at the segment level for Air Pricing. A Booking Class modifier does exist at the itinerary level (AirPricingModifiers/PermittedBookingCodes and AirPricingModifiers/PermittedBookingCodes). However, these modifiers are supported only for Air Availability and Low Fare Shopping searches, and do not apply to Air Pricing transactions.

Request

The PermittedBookingCodes attribute of AirPriceReq/AirPricingCommand/AirSegmentPricingModifiers supports requests related to Booking Class.

For each air segment, the ClassOfService must be specified in PermittedBookingCodes/BookingCode, and each air segment is tied to the permitted booking code by AirSegmentRef.

If any BookingCode element is present in the first AirPricingCommand/AirSegmentPricingModifiers/PermittedBookingCodes in the Air Price request, Universal API quotes the requested booking class only. Inclusion of the Booking Code in the request supersedes any other modifiers; any other pricing modifiers in the request are ignored.

If multiple AirPriceReq/AirPricingCommand elements are specified, only the first class of service is considered; any additional booking classes are ignored. Processing multiple AirPricingCommands is not yet implemented.

Forced Fares

If a fare is forced, the Booking Class is used in conjunction with the Fare Basis Code. See Air Pricing with Fare Basis Codes for more details.

Response

In the response, the booking code is indicated in the BookingCode attribute of AirPriceRsp/AirPriceResult/AirPricingSolution/AirPricingInfo/BookingInfo.

Errors

Exceptions

ACH

ACH suppliers do not support modifiers for permitted or prohibited booking codes.