Duffel API Quick Start Collection

Number of APIs: 3

A walkthrough on how to go from nothing to your first booking using the Duffel API.

In order to follow this guide, you'll need to:

  • Sign up for a Duffel Account (it takes about 1 minute!)
  • Create a test token from the Access Tokens page in your Dashboard and paste it in the Authorization section of the Qodex Collection (Don't forget to hit save afterwards)

Our requests have a pre-defined sequence to replicate creating a booking in a real world scenario: 1. Searching for Flights 2. Selecting an offer from the previous Search 3. Creating a booking from the selected offer

NOTE: By running the requests in the sequence mentioned above, you'll get most fields automatically pre-filled for you.

  1. Selecting an offer from the search results GET https://api.duffel.com/air/offers/{{OFFER_ID}}

  2. Searching for Flights (single passenger) POST https://api.duffel.com/air/offer_requests

  3. Creating a booking using the selected offer(single passenger) POST https://api.duffel.com/air/orders