FX-Port API
FlightsFlight Search

Filter examples

Direct flights, refundable fares, checked bags, price caps, market hints, airline include/exclude/preference, and flexible dates.

All filters are optional and can be combined when their semantics do not conflict.

Filter reference

FieldTypeMeaning
direct / nonstopbooleanNon-stop offers only
refundablebooleanRefundable fares only when supported
checked_bagsbooleanOffers including checked baggage
max_pricenumberMaximum total in the agency currency
included_airlinesstring[]Strict allow-list of IATA carrier codes
excluded_airlinesstring[]Strict block-list of IATA carrier codes
preferred_airlinesstring[]Ranking preference; does not strictly exclude others
from_ccstringOrigin market country code
to_ccstringDestination market country code
flexiblebooleanRequest flexible-date matrix from capable suppliers while keeping regular offers

Do not send included_airlines and excluded_airlines together for the same search. Choose a whitelist or a blacklist. Amadeus rejects supplier requests that contain both.

Refundable only

{
  "origin": "ALG",
  "destination": "CDG",
  "departure_date": "2026-09-15",
  "cabin_class": "economy",
  "passengers": { "adults": 1 },
  "refundable": true
}

Checked baggage only

{
  "origin": "ALG",
  "destination": "CDG",
  "departure_date": "2026-09-15",
  "return_date": "2026-09-22",
  "cabin_class": "economy",
  "passengers": { "adults": 1 },
  "checked_bags": true
}

Price cap, market hints, preferred airlines

max_price uses the agency currency. from_cc/to_cc help select the most suitable supplier offices. preferred_airlines influences ranking without acting as a strict whitelist.

{
  "origin": "ALG",
  "destination": "CDG",
  "departure_date": "2026-09-15",
  "cabin_class": "economy",
  "passengers": { "adults": 1 },
  "max_price": 50000,
  "from_cc": "DZ",
  "to_cc": "FR",
  "preferred_airlines": ["AF", "AH"]
}

Include airlines (strict allow-list)

{
  "origin": "ALG",
  "destination": "CDG",
  "departure_date": "2026-09-15",
  "cabin_class": "economy",
  "passengers": { "adults": 1 },
  "included_airlines": ["AF", "AH"]
}

For Amadeus, FX-Port sends a native include filter. Duffel's offer request does not expose a native carrier include field, so FX-Port filters returned offers while preserving the unified response.

Exclude airlines (strict block-list)

{
  "origin": "ALG",
  "destination": "CDG",
  "departure_date": "2026-09-15",
  "cabin_class": "economy",
  "passengers": { "adults": 1 },
  "excluded_airlines": ["TK"]
}

Flexible dates across all suppliers

{
  "origin": "ALG",
  "destination": "CDG",
  "departure_date": "2026-09-15",
  "return_date": "2026-09-22",
  "cabin_class": "economy",
  "passengers": { "adults": 1 },
  "flexible": true
}

All compatible suppliers may return regular offers; only suppliers with flexible-date support add a flexPrices matrix. Always check for matrix presence. Use the dedicated flexible_search endpoint when you want only flexible-capable suppliers.

On this page