Lune Docs Logo

Company

Create a company emission estimate

HTTP POST to /v1/estimates/companyEstimate emissions produced by a company. This includes office-related emissions, employee transportation, food, drinks, electronic equipment and computing/networking operations.The result is an estimate of a year-worth of company emissions.
Request body

Parameters for estimating emissions associated with operating a company.

All relevant values are yearly values.

Number of months covered by the emission estimate

Number of employees

Share of employees working remotely (in percent)

Office area in square meters

Pattern: ^[0-9]+(\.[0-9]+)?$

square_meters
square_feet

The three-letter country code of the country where the company is located.

The company's postal code

Electricity consumption in kWh

Is the electricity provided by renewable source(s)?

Yearly natural gas consumption in cubic meters

Company cars

Average yearly distance travelled per car

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, km for kilometers, mi for miles

km
mi
nm

Number of employees commuting by public transport

Number of short (under 3 hours) flights per year

Number of medium (between 3 and 6 hours) flights per year

Number of long (over 6 hours) flights per year

Share of business or first class flights, in percent

Amount spend on food and drinks

Pattern: ^[0-9]+(\.[0-9]+)?$

An amount of money (the fractional part is optional)

ISO 4217 3 character currency code.

Note: Lune supports most but not all currency codes.

AED
AFN
ALL
AMD
ANG

Share of vegetarians or vegans in the company, in percent

New electronic devices (laptops, monitors, etc.) expenses

Pattern: ^[0-9]+(\.[0-9]+)?$

An amount of money (the fractional part is optional)

ISO 4217 3 character currency code.

Note: Lune supports most but not all currency codes.

AED
AFN
ALL
AMD
ANG

The amount of garbage produced, in kilograms

Share of recycled garbage, in percent

Company's own tech infrastructure details

Pattern: ^[0-9]+(\.[0-9]+)?$

An amount of money (the fractional part is optional)

ISO 4217 3 character currency code.

Note: Lune supports most but not all currency codes.

AED
AFN
ALL
AMD
ANG

Company's use of cloud services

Pattern: ^[0-9]+(\.[0-9]+)?$

An amount of money (the fractional part is optional)

ISO 4217 3 character currency code.

Note: Lune supports most but not all currency codes.

AED
AFN
ALL
AMD
ANG

The identifier of a cloud provider.

aws
gcp
azure
ovh
other

Bundle selection percentages.

The sum of all percentages must equal 100.

If not specified, the preconfigured allocation ratios are going to be used.

If, for each selection, percentage is not provided, the selection is divided equally (best effort) between bundles. percentage must be provided for all or none of the bundles.

Maps a bundle id to an allocation ratio

The bundle's unique identifier

Selects to which precision to truncate quantities specific to carbon offsetting.

g
kg
t

A name to reference this calculation.

An arbitrary dictionary (key-value pairs) to store application-specific information.

Lune doesn't use this information for order processing. Its purpose is for the API clients to be able to attach arbitrary information (to an order for example) and then retrieve it.

Account-unique identifier provided by the client.

idempotency_key has two purposes:

  1. Clients can safely retry estimate requests without accidentally performing the same operation multiple times.
  2. Clients can use idempotency_key to reconcile estimates with entities on their system.
Response

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

An arbitrary dictionary (key-value pairs) to store application-specific information.

Lune doesn't use this information for order processing. Its purpose is for the API clients to be able to attach arbitrary information (to an order for example) and then retrieve it.

Account-unique identifier provided by the client.

idempotency_key has two purposes:

  1. Clients can safely retry estimate requests without accidentally performing the same operation multiple times.
  2. Clients can use idempotency_key to reconcile estimates with entities on their system.

The emission calculation unique identifier

Parameters for estimating emissions associated with operating a company.

All relevant values are yearly values.

Number of months covered by the emission estimate

Number of employees

Share of employees working remotely (in percent)

Office area in square meters

Pattern: ^[0-9]+(\.[0-9]+)?$

square_meters
square_feet

The three-letter country code of the country where the company is located.

The company's postal code

Electricity consumption in kWh

Is the electricity provided by renewable source(s)?

Yearly natural gas consumption in cubic meters

Company cars

Average yearly distance travelled per car

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, km for kilometers, mi for miles

km
mi
nm

Number of employees commuting by public transport

Number of short (under 3 hours) flights per year

Number of medium (between 3 and 6 hours) flights per year

Number of long (over 6 hours) flights per year

Share of business or first class flights, in percent

Amount spend on food and drinks

Pattern: ^[0-9]+(\.[0-9]+)?$

An amount of money (the fractional part is optional)

ISO 4217 3 character currency code.

Note: Lune supports most but not all currency codes.

AED
AFN
ALL
AMD
ANG

Share of vegetarians or vegans in the company, in percent

New electronic devices (laptops, monitors, etc.) expenses

Pattern: ^[0-9]+(\.[0-9]+)?$

An amount of money (the fractional part is optional)

ISO 4217 3 character currency code.

Note: Lune supports most but not all currency codes.

AED
AFN
ALL
AMD
ANG

The amount of garbage produced, in kilograms

Share of recycled garbage, in percent

Company's own tech infrastructure details

Pattern: ^[0-9]+(\.[0-9]+)?$

An amount of money (the fractional part is optional)

ISO 4217 3 character currency code.

Note: Lune supports most but not all currency codes.

AED
AFN
ALL
AMD
ANG

Company's use of cloud services

Pattern: ^[0-9]+(\.[0-9]+)?$

An amount of money (the fractional part is optional)

ISO 4217 3 character currency code.

Note: Lune supports most but not all currency codes.

AED
AFN
ALL
AMD
ANG

The identifier of a cloud provider.

aws
gcp
azure
ovh
other

Bundle selection percentages.

The sum of all percentages must equal 100.

If not specified, the preconfigured allocation ratios are going to be used.

If, for each selection, percentage is not provided, the selection is divided equally (best effort) between bundles. percentage must be provided for all or none of the bundles.

Maps a bundle id to an allocation ratio

The bundle's unique identifier

Selects to which precision to truncate quantities specific to carbon offsetting.

g
kg
t

A name to reference this calculation.

An arbitrary dictionary (key-value pairs) to store application-specific information.

Lune doesn't use this information for order processing. Its purpose is for the API clients to be able to attach arbitrary information (to an order for example) and then retrieve it.

Account-unique identifier provided by the client.

idempotency_key has two purposes:

  1. Clients can safely retry estimate requests without accidentally performing the same operation multiple times.
  2. Clients can use idempotency_key to reconcile estimates with entities on their system.

Scope 1 emissions. Direct emissions from owned or controlled sources.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Scope 2 emissions. Indirect emissions from the generation of purchased or acquired electricity, steam, heating, or cooling consumed.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Scope 3 emissions. All indirect emissions, not included in scope 2, that occur in the value chain.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Emissions associated with buying equipment and generating waste.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Emissions associated with purchasing energy (electricy, heating etc.)

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Emissions associated with business travels and commuting to/from work.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Emissions associated with food and drinks.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Emissions associated with operating computer systems.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Emissions associated with remote employees (electricity, heating etc.)

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t
Errors
This API operation can return the following errors:
HTTP status codeError code
400
api_version_invalid
400
bundle_selection_ratios_invalid
400
bundle_selection_bundle_invalid
400
order_value_invalid
400
bundle_id_invalid
400
id_invalid
400
distance_invalid
400
test_account_name_update_disallowed
400
bundle_selection_ratios_invalid_format
400
address_not_found

Get a company emission estimate

HTTP GET to /v1/estimates/company/{id}
Query parameters

The estimate's unique identifier

Response

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

An arbitrary dictionary (key-value pairs) to store application-specific information.

Lune doesn't use this information for order processing. Its purpose is for the API clients to be able to attach arbitrary information (to an order for example) and then retrieve it.

Account-unique identifier provided by the client.

idempotency_key has two purposes:

  1. Clients can safely retry estimate requests without accidentally performing the same operation multiple times.
  2. Clients can use idempotency_key to reconcile estimates with entities on their system.

The emission calculation unique identifier

Parameters for estimating emissions associated with operating a company.

All relevant values are yearly values.

Number of months covered by the emission estimate

Number of employees

Share of employees working remotely (in percent)

Office area in square meters

Pattern: ^[0-9]+(\.[0-9]+)?$

square_meters
square_feet

The three-letter country code of the country where the company is located.

The company's postal code

Electricity consumption in kWh

Is the electricity provided by renewable source(s)?

Yearly natural gas consumption in cubic meters

Company cars

Average yearly distance travelled per car

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, km for kilometers, mi for miles

km
mi
nm

Number of employees commuting by public transport

Number of short (under 3 hours) flights per year

Number of medium (between 3 and 6 hours) flights per year

Number of long (over 6 hours) flights per year

Share of business or first class flights, in percent

Amount spend on food and drinks

Pattern: ^[0-9]+(\.[0-9]+)?$

An amount of money (the fractional part is optional)

ISO 4217 3 character currency code.

Note: Lune supports most but not all currency codes.

AED
AFN
ALL
AMD
ANG

Share of vegetarians or vegans in the company, in percent

New electronic devices (laptops, monitors, etc.) expenses

Pattern: ^[0-9]+(\.[0-9]+)?$

An amount of money (the fractional part is optional)

ISO 4217 3 character currency code.

Note: Lune supports most but not all currency codes.

AED
AFN
ALL
AMD
ANG

The amount of garbage produced, in kilograms

Share of recycled garbage, in percent

Company's own tech infrastructure details

Pattern: ^[0-9]+(\.[0-9]+)?$

An amount of money (the fractional part is optional)

ISO 4217 3 character currency code.

Note: Lune supports most but not all currency codes.

AED
AFN
ALL
AMD
ANG

Company's use of cloud services

Pattern: ^[0-9]+(\.[0-9]+)?$

An amount of money (the fractional part is optional)

ISO 4217 3 character currency code.

Note: Lune supports most but not all currency codes.

AED
AFN
ALL
AMD
ANG

The identifier of a cloud provider.

aws
gcp
azure
ovh
other

Bundle selection percentages.

The sum of all percentages must equal 100.

If not specified, the preconfigured allocation ratios are going to be used.

If, for each selection, percentage is not provided, the selection is divided equally (best effort) between bundles. percentage must be provided for all or none of the bundles.

Maps a bundle id to an allocation ratio

The bundle's unique identifier

Selects to which precision to truncate quantities specific to carbon offsetting.

g
kg
t

A name to reference this calculation.

An arbitrary dictionary (key-value pairs) to store application-specific information.

Lune doesn't use this information for order processing. Its purpose is for the API clients to be able to attach arbitrary information (to an order for example) and then retrieve it.

Account-unique identifier provided by the client.

idempotency_key has two purposes:

  1. Clients can safely retry estimate requests without accidentally performing the same operation multiple times.
  2. Clients can use idempotency_key to reconcile estimates with entities on their system.

Scope 1 emissions. Direct emissions from owned or controlled sources.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Scope 2 emissions. Indirect emissions from the generation of purchased or acquired electricity, steam, heating, or cooling consumed.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Scope 3 emissions. All indirect emissions, not included in scope 2, that occur in the value chain.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Emissions associated with buying equipment and generating waste.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Emissions associated with purchasing energy (electricy, heating etc.)

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Emissions associated with business travels and commuting to/from work.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Emissions associated with food and drinks.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Emissions associated with operating computer systems.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Emissions associated with remote employees (electricity, heating etc.)

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t
Errors
This API operation can return the following errors:
HTTP status codeError code
401
404
429
503
service_unavailable

Update a company emissions estimate

HTTP PUT to /v1/estimates/company/{id}
Query parameters

The estimate's unique identifier

Request body

Parameters for estimating emissions associated with operating a company.

All relevant values are yearly values.

Number of months covered by the emission estimate

Number of employees

Share of employees working remotely (in percent)

Office area in square meters

Pattern: ^[0-9]+(\.[0-9]+)?$

square_meters
square_feet

The three-letter country code of the country where the company is located.

The company's postal code

Electricity consumption in kWh

Is the electricity provided by renewable source(s)?

Yearly natural gas consumption in cubic meters

Company cars

Average yearly distance travelled per car

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, km for kilometers, mi for miles

km
mi
nm

Number of employees commuting by public transport

Number of short (under 3 hours) flights per year

Number of medium (between 3 and 6 hours) flights per year

Number of long (over 6 hours) flights per year

Share of business or first class flights, in percent

Amount spend on food and drinks

Pattern: ^[0-9]+(\.[0-9]+)?$

An amount of money (the fractional part is optional)

ISO 4217 3 character currency code.

Note: Lune supports most but not all currency codes.

AED
AFN
ALL
AMD
ANG

Share of vegetarians or vegans in the company, in percent

New electronic devices (laptops, monitors, etc.) expenses

Pattern: ^[0-9]+(\.[0-9]+)?$

An amount of money (the fractional part is optional)

ISO 4217 3 character currency code.

Note: Lune supports most but not all currency codes.

AED
AFN
ALL
AMD
ANG

The amount of garbage produced, in kilograms

Share of recycled garbage, in percent

Company's own tech infrastructure details

Pattern: ^[0-9]+(\.[0-9]+)?$

An amount of money (the fractional part is optional)

ISO 4217 3 character currency code.

Note: Lune supports most but not all currency codes.

AED
AFN
ALL
AMD
ANG

Company's use of cloud services

Pattern: ^[0-9]+(\.[0-9]+)?$

An amount of money (the fractional part is optional)

ISO 4217 3 character currency code.

Note: Lune supports most but not all currency codes.

AED
AFN
ALL
AMD
ANG

The identifier of a cloud provider.

aws
gcp
azure
ovh
other

Bundle selection percentages.

The sum of all percentages must equal 100.

If not specified, the preconfigured allocation ratios are going to be used.

If, for each selection, percentage is not provided, the selection is divided equally (best effort) between bundles. percentage must be provided for all or none of the bundles.

Maps a bundle id to an allocation ratio

The bundle's unique identifier

Selects to which precision to truncate quantities specific to carbon offsetting.

g
kg
t

A name to reference this calculation.

An arbitrary dictionary (key-value pairs) to store application-specific information.

Lune doesn't use this information for order processing. Its purpose is for the API clients to be able to attach arbitrary information (to an order for example) and then retrieve it.

Account-unique identifier provided by the client.

idempotency_key has two purposes:

  1. Clients can safely retry estimate requests without accidentally performing the same operation multiple times.
  2. Clients can use idempotency_key to reconcile estimates with entities on their system.
Response

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

An arbitrary dictionary (key-value pairs) to store application-specific information.

Lune doesn't use this information for order processing. Its purpose is for the API clients to be able to attach arbitrary information (to an order for example) and then retrieve it.

Account-unique identifier provided by the client.

idempotency_key has two purposes:

  1. Clients can safely retry estimate requests without accidentally performing the same operation multiple times.
  2. Clients can use idempotency_key to reconcile estimates with entities on their system.

The emission calculation unique identifier

Parameters for estimating emissions associated with operating a company.

All relevant values are yearly values.

Number of months covered by the emission estimate

Number of employees

Share of employees working remotely (in percent)

Office area in square meters

Pattern: ^[0-9]+(\.[0-9]+)?$

square_meters
square_feet

The three-letter country code of the country where the company is located.

The company's postal code

Electricity consumption in kWh

Is the electricity provided by renewable source(s)?

Yearly natural gas consumption in cubic meters

Company cars

Average yearly distance travelled per car

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, km for kilometers, mi for miles

km
mi
nm

Number of employees commuting by public transport

Number of short (under 3 hours) flights per year

Number of medium (between 3 and 6 hours) flights per year

Number of long (over 6 hours) flights per year

Share of business or first class flights, in percent

Amount spend on food and drinks

Pattern: ^[0-9]+(\.[0-9]+)?$

An amount of money (the fractional part is optional)

ISO 4217 3 character currency code.

Note: Lune supports most but not all currency codes.

AED
AFN
ALL
AMD
ANG

Share of vegetarians or vegans in the company, in percent

New electronic devices (laptops, monitors, etc.) expenses

Pattern: ^[0-9]+(\.[0-9]+)?$

An amount of money (the fractional part is optional)

ISO 4217 3 character currency code.

Note: Lune supports most but not all currency codes.

AED
AFN
ALL
AMD
ANG

The amount of garbage produced, in kilograms

Share of recycled garbage, in percent

Company's own tech infrastructure details

Pattern: ^[0-9]+(\.[0-9]+)?$

An amount of money (the fractional part is optional)

ISO 4217 3 character currency code.

Note: Lune supports most but not all currency codes.

AED
AFN
ALL
AMD
ANG

Company's use of cloud services

Pattern: ^[0-9]+(\.[0-9]+)?$

An amount of money (the fractional part is optional)

ISO 4217 3 character currency code.

Note: Lune supports most but not all currency codes.

AED
AFN
ALL
AMD
ANG

The identifier of a cloud provider.

aws
gcp
azure
ovh
other

Bundle selection percentages.

The sum of all percentages must equal 100.

If not specified, the preconfigured allocation ratios are going to be used.

If, for each selection, percentage is not provided, the selection is divided equally (best effort) between bundles. percentage must be provided for all or none of the bundles.

Maps a bundle id to an allocation ratio

The bundle's unique identifier

Selects to which precision to truncate quantities specific to carbon offsetting.

g
kg
t

A name to reference this calculation.

An arbitrary dictionary (key-value pairs) to store application-specific information.

Lune doesn't use this information for order processing. Its purpose is for the API clients to be able to attach arbitrary information (to an order for example) and then retrieve it.

Account-unique identifier provided by the client.

idempotency_key has two purposes:

  1. Clients can safely retry estimate requests without accidentally performing the same operation multiple times.
  2. Clients can use idempotency_key to reconcile estimates with entities on their system.

Scope 1 emissions. Direct emissions from owned or controlled sources.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Scope 2 emissions. Indirect emissions from the generation of purchased or acquired electricity, steam, heating, or cooling consumed.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Scope 3 emissions. All indirect emissions, not included in scope 2, that occur in the value chain.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Emissions associated with buying equipment and generating waste.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Emissions associated with purchasing energy (electricy, heating etc.)

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Emissions associated with business travels and commuting to/from work.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Emissions associated with food and drinks.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Emissions associated with operating computer systems.

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t

Emissions associated with remote employees (electricity, heating etc.)

Pattern: ^[0-9]+(\.[0-9]+)?$

Unit, t for tonne, kg for kilogram, g for gram, mg for milligram

mg
g
kg
t
Errors
This API operation can return the following errors:
HTTP status codeError code
400
api_version_invalid
400
bundle_selection_ratios_invalid
400
bundle_selection_bundle_invalid
400
order_value_invalid
400
bundle_id_invalid
400
id_invalid
400
distance_invalid
400
test_account_name_update_disallowed
400
bundle_selection_ratios_invalid_format
400
address_not_found