Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Overview

The flight related Criteria object will be found in AirShoppingRQ and OrderReshopRQ and is used to advise the airline of passenger preferences which may change the offers being presented.

Flight Related Criteria

Alliance Criteria

Used to signify required, excluded, or preferred Alliances from which the seller would like Offers for.

<cns:AllianceCriteria>
	<cns:Alliance>
		<cns:AllianceCode>700</cns:AllianceCode>
	</cns:Alliance>
	<cns:PrefLevel>
		<cns:PrefLevelCode>Required</cns:PrefLevelCode>
	</cns:PrefLevel>
</cns:AllianceCriteria>
<cns:AllianceCriteria>
	<cns:Alliance>
		<cns:AllianceCode>701</cns:AllianceCode>
	</cns:Alliance>
	<cns:PrefLevel>
		<cns:PrefLevelCode>Preferred</cns:PrefLevelCode>
	</cns:PrefLevel>
</cns:AllianceCriteria>

Carrier Criteria

Used to indicate preference to the airline of whether to include, prefer or exclude carriers in the returned Offers. Below example advises the airline that the Seller would like XB airlines evaluated for offers in the response.

<cns:CarrierCriteria>
	<cns:Carrier>
		<cns:AirlineDesigCode>XB</cns:AirlineDesigCode>
	</cns:Carrier>
	<cns:PrefLevel>
		<cns:PrefLevelCode>Required</cns:PrefLevelCode>
	</cns:PrefLevel>
</cns:CarrierCriteria>

Connection Criteria

Used in a slightly different way to the normal criterion, this Criteria stores connection preferences which is created by the Seller and linked (via the ConnectionCriteriaID) to the current search query to advise the airline of preferred required or excluded connections in an Origin and Destination pair.

Note the seller can define multiple connection options criteria. For example, return offers that have a max of 2 stops through GVA with a MaxCT of 2 hours, or return me offers that have a max of 0 stops.

Note the Connection Criteria is linked through the OriginDestinationCriteriaType.

Defining the Min and Max Connection time

<cns:ConnectionCriteria>
	<cns:ConnectionCriteriaID>1</cns:ConnectionCriteriaID>
	<cns:MaximumConnectionDuration>P1Y2M2DT10H30M</cns:MaximumConnectionDuration>
	<cns:MinimumConnectionDuration>P1Y2M2DT10H30M</cns:MinimumConnectionDuration>
</cns:ConnectionCriteria>

Defining the maximum number of Stops during the Journey

<cns:ConnectionCriteria>
	<cns:ConnectionCriteriaID>2</cns:ConnectionCriteriaID>
	<cns:MaximumConnectionQty>3</cns:MaximumConnectionQty>
</cns:ConnectionCriteria>

Defining which airports should be the Connecting Points

<cns:ConnectionCriteria>
	<cns:ConnectionCriteriaID>3</cns:ConnectionCriteriaID>
	<cns:StationCriteria>
		<cns:PrefLevel>
			<cns:PrefLevelCode>Preferred</cns:PrefLevelCode>
		</cns:PrefLevel>
		<cns:Station>
			<cns:IATA_LocationCode>GVA</cns:IATA_LocationCode>
		</cns:Station>
	</cns:StationCriteria>
</cns:ConnectionCriteria>

Flight Criteria

The Flight Criterion can further advise the airline which Flight Characteristics, Aircraft or RBD the passenger has a preference to see offers for.

Defining the type of flight

<cns:FlightCriteria>
	<cns:FlightCharacteristicsCriteria>
		<cns:CharacteristicCode>AirportChange</cns:CharacteristicCode>
		<cns:PrefLevel>
			<cns:PrefLevelCode>Exclude</cns:PrefLevelCode>
		</cns:PrefLevel>
	</cns:FlightCharacteristicsCriteria>
</cns:FlightCriteria>

Defining Aircraft Preferences

<cns:FlightCriteria>
	<cns:IATA_AircraftType>
		<cns:IATA_AircraftTypeCode>74</cns:IATA_AircraftTypeCode>
	</cns:IATA_AircraftType>
	<cns:PrefLevel>
		<cns:PrefLevelCode>Required</cns:PrefLevelCode>
	</cns:PrefLevel>
</cns:FlightCriteria>

Defining specific RBDs

<cns:FlightCriteria>
	<cns:RBD>
		<cns:RBD_Code>J</cns:RBD_Code>
	</cns:RBD>
	<cns:RBD>
		<cns:RBD_Code>F</cns:RBD_Code>
	</cns:RBD>
	<cns:PrefLevel>
		<cns:PrefLevelCode>Exclude</cns:PrefLevelCode>
	</cns:PrefLevel>
</cns:FlightCriteria>

Offer Item Type Criteria

Used bilaterally as a way to filter certain categories of Offer return by the Airline. For example, if the airline has Retail, Wholesale and Corporate offers, which are ‘tagged’ as such, the Seller can advise the airline which of these they would like to be returned in the Offer Response.

See the OfferItemType element at the OfferItem level which corresponds to this element.

<cns:OfferItemTypeCriteria>
	<cns:OfferItemTypeCode>Wholesale</cns:OfferItemTypeCode>
</cns:OfferItemTypeCriteria>

Segment Duration Criteria

Used to describe the maximum time for each segment that passenger would like to fly. This would advise the airline to either return longer flights, or break the itinerary up into shorter flights (possibly with more connections).

<cns:SegmentDurationCriteria>
	<cns:MaximumTimeMeasure UnitCode="H">4</cns:MaximumTimeMeasure>
	<cns:PrefCode>Exclude</cns:PrefCode>
</cns:SegmentDurationCriteria>

Trip Purpose Code

Do not use this item in Flight Related Criteria, instead, use the TripPurposeCode in The Offer or Order Criteria.

  • No labels