Duffel

App · 20 actions

Search flight offers and retrieve airline, airport, order and payment records.

Actions

ActionWhat it does
Get aircraftGet aircraft in Duffel.
Get airlineGet airline in Duffel.
Get airportGet airport in Duffel.
Get offerGet offer in Duffel.
Get offer requestGet offer request in Duffel.
Get orderGet order in Duffel.
Get order cancellationGet order cancellation in Duffel.
Get order paymentGet order payment in Duffel.
List aircraftList aircraft in Duffel.
List airlinesList airlines in Duffel.
List airportsList airports in Duffel.
List loyalty programmesList loyalty programmes in Duffel.
List offer requestsList offer requests in Duffel.
List offersList offers in Duffel.
List order cancellationsList order cancellations in Duffel.
List order paymentsList order payments in Duffel.
List ordersList orders in Duffel.
List seat maps for an offerList seat maps for an offer in Duffel.
Search airports and citiesSearch airports and cities in Duffel.
Search flights for one legSearch flights for one leg in Duffel.

Get aircraft

Get aircraft in Duffel.

Inputs

Aircraft IDaircraft_idtextRequired
Aircraft id.

Outputs

dataobject
The response from Duffel.
Example output
{
  "data": {
    "data": {
      "iata_code": "example",
      "id": "example",
      "name": "example"
    }
  }
}

Get airline

Get airline in Duffel.

Inputs

Airline IDairline_idtextRequired
Airline id.

Outputs

dataobject
The response from Duffel.
Example output
{
  "data": {
    "data": {
      "iata_code": "example",
      "id": "example",
      "name": "example"
    }
  }
}

Get airport

Get airport in Duffel.

Inputs

Airport IDairport_idtextRequired
Airport id.

Outputs

dataobject
The response from Duffel.
Example output
{
  "data": {
    "data": {
      "iata_code": "example",
      "id": "example",
      "name": "example"
    }
  }
}

Get offer

Get offer in Duffel.

Inputs

Offer IDoffer_idtextRequired
Offer id.

Outputs

dataobject
The response from Duffel.
Example output
{
  "data": {
    "data": {
      "expires_at": "example",
      "id": "example",
      "owner": {
        "iata_code": "example",
        "id": "example",
        "name": "example"
      },
      "slices": [
        {}
      ],
      "total_amount": "example",
      "total_currency": "example"
    }
  }
}

Get offer request

Get offer request in Duffel.

Inputs

Offer requestoffer_request_idtextRequired
Offer request id.

Outputs

dataobject
The response from Duffel.
Example output
{
  "data": {
    "data": {
      "cabin_class": "example",
      "created_at": "example",
      "id": "example",
      "offers": [
        {
          "expires_at": "example",
          "id": "example",
          "owner": {
            "iata_code": "example",
            "id": "example",
            "name": "example"
          },
          "slices": [
            {}
          ],
          "total_amount": "example",
          "total_currency": "example"
        }
      ],
      "slices": [
        {}
      ]
    }
  }
}

Get order

Get order in Duffel.

Inputs

Orderorder_idtextRequired
Order id.

Outputs

dataobject
The response from Duffel.
Example output
{
  "data": {
    "data": {
      "booking_reference": "example",
      "cancelled_at": "example",
      "created_at": "example",
      "id": "example",
      "live_mode": true,
      "total_amount": "example",
      "total_currency": "example"
    }
  }
}

Get order cancellation

Get order cancellation in Duffel.

Inputs

Cancellation IDcancellation_idtextRequired
Cancellation id.

Outputs

dataobject
The response from Duffel.
Example output
{
  "data": {
    "data": {
      "confirmed_at": "example",
      "id": "example",
      "order_id": "example",
      "refund_amount": "example",
      "refund_currency": "example"
    }
  }
}

Get order payment

Get order payment in Duffel.

Inputs

Payment IDpayment_idtextRequired
Payment id.

Outputs

dataobject
The response from Duffel.
Example output
{
  "data": {
    "data": {
      "amount": "example",
      "currency": "example",
      "id": "example",
      "order_id": "example",
      "status": "example"
    }
  }
}

List aircraft

List aircraft in Duffel.

Inputs

Limitlimitnumber
Limit.From 1 to 200.
Afteraftertext
Next-page cursor returned by Duffel.
Beforebeforetext
Previous-page cursor returned by Duffel.

Outputs

dataobject
The response from Duffel.
Example output
{
  "data": {
    "data": [
      {
        "iata_code": "example",
        "id": "example",
        "name": "example"
      }
    ],
    "meta": {
      "after": "example",
      "before": "example",
      "limit": 1
    }
  }
}

List airlines

List airlines in Duffel.

Inputs

Limitlimitnumber
Limit.From 1 to 200.
Afteraftertext
Next-page cursor returned by Duffel.
Beforebeforetext
Previous-page cursor returned by Duffel.

Outputs

dataobject
The response from Duffel.
Example output
{
  "data": {
    "data": [
      {
        "iata_code": "example",
        "id": "example",
        "name": "example"
      }
    ],
    "meta": {
      "after": "example",
      "before": "example",
      "limit": 1
    }
  }
}

List airports

List airports in Duffel.

Inputs

Limitlimitnumber
Limit.From 1 to 200.
Afteraftertext
Next-page cursor returned by Duffel.
Beforebeforetext
Previous-page cursor returned by Duffel.

Outputs

dataobject
The response from Duffel.
Example output
{
  "data": {
    "data": [
      {
        "iata_code": "example",
        "id": "example",
        "name": "example"
      }
    ],
    "meta": {
      "after": "example",
      "before": "example",
      "limit": 1
    }
  }
}

List loyalty programmes

List loyalty programmes in Duffel.

Inputs

Limitlimitnumber
Limit.From 1 to 200.
Afteraftertext
Next-page cursor returned by Duffel.
Beforebeforetext
Previous-page cursor returned by Duffel.

Outputs

dataobject
The response from Duffel.
Example output
{
  "data": {
    "data": [
      {
        "iata_code": "example",
        "id": "example",
        "name": "example"
      }
    ],
    "meta": {
      "after": "example",
      "before": "example",
      "limit": 1
    }
  }
}

List offer requests

List offer requests in Duffel.

Inputs

Limitlimitnumber
Limit.From 1 to 200.
Afteraftertext
Next-page cursor returned by Duffel.
Beforebeforetext
Previous-page cursor returned by Duffel.

Outputs

dataobject
The response from Duffel.
Example output
{
  "data": {
    "data": [
      {
        "cabin_class": "example",
        "created_at": "example",
        "id": "example",
        "offers": [
          {
            "expires_at": "example",
            "id": "example",
            "owner": {
              "iata_code": "example",
              "id": "example",
              "name": "example"
            },
            "slices": [
              {}
            ],
            "total_amount": "example",
            "total_currency": "example"
          }
        ],
        "slices": [
          {}
        ]
      }
    ],
    "meta": {
      "after": "example",
      "before": "example",
      "limit": 1
    }
  }
}

List offers

List offers in Duffel.

Inputs

Limitlimitnumber
Limit.From 1 to 200.
Afteraftertext
Next-page cursor returned by Duffel.
Beforebeforetext
Previous-page cursor returned by Duffel.
Offer requestoffer_request_idtextRequired
Offer request id.

Outputs

dataobject
The response from Duffel.
Example output
{
  "data": {
    "data": [
      {
        "expires_at": "example",
        "id": "example",
        "owner": {
          "iata_code": "example",
          "id": "example",
          "name": "example"
        },
        "slices": [
          {}
        ],
        "total_amount": "example",
        "total_currency": "example"
      }
    ],
    "meta": {
      "after": "example",
      "before": "example",
      "limit": 1
    }
  }
}

List order cancellations

List order cancellations in Duffel.

Inputs

Limitlimitnumber
Limit.From 1 to 200.
Afteraftertext
After.
Beforebeforetext
Before.
Orderorder_idtext
Order id.

Outputs

dataobject
The response from Duffel.
Example output
{
  "data": {
    "data": [
      {
        "confirmed_at": "example",
        "id": "example",
        "order_id": "example",
        "refund_amount": "example",
        "refund_currency": "example"
      }
    ],
    "meta": {
      "after": "example",
      "before": "example",
      "limit": 1
    }
  }
}

List order payments

List order payments in Duffel.

Inputs

Limitlimitnumber
Limit.From 1 to 200.
Afteraftertext
After.
Beforebeforetext
Before.
Orderorder_idtext
Order id.

Outputs

dataobject
The response from Duffel.
Example output
{
  "data": {
    "data": [
      {
        "amount": "example",
        "currency": "example",
        "id": "example",
        "order_id": "example",
        "status": "example"
      }
    ],
    "meta": {
      "after": "example",
      "before": "example",
      "limit": 1
    }
  }
}

List orders

List orders in Duffel.

Inputs

Limitlimitnumber
Limit.From 1 to 200.
Afteraftertext
Next-page cursor returned by Duffel.
Beforebeforetext
Previous-page cursor returned by Duffel.

Outputs

dataobject
The response from Duffel.
Example output
{
  "data": {
    "data": [
      {
        "booking_reference": "example",
        "cancelled_at": "example",
        "created_at": "example",
        "id": "example",
        "live_mode": true,
        "total_amount": "example",
        "total_currency": "example"
      }
    ],
    "meta": {
      "after": "example",
      "before": "example",
      "limit": 1
    }
  }
}

List seat maps for an offer

List seat maps for an offer in Duffel.

Inputs

Offer IDoffer_idtextRequired
Offer id.

Outputs

dataobject
The response from Duffel.
Example output
{
  "data": {
    "data": [
      {
        "cabins": [
          {}
        ],
        "id": "example",
        "slice_id": "example"
      }
    ]
  }
}

Search airports and cities

Search airports and cities in Duffel.

Inputs

QueryquerytextRequired
Query.

Outputs

dataobject
The response from Duffel.
Example output
{
  "data": {
    "data": [
      {
        "iata_code": "example",
        "id": "example",
        "name": "example"
      }
    ]
  }
}

Search flights for one leg

Search flights for one leg in Duffel.

Inputs

OriginorigintextRequired
Departure airport or city IATA code.
DestinationdestinationtextRequired
Arrival airport or city IATA code.
Departure datedeparture_datedateRequired
Departure date.
AdultsadultsnumberRequired
Number of adult travelers.From 1 to 9.
Cabin classcabin_classtext
Cabin class.One of: economy, premium_economy (Premium economy), business, first.
Return offersreturn_offerstrue/false
Return offers.

Outputs

dataobject
The response from Duffel.
Example output
{
  "data": {
    "data": {
      "id": "example",
      "offers": [
        {
          "expires_at": "example",
          "id": "example",
          "owner": {
            "iata_code": "example",
            "id": "example",
            "name": "example"
          },
          "slices": [
            {}
          ],
          "total_amount": "example",
          "total_currency": "example"
        }
      ],
      "slices": [
        {}
      ]
    }
  }
}

On this page