Skip Navigation

Using Cabin Code in FareComponent Versus FlightSegment

The following situation can occur in the AllBrandsPricing response for an offer (Summary element):

<FareComponent PricingUnitCount="1" PricingUnitType="O" GlobalDirection="AT" FareCalcDirectionality="FR" CommencementDate="2016-09-13" StopoverInd="false" CabinCode="C" BrandId="EF" BrandName="BUSINESS FLEXIBLE" ProgramCode="CFFAC" ProgramName="INTERNATIONAL" ProgramSystemCode="Q" ProgramID="85412">
        <FlightSegment SequenceNumber="01" RequiredBookingCode="J" RebookSameBookingCodeInd="false" GlobalDirection="AT" FareBreakPointInd="false" GeographyType="I" CabinCode="Y" EquipmentType="343">
        <FlightSegment SequenceNumber="02" RequiredBookingCode="J" RebookSameBookingCodeInd="false" GlobalDirection="WH" FareBreakPointInd="true" GeographyType="T" CabinCode="Y" EquipmentType="319">
  • In FlightSegment/CabinCode, the Air Pricing operation returns the requested cabin, even if the offered fare and RequiredBookingCode are in a different class.

  • The BrandId option belongs to the CabinCode attribute returned in the FareComponent.

  • Use the CabinCode="C" returned in FareComponent; this is the cabin from which the API offers a brand in the Summary element. It may be different than the requested cabin, as shown in the example above.