FX-Port API
FlightsFlight Search

Passenger and cabin examples

Family groups, lap/seated infants, adult-senior-young mixes, and cabin-class searches.

See Flight passengers & ages for full validation rules. Search counts and age arrays must match the passenger objects submitted later to book_flight.

Family: adults, child, lap infant

{
  "origin": "ALG",
  "destination": "CDG",
  "departure_date": "2026-09-15",
  "return_date": "2026-09-22",
  "cabin_class": "economy",
  "passengers": {
    "adults": 2,
    "children": 1,
    "child_ages": [8],
    "infants": 1,
    "infant_ages": [1]
  }
}

Complete mix with seated infant

The public payload is supplier-neutral. Passenger limits can differ by supplier, so automatic and multi-supplier searches silently skip incompatible suppliers and keep any compatible results. This example includes two adults and is compatible with suppliers that require one adult/senior host per under-2 passenger. A traveler who is truly age 2 is a regular child and does not use an infant host.

{
  "origin": "ALG",
  "destination": "CDG",
  "departure_date": "2026-09-15",
  "cabin_class": "economy",
  "passengers": {
    "adults": 2,
    "seniors": 0,
    "young_adults": 0,
    "children": 2,
    "child_ages": [10, 6],
    "infants": 1,
    "infant_ages": [1],
    "seated_infants": 1,
    "seated_infant_ages": [1]
  },
  "supplier_ids": ["amadeus_aqc_dz_1", "duffel_1"]
}

Supplier-specific fallback: one adult with two infant types

This payload is valid at the FX-Port API level. Do not force a supplier: FX-Port calls compatible suppliers, silently skips incompatible ones, and returns available results without a warning. If the route has no compatible supplier, the API returns SUPPLIER_PASSENGER_COMBINATION_UNSUPPORTED.

{
  "origin": "ALG",
  "destination": "CDG",
  "departure_date": "2026-09-29",
  "cabin_class": "economy",
  "passengers": {
    "adults": 1,
    "seated_infants": 1,
    "seated_infant_ages": [0],
    "infants": 1,
    "infant_ages": [0]
  },
  "flexible": true
}

The same traveler who is already age 2 belongs in children, not seated_infants. Children aged 2–11 do not use an infant-host slot.

Adult, senior, and young adult

{
  "origin": "ALG",
  "destination": "CDG",
  "departure_date": "2026-09-15",
  "cabin_class": "economy",
  "passengers": {
    "adults": 1,
    "seniors": 1,
    "young_adults": 1,
    "young_adult_ages": [16]
  },
  "supplier_id": "duffel_1"
}

FX-Port preserves requested logical categories in unified responses even when a supplier prices a senior or young adult as an adult internally.

Cabin classes

{
  "origin": "DXB",
  "destination": "BOM",
  "departure_date": "2026-09-15",
  "cabin_class": "business",
  "passengers": { "adults": 1 }
}

On this page