Overview
- POST /air/offer_requests
- GET /air/offers/{OFFER_ID}
- PARAMETERS /air/offers/{OFFER_ID}
- POST /air/orders
POST /air/offer_requests
Summary: Searching for Flights
In the Duffel API you create an offer request in order to search for flights.
For this you’ll need the flight itinerary - which should include the origin(s), destination(s) and departure date(s) - and information about the passengers.
OpenAPI snippet URL
GET /air/offers/{OFFER_ID}
Summary: Selecting an offer from the search results
Offers can get stale fairly quickly, and when they do you are no longer able to book them.
To get the latest version of the offer, you can use the offer’s id using this endpoint
OpenAPI snippet URL
PARAMETERS /air/offers/{OFFER_ID}
OpenAPI snippet URL
POST /air/orders
Summary: Creating a booking using the selected offer
We are finally ready to make a booking using the Duffel API which we call “creating an order”.
For this you’ll need three things:
- The ID of the offer you’d like to book (taken from the previous request you did)
- Basic necessary information about the passengers
- Payment method and information to confirm the order
OpenAPI snippet URL