POST
/
v1
/
emissions
/
calculate
/
flight
{
    "number_of_passengers": 2,
    "cabin_class": "ECONOMY",
    "departure_legs": [
        {
            "origin": "LGW",
            "destination": "LAX",
            "date": "2000-01-15",
            "flight_number": 123,
            "carrier": "BA"
        }
    ],
    "return_legs": [
        {
            "origin": "LAX",
            "destination": "LGW",
            "date": "2000-02-15",
            "flight_number": 456,
            "carrier": "BA"
        }
    ]
}
{
    "emissions_in_kg": 1000
}

Headers

api-key
string
required

Authorisation requires an API key in the header of the request. Please see this page for more information.

Request Fields

number_of_passengers
int
required

The number of passengers associated with the booking.

Minimum Value: 1

Maximum Value: 10

cabin_class
string
required

The cabin class associated with the booking.

Possible Values: ECONOMY, PREMIUM_ECONOMY, BUSINESS or FIRST.

departure_legs
object list
required
return_legs
object list

This object is not required for one way trips.

Response Fields

emissions_in_kg
long

The amount of carbon emissions to be offset, specified in kilograms.

{
    "number_of_passengers": 2,
    "cabin_class": "ECONOMY",
    "departure_legs": [
        {
            "origin": "LGW",
            "destination": "LAX",
            "date": "2000-01-15",
            "flight_number": 123,
            "carrier": "BA"
        }
    ],
    "return_legs": [
        {
            "origin": "LAX",
            "destination": "LGW",
            "date": "2000-02-15",
            "flight_number": 456,
            "carrier": "BA"
        }
    ]
}
{
    "emissions_in_kg": 1000
}