Get an electricity emission estimate
Path Parameters
stringrequired
The estimate's unique identifier
Returns
objectrequired
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.
string
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.
stringrequired
The emission calculation unique identifier
required
One of
objectrequired
Parameters for estimating electricity emissions
curl 'https://api.lune.co/v1/estimates/electricity/Vxg3b7MoBkrNQA328Rgpnvmw1J8a6Lqj' \
-H 'Authorization: Bearer <API_KEY>'
{
"mass": {
"amount": "40.501",
"unit": "t"
},
"idempotency_key": "5bd808a954e",
"id": "90ng23MKvLqbkpMwMw7yMBD4wJQrV6O6",
"quote": {
"errors": [
{
"error_code": "account_suspended",
"message": "message"
}
],
"error": {
"error_code": "account_suspended",
"message": "message"
}
},
"request": {
"name": "name",
"consumption": {
"amount": "40.501",
"unit": "MWh"
},
"country_code": "country_code",
"bundle_selection": [
{
"bundle_id": "BmWxrvXo29eGqzA1qjANL5PwnkgaO8R3",
"percentage": 34
},
{
"bundle_id": "VndoQ0PZjGMzvYOZGwqy6kbgN1eOJx9B",
"percentage": 66
}
],
"quantity_trunc": "t",
"idempotency_key": "5bd808a954e"
}
}