Multi-step search partial offer requests.
Endpoints
POST /air/partial_offer_requests- Create a partial offer requestGET /air/partial_offer_requests/{id}- Get a partial offer requestGET /air/partial_offer_requests/{id}/fares- Get fares by ID
Examples
# Create a partial offer request
{:ok, response} = Travel.Flights.PartialOfferRequests.create(%{
slices: [%{origin: "LHR", destination: "JFK", departure_date: "2025-06-01"}],
passengers: [%{type: "adult"}]
})
# Get with selected partial offers
{:ok, response} = Travel.Flights.PartialOfferRequests.get("por_123", %{
selected_partial_offer: ["off_123"]
})
Summary
Functions
Create a partial offer request.
get(partial_offer_request_id, opts \\ nil)
deprecated
Get a partial offer request by ID.
Get fares matching selected partial offers.
Functions
@spec create(map(), map() | nil) :: {:ok, Travel.Types.DuffelResponse.t()} | {:error, Travel.Error.t() | term()}
Create a partial offer request.
Parameters
params- Partial offer request parametersopts- Optional query parameters (supplier_timeout)
Returns
{:ok, %Travel.Types.DuffelResponse{data: %Types.OfferRequest{}}}on success{:error, %Travel.Error{}}on failure
This function is deprecated. This endpoint will be removed in the next major version of the Duffel API.
@spec get(String.t(), map() | nil) :: {:ok, Travel.Types.DuffelResponse.t()} | {:error, Travel.Error.t() | term()}
Get a partial offer request by ID.
DEPRECATED: This endpoint will be removed in the next major version of the Duffel API.
Parameters
partial_offer_request_id- The partial offer request IDopts- Optional query parameters (selected_partial_offer)
Returns
{:ok, %Travel.Types.DuffelResponse{data: %Types.OfferRequest{}}}on success{:error, %Travel.Error{}}on failure
This function is deprecated. This endpoint will be removed in the next major version of the Duffel API.
@spec get_fares_by_id(String.t(), map() | nil) :: {:ok, Travel.Types.DuffelResponse.t()} | {:error, Travel.Error.t() | term()}
Get fares matching selected partial offers.
DEPRECATED: This endpoint will be removed in the next major version of the Duffel API.
Parameters
partial_offer_request_id- The partial offer request IDopts- Optional query parameters (selected_partial_offer)
Returns
{:ok, %Travel.Types.DuffelResponse{data: %Types.OfferRequest{}}}on success{:error, %Travel.Error{}}on failure