Modules
An Elixir client for the Duffel API.
Look up aircraft reference data.
Manage airline credits issued to customer users, e.g. from cancellations.
Handle changes that airlines make to existing orders (e.g. schedule changes), accepting them or recording the action taken.
Look up airline reference data.
Look up airport reference data.
Batched flight search: create returns immediately with total_batches;
poll get/3 to receive offers batch by batch as airlines respond.
Tokenise cards for use in payments and 3DS sessions.
Book a rental car from a quote, then retrieve or cancel the booking.
Confirm availability and the final price for a selected car rate.
Search for rental cars.
Build the request body for Duffel.Cars.Search.create/3.
Look up city reference data.
HTTP transport for the Duffel API.
The error every Duffel function returns when something goes wrong.
Create short-lived keys for authenticating Duffel UI components in the browser.
Group customer users to scope what each of your users can see and manage.
Manage customer users — the travellers and bookers your own users represent within Duffel.
Look up airline loyalty programme reference data.
Search for flights by creating offer requests.
Build the request body for Duffel.OfferRequests.create/3.
Retrieve the offers returned by an offer request.
Cancel orders in two steps: create a pending cancellation to see the refund amount, then confirm it.
Retrieve the offers returned by an order change request.
Request changes to an existing order's slices.
Apply a selected order change offer to an order: create a pending
order change, then confirm it (with payment if change_total_amount
is positive).
Book flights by creating orders from offers, and manage existing orders.
Build the request body for Duffel.Orders.create/3.
One page of results from a Duffel list endpoint.
Multi-step flight search: offers are returned per slice independently.
Pay for hold orders that were booked without immediate payment.
Autocomplete airports and cities by name or location.
What a response said about your remaining request allowance.
Opt-in typed views over Duffel API responses.
A booked rental car.
A confirmed price for a rate, ready to book.
A bookable rate for a rental car.
A cars search with the rates it returned.
An offer request returned in the itineraries shape.
A fare brand available on an itinerary, and the offers priced under it.
A set of flights shared by every offer beneath it: the same segments, in
the same order, in the same cabins. The fares that can be bought on
those flights are the brands.
One slice of an offer request in the itineraries shape.
A bookable offer returned by a search.
A search for flights.
A booked order.
A passenger on an offer request, offer or order.
A payment made against an order.
A single flight (one take-off and landing) within a slice.
One leg of a journey on an offer or order.
A property that can be booked.
A booked stay.
A confirmed price for a rate, ready to book.
A bookable rate for a room.
A room within an accommodation, with its bookable rates.
One accommodation returned by a stays search, with its cheapest rate.
Retrieve seat maps for an offer to build a seat selection UI.
Look up accommodation, suggest accommodation by name or location, and read guest reviews.
Book accommodation from a quote, then manage and cancel the booking.
Look up accommodation brand reference data.
Look up accommodation chain reference data.
Look up accommodation loyalty programme reference data.
Manage negotiated (private) accommodation rates.
Confirm availability and the final price for a selected rate.
Search for accommodation and fetch the rates for a result.
Build the request body for Duffel.Stays.Search.create/3.
Create 3D Secure (3DS) sessions for card payments.
Inspect delivery attempts for your webhooks.
Inspect and redeliver events sent to your webhooks.
Manage webhook subscriptions and verify incoming webhook signatures.