Duffel
App · 20 actions
Search flight offers and retrieve airline, airport, order and payment records.
Actions
| Action | What it does |
|---|---|
| Get aircraft | Get aircraft in Duffel. |
| Get airline | Get airline in Duffel. |
| Get airport | Get airport in Duffel. |
| Get offer | Get offer in Duffel. |
| Get offer request | Get offer request in Duffel. |
| Get order | Get order in Duffel. |
| Get order cancellation | Get order cancellation in Duffel. |
| Get order payment | Get order payment in Duffel. |
| List aircraft | List aircraft in Duffel. |
| List airlines | List airlines in Duffel. |
| List airports | List airports in Duffel. |
| List loyalty programmes | List loyalty programmes in Duffel. |
| List offer requests | List offer requests in Duffel. |
| List offers | List offers in Duffel. |
| List order cancellations | List order cancellations in Duffel. |
| List order payments | List order payments in Duffel. |
| List orders | List orders in Duffel. |
| List seat maps for an offer | List seat maps for an offer in Duffel. |
| Search airports and cities | Search airports and cities in Duffel. |
| Search flights for one leg | Search flights for one leg in Duffel. |
Get aircraft
Get aircraft in Duffel.
Inputs
- Aircraft ID
aircraft_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 ID
airline_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 ID
airport_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 ID
offer_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 request
offer_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
- Order
order_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 ID
cancellation_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 ID
payment_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
- Limit
limitnumber - Limit.From 1 to 200.
- After
aftertext - Next-page cursor returned by Duffel.
- Before
beforetext - 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
- Limit
limitnumber - Limit.From 1 to 200.
- After
aftertext - Next-page cursor returned by Duffel.
- Before
beforetext - 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
- Limit
limitnumber - Limit.From 1 to 200.
- After
aftertext - Next-page cursor returned by Duffel.
- Before
beforetext - 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
- Limit
limitnumber - Limit.From 1 to 200.
- After
aftertext - Next-page cursor returned by Duffel.
- Before
beforetext - 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
- Limit
limitnumber - Limit.From 1 to 200.
- After
aftertext - Next-page cursor returned by Duffel.
- Before
beforetext - 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
- Limit
limitnumber - Limit.From 1 to 200.
- After
aftertext - Next-page cursor returned by Duffel.
- Before
beforetext - Previous-page cursor returned by Duffel.
- Offer request
offer_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
- Limit
limitnumber - Limit.From 1 to 200.
- After
aftertext - After.
- Before
beforetext - Before.
- Order
order_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
- Limit
limitnumber - Limit.From 1 to 200.
- After
aftertext - After.
- Before
beforetext - Before.
- Order
order_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
- Limit
limitnumber - Limit.From 1 to 200.
- After
aftertext - Next-page cursor returned by Duffel.
- Before
beforetext - 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 ID
offer_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
- Query
querytextRequired - 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
- Origin
origintextRequired - Departure airport or city IATA code.
- Destination
destinationtextRequired - Arrival airport or city IATA code.
- Departure date
departure_datedateRequired - Departure date.
- Adults
adultsnumberRequired - Number of adult travelers.From 1 to 9.
- Cabin class
cabin_classtext - Cabin class.One of:
economy,premium_economy(Premium economy),business,first. - Return offers
return_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": [
{}
]
}
}
}