Authorisation requires an API key in the header of the request. Please see this page for more information.
Request Fields
The number of passengers associated with the booking.Minimum Value: 1Maximum Value: 10
The cabin class associated with the booking.Possible Values: ECONOMY
, PREMIUM_ECONOMY
, BUSINESS
or FIRST
.
The IATA airport code representing the departure location of the flight.
The IATA airport code representing the arrival location of the flight.
The scheduled date of the flight.Format: yyyy-MM-dd
The flight number associated with the booking. It must be a valid and recognized flight number.
The IATA code of the airline operating the flight.
This object is not required for one way trips.
The IATA airport code representing the departure location of the flight.
The IATA airport code representing the arrival location of the flight.
The scheduled date of the flight.Format: yyyy-MM-dd
The flight number associated with the booking. It must be a valid and recognized flight number.
The IATA code of the airline operating the flight.
Response Fields
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
}