---
title: "DiscoverFlights"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.nicer.travel/llms.txt
> Use this file to discover all available pages before exploring further.

# DiscoverFlights

Path: Nicer API › Booking

`GET /booking/flights`

URL: `https://api.nicer.travel/booking/flights`

JSON is the default; Accept: text/event-stream or format=stream requests SSE.

## Authentication

Requires one of the following:

- `companyHeader`, apiKey, in header, header `x-nicer-company`
- `discoveryBearer`, http bearer, header `Authorization`, format `JWT`

## Query parameters

- `from` (`booking.flights.list.query.from`; string, optional)
  - pattern: `^[A-Z]{3}$`
- `to` (`booking.flights.list.query.to`; string, optional)
  - pattern: `^[A-Z]{3}$`
- `departure` (`booking.flights.list.query.departure`; string, optional)
  - format: `date` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$`
- `return` (`booking.flights.list.query.return`; string, optional)
  - format: `date` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$`
- `legs` (`booking.flights.list.query.legs`; string, optional)
  - maxLength: `137` · pattern: `^[A-Z]{3}-[A-Z]{3}-\d{4}-\d{2}-\d{2}(?:,[A-Z]{3}-[A-Z]{3}-\d{4}-\d{2}-\d{2}){1,5}$`
- `adults` (`booking.flights.list.query.adults`; integer, optional)
  - maximum: `9` · minimum: `1` · default: `1`
- `children` (`booking.flights.list.query.children`; integer, optional)
  - maximum: `8` · minimum: `0` · default: `0`
- `infants` (`booking.flights.list.query.infants`; integer, optional)
  - maximum: `8` · minimum: `0` · default: `0`
- `cabin` (`booking.flights.list.query.cabin`; string, optional)
  - one of `"economy"`, `"premium-economy"`, `"business"`, `"first"` · default: `"economy"`
- `cabins` (`booking.flights.list.query.cabins`; string, optional)
  - maxLength: `100` · pattern: `^(?:economy|premium-economy|business|first)(?:,(?:economy|premium-economy|business|first)){0,5}$`
- `currency` (`booking.flights.list.query.currency`; string, optional)
  - pattern: `^[A-Z]{3}$` · default: `"USD"`
- `airlines` (`booking.flights.list.query.airlines`; string, optional)
  - maxLength: `89` · pattern: `^[A-Z0-9]{2,3}(?:,[A-Z0-9]{2,3}){0,29}$`
- `stops` (`booking.flights.list.query.stops`; string, optional)
  - pattern: `^[0-2](?:,[0-2]){0,2}$`
- `via` (`booking.flights.list.query.via`; string, optional)
  - maxLength: `119` · pattern: `^[A-Z]{3}(?:,[A-Z]{3}){0,29}$`
- `excludeAirportChanges` (`booking.flights.list.query.excludeAirportChanges`; string, optional)
  - one of `"true"`, `"false"`
- `maxConnections` (`booking.flights.list.query.maxConnections`; integer, optional)
  - maximum: `5` · minimum: `0`
- `minPrice` (`booking.flights.list.query.minPrice`; integer, optional)
  - maximum: `9007199254740991` · minimum: `0`
- `maxPrice` (`booking.flights.list.query.maxPrice`; integer, optional)
  - maximum: `9007199254740991` · minimum: `1`
- `maxDuration` (`booking.flights.list.query.maxDuration`; integer, optional)
  - maximum: `10080` · minimum: `1`
- `bags` (`booking.flights.list.query.bags`; string, optional)
  - one of `"true"`, `"false"`
- `refundable` (`booking.flights.list.query.refundable`; string, optional)
  - one of `"true"`, `"false"`
- `commissionable` (`booking.flights.list.query.commissionable`; string, optional)
  - one of `"true"`, `"false"`
- `sameCabin` (`booking.flights.list.query.sameCabin`; string, optional)
  - one of `"true"`, `"false"`
- `changeable` (`booking.flights.list.query.changeable`; string, optional)
  - one of `"true"`, `"false"`
- `maxLayover` (`booking.flights.list.query.maxLayover`; integer, optional)
  - maximum: `2880` · minimum: `1`
- `departureTime` (`booking.flights.list.query.departureTime`; string, optional)
  - maxLength: `120`
- `arrivalTime` (`booking.flights.list.query.arrivalTime`; string, optional)
  - maxLength: `120`
- `sort` (`booking.flights.list.query.sort`; string, optional) — How results are listed: best match, price (or -price), shortest duration, earliest (or latest, with -) departure or arrival, or fewest stops. best weighs 10% over the lowest price like 20% over the shortest duration or one more stop.
  - one of `"best"`, `"price"`, `"-price"`, `"duration"`, `"departure"`, `"-departure"`, `"arrival"`, `"-arrival"`, `"stops"` · default: `"price"` · example: `"best"`
- `page` (`booking.flights.list.query.page`; integer, optional)
  - maximum: `10000` · minimum: `1` · default: `1`
- `size` (`booking.flights.list.query.size`; integer, optional)
  - maximum: `100` · minimum: `1` · default: `20`
- `group` (`booking.flights.list.query.group`; string, optional)
  - one of `"slice"`
- `slices` (`booking.flights.list.query.slices`; string, optional)
  - maxLength: `400` · pattern: `^slc_[A-Za-z0-9]+(?:,slc_[A-Za-z0-9]+){0,5}$`
- `chosenFrom` (`booking.flights.list.query.chosenFrom`; string, optional)
  - maxLength: `96` · pattern: `^flt_[A-Za-z0-9_-]+_\d+$`

## Header parameters

- `x-nicer-company` (`booking.flights.list.header.x-nicer-company`; string, optional) — Required when the optional Authorization token does not identify one company. Public context only; no company-registration lookup.
- `Accept` (`booking.flights.list.header.Accept`; string, optional)
  - one of `"application/json"`, `"text/event-stream"`

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
});

await nicer.booking.flights.list();
```

### Nicer CLI

```bash
nicer booking flights list
```

### cURL

```bash
curl --request GET \
  --url https://api.nicer.travel/booking/flights \
  --header 'x-nicer-company: <x-nicer-company>'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/booking/flights';
const options = {
  method: 'GET',
  headers: {'x-nicer-company': '<x-nicer-company>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/booking/flights"

headers = {"x-nicer-company": "<x-nicer-company>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

JSON snapshot or SSE frames (the schema describes each frame's JSON data).

#### Body (application/json)

- `items` (`booking.flights.list.response.200.items`; array of object, required)
  - `expiresAt` (`booking.flights.list.response.200.items.expiresAt`; string, required)
    - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`
  - `offerReference` (`booking.flights.list.response.200.items.offerReference`; string, required)
    - minLength: `1`
  - `price` (`booking.flights.list.response.200.items.price`; object, required)
    - `breakdown` (`booking.flights.list.response.200.items.price.breakdown`; object, required)
      - `baseMinor` (`booking.flights.list.response.200.items.price.breakdown.baseMinor`; any of, required)
        - any of the following: `integer`, `null`
      - `discountMinor` (`booking.flights.list.response.200.items.price.breakdown.discountMinor`; integer, required)
        - maximum: `9007199254740991` · minimum: `0`
      - `nicerAdjustmentMinor` (`booking.flights.list.response.200.items.price.breakdown.nicerAdjustmentMinor`; integer, required)
        - maximum: `9007199254740991` · minimum: `0`
      - `supplierFeesMinor` (`booking.flights.list.response.200.items.price.breakdown.supplierFeesMinor`; any of, required)
        - any of the following: `integer`, `null`
      - `taxesMinor` (`booking.flights.list.response.200.items.price.breakdown.taxesMinor`; any of, required)
        - any of the following: `integer`, `null`
    - `currency` (`booking.flights.list.response.200.items.price.currency`; string, required)
      - pattern: `^[A-Z]{3}$`
    - `totalMinor` (`booking.flights.list.response.200.items.price.totalMinor`; integer, required)
      - maximum: `9007199254740991` · minimum: `0`
    - `passengers` (`booking.flights.list.response.200.items.price.passengers`; array of object, required)
      - `count` (`booking.flights.list.response.200.items.price.passengers.count`; integer, required)
        - maximum: `9007199254740991`
      - `passengerType` (`booking.flights.list.response.200.items.price.passengers.passengerType`; string, required)
        - one of `"ADULT"`, `"CHILD"`, `"INFANT"`
      - `totalMinor` (`booking.flights.list.response.200.items.price.passengers.totalMinor`; any of, required)
        - any of the following: `integer`, `null`
  - `productKind` (`booking.flights.list.response.200.items.productKind`; string, required)
  - `providerKey` (`booking.flights.list.response.200.items.providerKey`; string, required)
  - `cabin` (`booking.flights.list.response.200.items.cabin`; string, required)
    - one of `"BUSINESS"`, `"ECONOMY"`, `"FIRST"`, `"PREMIUM_ECONOMY"`
  - `optionalDocumentTypes` (`booking.flights.list.response.200.items.optionalDocumentTypes`; array of string, required)
    - one of `"PASSPORT"`, `"NATIONAL_ID"`, `"ALIEN_RESIDENT"`, `"VISA"`, `"KNOWN_TRAVELER_NUMBER"`, `"REDRESS_NUMBER"`
  - `owner` (`booking.flights.list.response.200.items.owner`; object, required)
    - `code` (`booking.flights.list.response.200.items.owner.code`; string, required)
      - pattern: `^[A-Z0-9]{2,3}$`
    - `logoAssetReference` (`booking.flights.list.response.200.items.owner.logoAssetReference`; any of, required)
      - any of the following: `string`, `null`
    - `name` (`booking.flights.list.response.200.items.owner.name`; string, required)
      - minLength: `1`
  - `passengers` (`booking.flights.list.response.200.items.passengers`; array\<one of\>, required)
    - every option has:
      - `type` (`<option>.type`; string, required)
    - one of the following, each adding:
      - `object` (`booking.flights.list.response.200.items.passengers.1`)
        - `count` (`booking.flights.list.response.200.items.passengers.1.count`; integer, required)
          - maximum: `9` · minimum: `1`
      - `object` (`booking.flights.list.response.200.items.passengers.2`)
        - `count` (`booking.flights.list.response.200.items.passengers.2.count`; integer, required)
          - maximum: `8` · minimum: `1`
      - `object` (`booking.flights.list.response.200.items.passengers.3`)
        - `count` (`booking.flights.list.response.200.items.passengers.3.count`; integer, required)
          - maximum: `8` · minimum: `1`
  - `refundable` (`booking.flights.list.response.200.items.refundable`; boolean, required)
  - `requiredDocumentTypes` (`booking.flights.list.response.200.items.requiredDocumentTypes`; array of string, required)
    - one of `"PASSPORT"`, `"NATIONAL_ID"`, `"ALIEN_RESIDENT"`, `"VISA"`, `"KNOWN_TRAVELER_NUMBER"`, `"REDRESS_NUMBER"`
  - `requiresInstantPayment` (`booking.flights.list.response.200.items.requiresInstantPayment`; boolean, required)
  - `serviceCapabilities` (`booking.flights.list.response.200.items.serviceCapabilities`; object, required)
    - `ancillaries` (`booking.flights.list.response.200.items.serviceCapabilities.ancillaries`; string, required)
      - one of `"AVAILABLE"`, `"NOT_REQUESTED"`, `"NOT_SUPPORTED"`
    - `seats` (`booking.flights.list.response.200.items.serviceCapabilities.seats`; string, required)
      - one of `"AVAILABLE"`, `"NOT_REQUESTED"`, `"NOT_SUPPORTED"`
  - `slices` (`booking.flights.list.response.200.items.slices`; array of object, required)
    - `connectionCount` (`booking.flights.list.response.200.items.slices.connectionCount`; integer, required)
      - maximum: `9007199254740991` · minimum: `0`
    - `durationMinutes` (`booking.flights.list.response.200.items.slices.durationMinutes`; integer, required)
      - maximum: `9007199254740991`
    - `overnight` (`booking.flights.list.response.200.items.slices.overnight`; boolean, required)
    - `segments` (`booking.flights.list.response.200.items.slices.segments`; array of object, required)
      - `aircraft` (`booking.flights.list.response.200.items.slices.segments.aircraft`; any of, required)
        - any of the following:
          - `object`
            - `code` (`booking.flights.list.response.200.items.slices.segments.aircraft.1.code`; string, required)
              - minLength: `1`
            - `manufacturer` (`booking.flights.list.response.200.items.slices.segments.aircraft.1.manufacturer`; any of, required)
              - any of the following: `string`, `null`
            - `model` (`booking.flights.list.response.200.items.slices.segments.aircraft.1.model`; any of, required)
              - any of the following: `string`, `null`
            - `name` (`booking.flights.list.response.200.items.slices.segments.aircraft.1.name`; string, required)
              - minLength: `1`
          - `null`
      - `arrival` (`booking.flights.list.response.200.items.slices.segments.arrival`; object, required)
        - `airport` (`booking.flights.list.response.200.items.slices.segments.arrival.airport`; object, required)
          - `city` (`booking.flights.list.response.200.items.slices.segments.arrival.airport.city`; string, required)
            - minLength: `1`
          - `countryCode` (`booking.flights.list.response.200.items.slices.segments.arrival.airport.countryCode`; any of, required)
            - any of the following: `CountryCode`, `null`
          - `iataCode` (`booking.flights.list.response.200.items.slices.segments.arrival.airport.iataCode`; string, required)
            - pattern: `^[A-Z]{3}$`
          - `name` (`booking.flights.list.response.200.items.slices.segments.arrival.airport.name`; string, required)
            - minLength: `1`
          - `timeZone` (`booking.flights.list.response.200.items.slices.segments.arrival.airport.timeZone`; any of, required)
            - any of the following: `string`, `null`
        - `at` (`booking.flights.list.response.200.items.slices.segments.arrival.at`; string, required)
          - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`
        - `localDateTime` (`booking.flights.list.response.200.items.slices.segments.arrival.localDateTime`; string, required)
          - pattern: `^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$`
        - `terminal` (`booking.flights.list.response.200.items.slices.segments.arrival.terminal`; any of, required)
          - any of the following: `string`, `null`
        - `utcOffset` (`booking.flights.list.response.200.items.slices.segments.arrival.utcOffset`; any of, required)
          - any of the following: `string`, `null`
      - `codeshare` (`booking.flights.list.response.200.items.slices.segments.codeshare`; boolean, required)
      - `departure` (`booking.flights.list.response.200.items.slices.segments.departure`; object, required)
        - `airport` (`booking.flights.list.response.200.items.slices.segments.departure.airport`; object, required)
          - `city` (`booking.flights.list.response.200.items.slices.segments.departure.airport.city`; string, required)
            - minLength: `1`
          - `countryCode` (`booking.flights.list.response.200.items.slices.segments.departure.airport.countryCode`; any of, required)
            - any of the following: `CountryCode`, `null`
          - `iataCode` (`booking.flights.list.response.200.items.slices.segments.departure.airport.iataCode`; string, required)
            - pattern: `^[A-Z]{3}$`
          - `name` (`booking.flights.list.response.200.items.slices.segments.departure.airport.name`; string, required)
            - minLength: `1`
          - `timeZone` (`booking.flights.list.response.200.items.slices.segments.departure.airport.timeZone`; any of, required)
            - any of the following: `string`, `null`
        - `at` (`booking.flights.list.response.200.items.slices.segments.departure.at`; string, required)
          - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`
        - `localDateTime` (`booking.flights.list.response.200.items.slices.segments.departure.localDateTime`; string, required)
          - pattern: `^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$`
        - `terminal` (`booking.flights.list.response.200.items.slices.segments.departure.terminal`; any of, required)
          - any of the following: `string`, `null`
        - `utcOffset` (`booking.flights.list.response.200.items.slices.segments.departure.utcOffset`; any of, required)
          - any of the following: `string`, `null`
      - `distanceMiles` (`booking.flights.list.response.200.items.slices.segments.distanceMiles`; any of, required)
        - any of the following: `integer`, `null`
      - `durationMinutes` (`booking.flights.list.response.200.items.slices.segments.durationMinutes`; integer, required)
        - maximum: `9007199254740991`
      - `fare` (`booking.flights.list.response.200.items.slices.segments.fare`; object, required)
        - `bookingCode` (`booking.flights.list.response.200.items.slices.segments.fare.bookingCode`; any of, required)
          - any of the following: `string`, `null`
        - `brand` (`booking.flights.list.response.200.items.slices.segments.fare.brand`; any of, required)
          - any of the following:
            - `object`
              - `code` (`booking.flights.list.response.200.items.slices.segments.fare.brand.1.code`; string, required)
                - minLength: `1`
              - `name` (`booking.flights.list.response.200.items.slices.segments.fare.brand.1.name`; string, required)
                - minLength: `1`
            - `null`
        - `cabin` (`booking.flights.list.response.200.items.slices.segments.fare.cabin`; string, required)
          - one of `"BUSINESS"`, `"ECONOMY"`, `"FIRST"`, `"PREMIUM_ECONOMY"`
        - `checkedBaggagePieces` (`booking.flights.list.response.200.items.slices.segments.fare.checkedBaggagePieces`; any of, required)
          - any of the following: `integer`, `null`
        - `fareBasisCode` (`booking.flights.list.response.200.items.slices.segments.fare.fareBasisCode`; any of, required)
          - any of the following: `string`, `null`
        - `checkedBaggageIncluded` (`booking.flights.list.response.200.items.slices.segments.fare.checkedBaggageIncluded`; any of, optional)
          - any of the following: `boolean`, `null`
        - `meals` (`booking.flights.list.response.200.items.slices.segments.fare.meals`; array of string, optional)
          - one of `"BREAKFAST"`, `"DINNER"`, `"FOR_PURCHASE"`, `"LUNCH"`, `"MEAL"`, `"NONE"`, `"REFRESHMENTS"`, `"SNACK"`
        - `seatsLeft` (`booking.flights.list.response.200.items.slices.segments.fare.seatsLeft`; any of, optional)
          - any of the following: `integer`, `null`
      - `flightNumber` (`booking.flights.list.response.200.items.slices.segments.flightNumber`; string, required)
        - minLength: `1`
      - `hiddenStops` (`booking.flights.list.response.200.items.slices.segments.hiddenStops`; array of object, required)
        - `airport` (`booking.flights.list.response.200.items.slices.segments.hiddenStops.airport`; object, required)
          - `city` (`booking.flights.list.response.200.items.slices.segments.hiddenStops.airport.city`; string, required)
            - minLength: `1`
          - `countryCode` (`booking.flights.list.response.200.items.slices.segments.hiddenStops.airport.countryCode`; any of, required)
            - any of the following: `CountryCode`, `null`
          - `iataCode` (`booking.flights.list.response.200.items.slices.segments.hiddenStops.airport.iataCode`; string, required)
            - pattern: `^[A-Z]{3}$`
          - `name` (`booking.flights.list.response.200.items.slices.segments.hiddenStops.airport.name`; string, required)
            - minLength: `1`
          - `timeZone` (`booking.flights.list.response.200.items.slices.segments.hiddenStops.airport.timeZone`; any of, required)
            - any of the following: `string`, `null`
        - `arrivesAt` (`booking.flights.list.response.200.items.slices.segments.hiddenStops.arrivesAt`; string, required)
          - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`
        - `arrivalLocalDateTime` (`booking.flights.list.response.200.items.slices.segments.hiddenStops.arrivalLocalDateTime`; string, required)
          - pattern: `^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$`
        - `arrivalUtcOffset` (`booking.flights.list.response.200.items.slices.segments.hiddenStops.arrivalUtcOffset`; any of, required)
          - any of the following: `string`, `null`
        - `departsAt` (`booking.flights.list.response.200.items.slices.segments.hiddenStops.departsAt`; string, required)
          - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`
        - `departureLocalDateTime` (`booking.flights.list.response.200.items.slices.segments.hiddenStops.departureLocalDateTime`; string, required)
          - pattern: `^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$`
        - `departureUtcOffset` (`booking.flights.list.response.200.items.slices.segments.hiddenStops.departureUtcOffset`; any of, required)
          - any of the following: `string`, `null`
        - `durationMinutes` (`booking.flights.list.response.200.items.slices.segments.hiddenStops.durationMinutes`; integer, required)
          - maximum: `9007199254740991` · minimum: `0`
      - `marketingCarrier` (`booking.flights.list.response.200.items.slices.segments.marketingCarrier`; object, required)
        - `code` (`booking.flights.list.response.200.items.slices.segments.marketingCarrier.code`; string, required)
          - pattern: `^[A-Z0-9]{2,3}$`
        - `logoAssetReference` (`booking.flights.list.response.200.items.slices.segments.marketingCarrier.logoAssetReference`; any of, required)
          - any of the following: `string`, `null`
        - `name` (`booking.flights.list.response.200.items.slices.segments.marketingCarrier.name`; string, required)
          - minLength: `1`
      - `operatingCarrier` (`booking.flights.list.response.200.items.slices.segments.operatingCarrier`; any of, required)
        - any of the following:
          - `object`
            - `code` (`booking.flights.list.response.200.items.slices.segments.operatingCarrier.1.code`; string, required)
              - pattern: `^[A-Z0-9]{2,3}$`
            - `logoAssetReference` (`booking.flights.list.response.200.items.slices.segments.operatingCarrier.1.logoAssetReference`; any of, required)
              - any of the following: `string`, `null`
            - `name` (`booking.flights.list.response.200.items.slices.segments.operatingCarrier.1.name`; string, required)
              - minLength: `1`
          - `null`
      - `operatingFlightNumber` (`booking.flights.list.response.200.items.slices.segments.operatingFlightNumber`; any of, required)
        - any of the following: `string`, `null`
      - `segmentReference` (`booking.flights.list.response.200.items.slices.segments.segmentReference`; string, required)
        - minLength: `1`
    - `sliceReference` (`booking.flights.list.response.200.items.slices.sliceReference`; string, required)
      - minLength: `1`
  - `ticketingDeadline` (`booking.flights.list.response.200.items.ticketingDeadline`; any of, required)
    - any of the following: `string`, `null`
  - `estimatedCommission` (`booking.flights.list.response.200.items.estimatedCommission`; any of, optional)
    - any of the following:
      - `EstimatedCommission`
        - `grossAmount` (`EstimatedCommission.grossAmount`; any of, required)
          - any of the following: `Money`, `null`
        - `rateBasisPoints` (`EstimatedCommission.rateBasisPoints`; any of, required)
          - any of the following: `integer`, `null`
        - `source` (`EstimatedCommission.source`; string, required)
          - one of `"NICER_PRICE_ADJUSTMENT"`, `"PROVIDER_RATE"`
      - `null`
  - `validatingCarriers` (`booking.flights.list.response.200.items.validatingCarriers`; array of object, optional) — Every airline that may issue this fare's ticket, the default (`owner`) first. Present only when there is more than one; checkout takes the chosen code as `validatingCarrier`.
    - `code` (`booking.flights.list.response.200.items.validatingCarriers.code`; string, required)
      - pattern: `^[A-Z0-9]{2,3}$`
    - `logoAssetReference` (`booking.flights.list.response.200.items.validatingCarriers.logoAssetReference`; any of, required)
      - any of the following: `string`, `null`
    - `name` (`booking.flights.list.response.200.items.validatingCarriers.name`; string, required)
      - minLength: `1`
  - `changeable` (`booking.flights.list.response.200.items.changeable`; any of, optional)
    - any of the following: `boolean`, `null`
- `filters` (`booking.flights.list.response.200.filters`; object, required)
  - `applied` (`booking.flights.list.response.200.filters.applied`; object, required)
    - `airlineCodes` (`booking.flights.list.response.200.filters.applied.airlineCodes`; array of string, optional)
      - pattern: `^[A-Z0-9]{2,3}$`
    - `checkedBaggageIncludedOnly` (`booking.flights.list.response.200.filters.applied.checkedBaggageIncludedOnly`; boolean, optional)
    - `commissionableOnly` (`booking.flights.list.response.200.filters.applied.commissionableOnly`; boolean, optional)
    - `maximumDurationMinutes` (`booking.flights.list.response.200.filters.applied.maximumDurationMinutes`; integer, optional)
      - maximum: `9007199254740991`
    - `maximumPriceMinor` (`booking.flights.list.response.200.filters.applied.maximumPriceMinor`; integer, optional)
      - maximum: `9007199254740991`
    - `minimumPriceMinor` (`booking.flights.list.response.200.filters.applied.minimumPriceMinor`; integer, optional)
      - maximum: `9007199254740991` · minimum: `0`
    - `refundableOnly` (`booking.flights.list.response.200.filters.applied.refundableOnly`; boolean, optional)
    - `sameCabinOnly` (`booking.flights.list.response.200.filters.applied.sameCabinOnly`; boolean, optional)
    - `changeableOnly` (`booking.flights.list.response.200.filters.applied.changeableOnly`; boolean, optional)
    - `maximumLayoverMinutes` (`booking.flights.list.response.200.filters.applied.maximumLayoverMinutes`; integer, optional)
      - maximum: `9007199254740991`
    - `connectionAirportCodes` (`booking.flights.list.response.200.filters.applied.connectionAirportCodes`; array of string, optional)
      - pattern: `^[A-Z]{3}$`
    - `excludeAirportChanges` (`booking.flights.list.response.200.filters.applied.excludeAirportChanges`; boolean, optional)
  - `available` (`booking.flights.list.response.200.filters.available`; object, required)
    - `airlines` (`booking.flights.list.response.200.filters.available.airlines`; array of object, required)
      - `code` (`booking.flights.list.response.200.filters.available.airlines.code`; string, required)
        - pattern: `^[A-Z0-9]{2,3}$`
      - `logoAssetReference` (`booking.flights.list.response.200.filters.available.airlines.logoAssetReference`; any of, required)
        - any of the following: `string`, `null`
      - `name` (`booking.flights.list.response.200.filters.available.airlines.name`; string, required)
        - minLength: `1`
    - `checkedBaggageIncludedCount` (`booking.flights.list.response.200.filters.available.checkedBaggageIncludedCount`; integer, required)
      - maximum: `9007199254740991` · minimum: `0`
    - `commission` (`booking.flights.list.response.200.filters.available.commission`; any of, required)
      - any of the following:
        - `object`
          - `commissionableCount` (`booking.flights.list.response.200.filters.available.commission.1.commissionableCount`; integer, required)
            - maximum: `9007199254740991` · minimum: `0`
          - `grossAmountRanges` (`booking.flights.list.response.200.filters.available.commission.1.grossAmountRanges`; array of object, required)
            - `currency` (`booking.flights.list.response.200.filters.available.commission.1.grossAmountRanges.currency`; string, required)
              - pattern: `^[A-Z]{3}$`
            - `maximumAmountMinor` (`booking.flights.list.response.200.filters.available.commission.1.grossAmountRanges.maximumAmountMinor`; integer, required)
              - maximum: `9007199254740991` · minimum: `0`
            - `minimumAmountMinor` (`booking.flights.list.response.200.filters.available.commission.1.grossAmountRanges.minimumAmountMinor`; integer, required)
              - maximum: `9007199254740991` · minimum: `0`
        - `null`
    - `connectionCounts` (`booking.flights.list.response.200.filters.available.connectionCounts`; array of integer, required)
      - maximum: `9007199254740991` · minimum: `0`
    - `durationMinutes` (`booking.flights.list.response.200.filters.available.durationMinutes`; any of, required)
      - any of the following:
        - `object`
          - `maximum` (`booking.flights.list.response.200.filters.available.durationMinutes.1.maximum`; integer, required)
            - maximum: `9007199254740991`
          - `minimum` (`booking.flights.list.response.200.filters.available.durationMinutes.1.minimum`; integer, required)
            - maximum: `9007199254740991`
        - `null`
    - `priceRanges` (`booking.flights.list.response.200.filters.available.priceRanges`; array of object, required)
      - `currency` (`booking.flights.list.response.200.filters.available.priceRanges.currency`; string, required)
        - pattern: `^[A-Z]{3}$`
      - `maximumAmountMinor` (`booking.flights.list.response.200.filters.available.priceRanges.maximumAmountMinor`; integer, required)
        - maximum: `9007199254740991` · minimum: `0`
      - `minimumAmountMinor` (`booking.flights.list.response.200.filters.available.priceRanges.minimumAmountMinor`; integer, required)
        - maximum: `9007199254740991` · minimum: `0`
    - `refundableCount` (`booking.flights.list.response.200.filters.available.refundableCount`; integer, required)
      - maximum: `9007199254740991` · minimum: `0`
    - `matrix` (`booking.flights.list.response.200.filters.available.matrix`; array of object, optional)
      - `airline` (`booking.flights.list.response.200.filters.available.matrix.airline`; any of, required)
        - any of the following:
          - `object`
            - `code` (`booking.flights.list.response.200.filters.available.matrix.airline.1.code`; string, required)
              - pattern: `^[A-Z0-9]{2,3}$`
            - `logoAssetReference` (`booking.flights.list.response.200.filters.available.matrix.airline.1.logoAssetReference`; any of, required)
              - any of the following: `string`, `null`
            - `name` (`booking.flights.list.response.200.filters.available.matrix.airline.1.name`; string, required)
              - minLength: `1`
          - `null`
      - `stops` (`booking.flights.list.response.200.filters.available.matrix.stops`; integer, required)
        - maximum: `2` · minimum: `0`
      - `lowestPrice` (`booking.flights.list.response.200.filters.available.matrix.lowestPrice`; object, required)
        - `amountMinor` (`booking.flights.list.response.200.filters.available.matrix.lowestPrice.amountMinor`; integer, required)
          - maximum: `9007199254740991` · minimum: `0`
        - `currency` (`booking.flights.list.response.200.filters.available.matrix.lowestPrice.currency`; string, required)
          - pattern: `^[A-Z]{3}$`
      - `flightCount` (`booking.flights.list.response.200.filters.available.matrix.flightCount`; integer, required)
        - maximum: `9007199254740991`
    - `changeableCount` (`booking.flights.list.response.200.filters.available.changeableCount`; integer, optional)
      - maximum: `9007199254740991` · minimum: `0`
    - `connectionAirports` (`booking.flights.list.response.200.filters.available.connectionAirports`; array of object, optional)
      - `airport` (`booking.flights.list.response.200.filters.available.connectionAirports.airport`; object, required)
        - `city` (`booking.flights.list.response.200.filters.available.connectionAirports.airport.city`; string, required)
          - minLength: `1`
        - `countryCode` (`booking.flights.list.response.200.filters.available.connectionAirports.airport.countryCode`; any of, required)
          - any of the following: `CountryCode`, `null`
        - `iataCode` (`booking.flights.list.response.200.filters.available.connectionAirports.airport.iataCode`; string, required)
          - pattern: `^[A-Z]{3}$`
        - `name` (`booking.flights.list.response.200.filters.available.connectionAirports.airport.name`; string, required)
          - minLength: `1`
        - `timeZone` (`booking.flights.list.response.200.filters.available.connectionAirports.airport.timeZone`; any of, required)
          - any of the following: `string`, `null`
      - `flightCount` (`booking.flights.list.response.200.filters.available.connectionAirports.flightCount`; integer, required)
        - maximum: `9007199254740991`
    - `layoverMinutes` (`booking.flights.list.response.200.filters.available.layoverMinutes`; any of, optional)
      - any of the following:
        - `object`
          - `maximum` (`booking.flights.list.response.200.filters.available.layoverMinutes.1.maximum`; integer, required)
            - maximum: `9007199254740991` · minimum: `0`
          - `minimum` (`booking.flights.list.response.200.filters.available.layoverMinutes.1.minimum`; integer, required)
            - maximum: `9007199254740991` · minimum: `0`
        - `null`
- `page` (`booking.flights.list.response.200.page`; object, required)
  - `number` (`booking.flights.list.response.200.page.number`; integer, required)
    - maximum: `9007199254740991`
  - `size` (`booking.flights.list.response.200.page.size`; integer, required)
    - maximum: `9007199254740991`
  - `total` (`booking.flights.list.response.200.page.total`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`
  - `hasMore` (`booking.flights.list.response.200.page.hasMore`; boolean, required)
- `fetchedAt` (`booking.flights.list.response.200.fetchedAt`; string, required)
  - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`
- `expiresAt` (`booking.flights.list.response.200.expiresAt`; string, required)
  - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`
- `groups` (`booking.flights.list.response.200.groups`; array of object, optional)
  - `sliceIndex` (`booking.flights.list.response.200.groups.sliceIndex`; integer, required)
    - maximum: `5` · minimum: `0`
  - `sliceReference` (`booking.flights.list.response.200.groups.sliceReference`; string, required)
    - maxLength: `64` · pattern: `^slc_[A-Za-z0-9]+$`
  - `optionCount` (`booking.flights.list.response.200.groups.optionCount`; integer, required)
    - maximum: `9007199254740991`
  - `priceDeltaMinor` (`booking.flights.list.response.200.groups.priceDeltaMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`

##### Example

```json
{
  "items": [
    {
      "expiresAt": "2019-08-24T14:15:22Z",
      "offerReference": "string",
      "price": {
        "breakdown": {
          "baseMinor": 9007199254740991,
          "discountMinor": 9007199254740991,
          "nicerAdjustmentMinor": 9007199254740991,
          "supplierFeesMinor": 9007199254740991,
          "taxesMinor": 9007199254740991
        },
        "currency": "string",
        "totalMinor": 9007199254740991,
        "passengers": [
          {
            "count": 9007199254740991,
            "passengerType": "ADULT",
            "totalMinor": 9007199254740991
          }
        ]
      },
      "productKind": "FLIGHT",
      "providerKey": "string",
      "cabin": "BUSINESS",
      "estimatedCommission": {
        "grossAmount": {
          "amountMinor": 9007199254740991,
          "currency": "string"
        },
        "rateBasisPoints": 9007199254740991,
        "source": "NICER_PRICE_ADJUSTMENT"
      },
      "optionalDocumentTypes": [
        "PASSPORT"
      ],
      "owner": {
        "code": "string",
        "logoAssetReference": "string",
        "name": "string"
      },
      "validatingCarriers": [
        {
          "code": "string",
          "logoAssetReference": "string",
          "name": "string"
        }
      ],
      "passengers": [
        {
          "count": 1,
          "type": "ADULT"
        }
      ],
      "refundable": true,
      "changeable": true,
      "requiredDocumentTypes": [
        "PASSPORT"
      ],
      "requiresInstantPayment": true,
      "serviceCapabilities": {
        "ancillaries": "AVAILABLE",
        "seats": "AVAILABLE"
      },
      "slices": [
        {
          "connectionCount": 9007199254740991,
          "durationMinutes": 9007199254740991,
          "overnight": true,
          "segments": [
            {
              "aircraft": {},
              "arrival": {
                "airport": {}
              },
              "codeshare": true,
              "departure": {
                "airport": {}
              },
              "distanceMiles": 9007199254740991,
              "durationMinutes": 9007199254740991,
              "fare": {
                "meals": []
              },
              "flightNumber": "string",
              "hiddenStops": [
                {}
              ],
              "marketingCarrier": {},
              "operatingCarrier": {},
              "operatingFlightNumber": "string",
              "segmentReference": "string"
            }
          ],
          "sliceReference": "string"
        }
      ],
      "ticketingDeadline": "2019-08-24T14:15:22Z"
    }
  ],
  "groups": [
    {
      "sliceIndex": 5,
      "sliceReference": "string",
      "optionCount": 9007199254740991,
      "priceDeltaMinor": 9007199254740991
    }
  ],
  "filters": {
    "applied": {
      "airlineCodes": [
        "string"
      ],
      "checkedBaggageIncludedOnly": true,
      "commissionableOnly": true,
      "maximumDurationMinutes": 9007199254740991,
      "maximumPriceMinor": 9007199254740991,
      "minimumPriceMinor": 9007199254740991,
      "refundableOnly": true,
      "sameCabinOnly": true,
      "changeableOnly": true,
      "maximumLayoverMinutes": 9007199254740991,
      "connectionAirportCodes": [
        "string"
      ],
      "excludeAirportChanges": true
    },
    "available": {
      "airlines": [
        {
          "code": "string",
          "logoAssetReference": "string",
          "name": "string"
        }
      ],
      "matrix": [
        {
          "airline": {
            "code": "string",
            "logoAssetReference": "string",
            "name": "string"
          },
          "stops": 2,
          "lowestPrice": {
            "amountMinor": 9007199254740991,
            "currency": "string"
          },
          "flightCount": 9007199254740991
        }
      ],
      "changeableCount": 9007199254740991,
      "checkedBaggageIncludedCount": 9007199254740991,
      "commission": {
        "commissionableCount": 9007199254740991,
        "grossAmountRanges": [
          {
            "currency": "string",
            "maximumAmountMinor": 9007199254740991,
            "minimumAmountMinor": 9007199254740991
          }
        ]
      },
      "connectionAirports": [
        {
          "airport": {
            "city": "string",
            "countryCode": "string",
            "iataCode": "string",
            "name": "string",
            "timeZone": "string"
          },
          "flightCount": 9007199254740991
        }
      ],
      "connectionCounts": [
        9007199254740991
      ],
      "durationMinutes": {
        "maximum": 9007199254740991,
        "minimum": 9007199254740991
      },
      "layoverMinutes": {
        "maximum": 9007199254740991,
        "minimum": 9007199254740991
      },
      "priceRanges": [
        {
          "currency": "string",
          "maximumAmountMinor": 9007199254740991,
          "minimumAmountMinor": 9007199254740991
        }
      ],
      "refundableCount": 9007199254740991
    }
  },
  "page": {
    "number": 9007199254740991,
    "size": 9007199254740991,
    "total": 9007199254740991,
    "hasMore": true
  },
  "fetchedAt": "2019-08-24T14:15:22Z",
  "expiresAt": "2019-08-24T14:15:22Z"
}
```

#### Body (text/event-stream)

Type: `string`

##### Example

```text
string
```

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`booking.flights.list.response.400.errorCode`; string, required)
- `errorMessage` (`booking.flights.list.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`booking.flights.list.response.401.errorCode`; string, required)
- `errorMessage` (`booking.flights.list.response.401.errorMessage`; string, required)

### 403

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`booking.flights.list.response.403.errorCode`; string, required)
- `errorMessage` (`booking.flights.list.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/Booking/booking.flights.list/index.md
