Duffel Flights API Integration Guide

Implement Duffel Flights API around Offer Requests, Offers, Orders, baggage/ancillaries, payment and airline source-of-truth.

Editorial information
Advertisement

Duffel Flights API is a useful modern reference for an explicit Offer/Order flight-supply model.

Lifecycle

text
Offer Request
 -> Offers
 -> selected Offer
 -> optional price/services
 -> Order
 -> payment / hold
 -> change/cancel/service

Offers are ephemeral and expose expires_at. Do not attempt to book expired offers.

Order

An Order represents a view of the airline booking. Duffel documents the airline as source of truth and exposes synced_at for the last airline synchronization time.

Ancillaries

Available services can include extras such as checked bags. Preserve selected service identity through booking.

Hold vs instant

Orders can use instant payment or hold-and-pay-later when the selected offer allows it.

Idempotency

An Order-create timeout creates UNKNOWN state. Avoid blind duplicate creation and reconcile first.

Observability

Track offer-request latency, offer expiry, order success/unknown rate, synced_at age, airline-initiated changes and service-booking errors.

Technical advisory

Planning a similar integration?

We can review requirements, feed/API design and the production approach with you.

Discuss your project →

Sources

Related content