Duffel API
The modern, developer-first flight booking API — one simple REST interface to book flights across 300+ airlines using NDC (New Distribution Capability). No GDS contracts, no XML, no complexity.
What is Duffel?
Duffel is a London-based travel technology company that has built a unified REST API connecting travel businesses directly to airlines through NDC (New Distribution Capability) — the IATA standard for direct airline-to-agency data exchange that bypasses traditional GDS intermediaries.
The traditional approach to flight booking requires travel agencies to access inventory through GDS systems (Amadeus, Sabre, Travelport), which add cost, complexity, and latency to every transaction. Duffel replaces this with a clean, modern REST API that speaks directly to airlines, delivering richer content (like seat maps, ancillaries, and branded fares) that GDS systems often lack.
Duffel is backed by Benchmark, Index Ventures, and other leading VCs, and has grown rapidly among developer-led travel startups. Major airlines accessible via Duffel include British Airways, Lufthansa, American Airlines, Air France, Emirates, Qantas, and more. Indian carriers are expanding their NDC participation, making Duffel increasingly relevant for India-based travel portals.
Core API Capabilities
Search for available flights with live pricing from airlines' own systems. Returns "offers" with full fare breakdowns, conditions, and ancillary options.
Retrieve a visual seat map for any flight offer showing available seats, seat types (standard, extra legroom, exit row) and pricing per seat.
Add extra baggage, meals, seat selection and travel insurance at the time of booking — delivered directly by the airline, not via workarounds.
Create bookings (orders), retrieve e-tickets, manage cancellations and refunds — all through a single, consistent REST interface.
Optional integrated payment processing — charge customer cards through Duffel's payment infrastructure without needing a separate payment gateway for airline bookings.
A hosted booking widget that requires zero backend code — embed a working flight search and booking interface in minutes using a simple JavaScript snippet.
Quick Start
- 1Sign up at duffel.com — instant account creation, no waiting for approval. You get sandbox access immediately.
- 2Get your API token — from the Duffel dashboard, generate a test token (prefixed
duffel_test_) for sandbox use. - 3Make your first search — send a POST to
/air/offer_requestswith origin, destination, date and passenger count. - 4Retrieve offers — GET
/air/offers?offer_request_id=XXXto receive live flight options with pricing. - 5Create an order — POST to
/air/orderswith the selected offer ID and passenger details to book the flight. - 6Go live — swap your test token for a live token (
duffel_live_) after completing the Duffel go-live checklist.
Sample API Request
// Step 1: Create an offer request
POST https://api.duffel.com/air/offer_requests
Authorization: Bearer duffel_test_XXXXXXXXXX
Content-Type: application/json
{
"data": {
"slices": [{
"origin": "DEL",
"destination": "LHR",
"departure_date": "2025-12-20"
}],
"passengers": [{"type": "adult"}],
"cabin_class": "economy"
}
}
// Response
{
"data": {
"id": "orq_0000A8fNGXWxFXBIVlnMqQ",
"slices": [...],
"passengers": [...],
"offers": [
{
"id": "off_0000A8fNH2XNXBIVlnMrZ",
"total_amount": "42350.00",
"total_currency": "INR",
"base_amount": "38200.00",
"tax_amount": "4150.00",
"expires_at": "2025-11-01T10:00:00Z"
}
]
}
}Pricing
Duffel charges a small fee per booking — typically $0.50 to $1.50 per order depending on volume and airline. There are no monthly fees or minimum commitments. For high-volume partners, custom pricing is available. The test environment is completely free with no booking charges.
Pros & Cons
Pros
- Fastest integration in the market (hours, not weeks)
- Clean REST/JSON — no GDS XML complexity
- Rich NDC content: seats, ancillaries, branded fares
- No upfront contracts or minimum volumes
- Excellent documentation and SDKs (JS, Python, Ruby)
- Duffel Links enables no-code embedding
Cons
- Airline coverage still growing — not all carriers available
- Less suitable for high-volume enterprise (Amadeus/Sabre better)
- Per-booking fee can add up at scale
- Primarily strong in European/US carriers
- Limited multi-city routing support on some airlines
Build a Modern Flight Booking Portal with Duffel
UP17 Communication integrates Duffel API into web portals and mobile apps — handling search, seat selection, booking, payments and post-booking management.
Start Your Project