# Quote flights (/docs/api-reference/flights/quote)

`POST /v1/flights/quote`

Prices flight fares again with the airline, without placing an order.

Takes the same body as order: `{ currency, referenceId, items[] }` with 1 to 5 items, each
`{ publicId, quantity, inputs }` and `quantity` 1. `inputs` may be left out: the quote then prices
the fare alone. Inputs that are sent are checked as the order checks them, and their paid extras are added to
the price. Prices are in `currency`, or in the API key's currency when it is omitted. Nothing is charged or
held.
            
Returns `{ currency, items, total }`. Each item has a new `publicId`: order with it before
`details.expiresAt`. It keeps the fare's price, which caps an order without `inputs.maxPrice`.
`details` carries the fare's conditions, included baggage and price breakdown, `hasSeatMaps`, the paid
extras (`availableServices`) that can be sent in the order's `inputs.selectedServices`, and
`fareOptions`: the fares for the same flights and airline, cheapest first and including the quoted one, each
with its own `publicId` that can be quoted or ordered.
            
A higher airline price is returned with 200; only `inputs.maxPrice` stops a quote. Each item is checked
completely, its inputs, its `publicId` and its price, before the next one, and the first failure names its
item: an invalid input or a `quantity` other than 1 gives 400 / 10001 at its path under `items[i]`; a
price above `inputs.maxPrice` 409 / 11002 at `items[i].inputs.maxPrice`; an offer the airline no
longer sells 409 / 11003 at `items[i]`; an unknown, expired or another partner's `publicId`, or a
search itinerary `id`, 400 / 11004 at `items[i]`. An unsupported `currency` gives 400 / 10001 at
`currency`.

## Request body

- `application/json`: `FlightOrderRequest`
- `text/json`: `FlightOrderRequest`
- `application/*+json`: `FlightOrderRequest`

## Responses

### 200

OK

- `text/plain`: `FlightQuote`
- `application/json`: `FlightQuote`
- `text/json`: `FlightQuote`

### 400

Invalid partner request or model validation failure.

- `application/json`: `ErrorResponse`

### 409

Conflict

- `text/plain`: `ErrorResponse`
- `application/json`: `ErrorResponse`
- `text/json`: `ErrorResponse`

### 429

Too many requests from this IP address. Wait for Retry-After seconds, then send the same request again; an order keeps its Idempotency-Key and body.

- `application/json`: `ErrorResponse`

The full schemas are in the OpenAPI specification at /openapi.json.