Calculate an order quote by mass
Parameters
Mass of CO2 offsets to purchase
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.
Unit, t
for tonne, kg
for kilogram, g
for gram
- g
- kg
- t
Unit, t
for tonne, kg
for kilogram, g
for gram
- g
- kg
- t
Returns
Currency code
Estimated quantity (tonnes CO2).
May be lower than requested_quantity
.
Estimated offset cost
Unit: order quote currency
Estimated total cost inclusive of Lune fees.
Unit: order quote currency
Estimated commission
Bundles included in the quote including quantity and cost breakdown.
Requested quantity for the specific bundle (tonnes CO2).
requested_quantity may be returned as part of an emission estimate response, in which case this property contains the equivalent value as the mass
property.
Requested value of CO2 offsets to purchase in the account's currency.
curl 'https://api.lune.co/v1/orders/by-mass/quote' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-X POST \
-d '{
"mass": {
"amount": "40.501",
"unit": "t"
}
}'
{
"currency": "GBP",
"estimated_quantity": "1040",
"estimated_offset_cost": "7176.00",
"estimated_total_cost": "7696.00",
"estimated_commission": "520.00",
"bundles": [
{
"bundle_id": "va1BEV2VZqnzPkYxJgALg0GeQDoXlWO5",
"bundle_name": "Latin America Forestry",
"primary_image": "https://assets.lune.co/bundles/latin-america-forestry.png",
"quantity": "1040",
"unit_price": "6.90",
"gross_unit_price": "7.90",
"offset_cost": "7176.00",
"insufficient_available_quantity": true
}
],
"requested_quantity": "1045",
"requested_value": "7700"
}