Create an estimate using a specific emission factor
Parameters
The emission factor unique identifier
A name to reference this calculation.
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.
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:
- Clients can safely retry estimate requests without accidentally performing the same operation multiple times.
- Clients can use
idempotency_key
to reconcile estimates with entities on their system.
Returns
Returns: EmissionFactor object
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:
- Clients can safely retry estimate requests without accidentally performing the same operation multiple times.
- Clients can use
idempotency_key
to reconcile estimates with entities on their system.
The emission calculation unique identifier
One of
curl 'https://api.lune.co/v1/estimates/emission-factor' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-X POST \
-d '{
"emission_factor_id": "rKqngNM0G65a9p474WYDQ4xdXWBe82JV",
"activity": {
"value": "1525.45",
"unit": "USD"
}
}'
{
"mass": {
"amount": "1.040105",
"unit": "t"
},
"emission_factor": {
"id": "rKqngNM0G65a9p474WYDQ4xdXWBe82JV",
"name": "Basic iron and steel and of ferro-alloys and first products thereof",
"region": "United States of America",
"source": "exiobase",
"created_at": "2023-05-05T17:42:20.751Z",
"gas_emissions": {
"co2e": "0.738411878489"
},
"numerator_unit": "kg",
"source_version": "3.8.2",
"denominator_unit": "EUR",
"publication_year": "2021"
},
"request": {
"activity": {
"unit": "USD",
"value": "1525.45"
},
"emission_factor_id": "rKqngNM0G65a9p474WYDQ4xdXWBe82JV",
"metadata": {}
},
"metadata": {},
"id": "ljmkOq7vXd238gAE9WALWQ8ZGVD5ExNz",
"quote": {
"bundles": [
{
"bundle_id": "q9aKx7b6nNXMk3Yv3pD1mlW5Od2eLZE8",
"quantity": "0.988099",
"unit_price": "6.5",
"bundle_name": "Conserving forests in Asia",
"offset_cost": "6.43",
"gross_unit_price": "7.22",
"insufficient_available_quantity": null
},
{
"bundle_id": "xWaKJL3okjD46VpJ4yGXnQNZRe1vzP0w",
"quantity": "0.052005",
"unit_price": "250",
"bundle_name": "Ocean Carbon Removal",
"offset_cost": "13.01",
"gross_unit_price": "277.78",
"insufficient_available_quantity": null
}
],
"currency": "USD",
"requested_value": null,
"estimated_quantity": "1.040104",
"requested_quantity": "1.040105",
"estimated_commission": "2.17",
"estimated_total_cost": "21.59",
"estimated_offset_cost": "19.42"
}
}