API reference

Flights

Search, re-price the offer you picked, book it. Both search and re-pricing are billable; a booking is charged to your account.

Operations

OperationWhat it doesScope
POST/v1/flights/searchesSearch flights — billable, answers immediatelyflights:search
GET/v1/flights/offers/{id}Re-price an offer — billableflights:search
GET/v1/flights/ordersYour flight orders, newest firstflights:book
POST/v1/flights/ordersBook an offer — charged to your accountflights:book
GET/v1/flights/orders/{id}One orderflights:book
GET/v1/flights/orders/{id}/cancellation-quoteWhat cancelling would costflights:book
POST/v1/flights/orders/{id}/cancelCancel a flight orderflights:book
POST/v1/flights/orders/{id}/change-optionsPriced alternatives for one legflights:book
POST/v1/flights/orders/{id}/changeReissue the ticket on a chosen optionflights:book

A key that lacks one of these scopes is refused with 403 insufficient_scope, and error.missingScope names the one it was missing. Scopes are fixed when the key is issued.

Shared across these operations

The error envelope and the full list of error types are the same for every operation in the API, as are the object schemas the responses are built from. Neither is repeated per page.