curl "https://api.dcycle.io/v1/stationary/fuels" \
-H "x-api-key: ${DCYCLE_API_KEY}" \
-H "x-organization-id: ${DCYCLE_ORG_ID}"
[
{
"id": "da51927f-e718-4218-a31a-e3d4ebda31f9",
"name": "anthracite",
"units": [
{ "id": "588ff56e-a428-43a3-9cc3-b59a19b54a44", "name": "gigajoule_(gj)", "type": "energy" },
{ "id": "4cf74995-4327-4fa7-bd98-a942b81b0e3d", "name": "gigajoule_gross_(gj_gross)", "type": "energy" },
{ "id": "61743a63-ff70-459c-9567-5eee8f7dfd5c", "name": "kilogram_(kg)", "type": "solid" },
{ "id": "8e5f2374-901c-4167-8cf6-2575c784895c", "name": "kilowatt_hour_gross_(kwh_gross)", "type": "energy" },
{ "id": "ba80e6cb-86a4-4bb1-a0c5-8104365d523c", "name": "kilowatt_hour_(kwh)", "type": "energy" },
{ "id": "dc2d1230-0df7-4c04-8677-2c9ca1ea3d50", "name": "megajoule_gross_(mj_gross)", "type": "energy" },
{ "id": "b2f588f1-664b-4fe1-a230-3d342d2e2e85", "name": "megajoule_(mj)", "type": "energy" },
{ "id": "9332408e-4e30-461c-954f-ff3bad035b7d", "name": "metric_million_btu_(mmbtu)", "type": "energy" },
{ "id": "cab66828-c2b1-431b-92af-f9ab37149d3c", "name": "metric_tonne_(t)", "type": "solid" },
{ "id": "7ef7e667-4b45-4130-b46b-785b1604742a", "name": "pound_(lb)", "type": "solid" },
{ "id": "9dfc6c3b-f750-4330-92e5-a38da1a77817", "name": "terajoule_gross_(tj_gross)", "type": "energy" },
{ "id": "c6e14eac-8725-4e38-9e42-8d546b3e0cea", "name": "terajoule_(tj)", "type": "energy" },
{ "id": "4a7b0e57-4eaa-496d-9748-beeb9e5dddd7", "name": "therm_(thm)", "type": "energy" }
]
}
]
List Stationary Fuels
The fuels Dcycle calculates stationary combustion for, with the units each one is calculated in: the stationary_fuel_id and unit_id of fuel invoices
GET
/
v1
/
stationary
/
fuels
curl "https://api.dcycle.io/v1/stationary/fuels" \
-H "x-api-key: ${DCYCLE_API_KEY}" \
-H "x-organization-id: ${DCYCLE_ORG_ID}"
[
{
"id": "da51927f-e718-4218-a31a-e3d4ebda31f9",
"name": "anthracite",
"units": [
{ "id": "588ff56e-a428-43a3-9cc3-b59a19b54a44", "name": "gigajoule_(gj)", "type": "energy" },
{ "id": "4cf74995-4327-4fa7-bd98-a942b81b0e3d", "name": "gigajoule_gross_(gj_gross)", "type": "energy" },
{ "id": "61743a63-ff70-459c-9567-5eee8f7dfd5c", "name": "kilogram_(kg)", "type": "solid" },
{ "id": "8e5f2374-901c-4167-8cf6-2575c784895c", "name": "kilowatt_hour_gross_(kwh_gross)", "type": "energy" },
{ "id": "ba80e6cb-86a4-4bb1-a0c5-8104365d523c", "name": "kilowatt_hour_(kwh)", "type": "energy" },
{ "id": "dc2d1230-0df7-4c04-8677-2c9ca1ea3d50", "name": "megajoule_gross_(mj_gross)", "type": "energy" },
{ "id": "b2f588f1-664b-4fe1-a230-3d342d2e2e85", "name": "megajoule_(mj)", "type": "energy" },
{ "id": "9332408e-4e30-461c-954f-ff3bad035b7d", "name": "metric_million_btu_(mmbtu)", "type": "energy" },
{ "id": "cab66828-c2b1-431b-92af-f9ab37149d3c", "name": "metric_tonne_(t)", "type": "solid" },
{ "id": "7ef7e667-4b45-4130-b46b-785b1604742a", "name": "pound_(lb)", "type": "solid" },
{ "id": "9dfc6c3b-f750-4330-92e5-a38da1a77817", "name": "terajoule_gross_(tj_gross)", "type": "energy" },
{ "id": "c6e14eac-8725-4e38-9e42-8d546b3e0cea", "name": "terajoule_(tj)", "type": "energy" },
{ "id": "4a7b0e57-4eaa-496d-9748-beeb9e5dddd7", "name": "therm_(thm)", "type": "energy" }
]
}
]
← Invoices API
The full catalog of fuel burned on site (natural gas, diesel, LPG, biomass…) that Dcycle has emission factors for, sorted by name. Use an
id as stationary_fuel_id in
POST /v2/invoices/fuels, and one of its units as unit_id. The list
is the same for every organization and changes rarely, so you can cache it.
curl "https://api.dcycle.io/v1/stationary/fuels" \
-H "x-api-key: ${DCYCLE_API_KEY}" \
-H "x-organization-id: ${DCYCLE_ORG_ID}"
[
{
"id": "da51927f-e718-4218-a31a-e3d4ebda31f9",
"name": "anthracite",
"units": [
{ "id": "588ff56e-a428-43a3-9cc3-b59a19b54a44", "name": "gigajoule_(gj)", "type": "energy" },
{ "id": "4cf74995-4327-4fa7-bd98-a942b81b0e3d", "name": "gigajoule_gross_(gj_gross)", "type": "energy" },
{ "id": "61743a63-ff70-459c-9567-5eee8f7dfd5c", "name": "kilogram_(kg)", "type": "solid" },
{ "id": "8e5f2374-901c-4167-8cf6-2575c784895c", "name": "kilowatt_hour_gross_(kwh_gross)", "type": "energy" },
{ "id": "ba80e6cb-86a4-4bb1-a0c5-8104365d523c", "name": "kilowatt_hour_(kwh)", "type": "energy" },
{ "id": "dc2d1230-0df7-4c04-8677-2c9ca1ea3d50", "name": "megajoule_gross_(mj_gross)", "type": "energy" },
{ "id": "b2f588f1-664b-4fe1-a230-3d342d2e2e85", "name": "megajoule_(mj)", "type": "energy" },
{ "id": "9332408e-4e30-461c-954f-ff3bad035b7d", "name": "metric_million_btu_(mmbtu)", "type": "energy" },
{ "id": "cab66828-c2b1-431b-92af-f9ab37149d3c", "name": "metric_tonne_(t)", "type": "solid" },
{ "id": "7ef7e667-4b45-4130-b46b-785b1604742a", "name": "pound_(lb)", "type": "solid" },
{ "id": "9dfc6c3b-f750-4330-92e5-a38da1a77817", "name": "terajoule_gross_(tj_gross)", "type": "energy" },
{ "id": "c6e14eac-8725-4e38-9e42-8d546b3e0cea", "name": "terajoule_(tj)", "type": "energy" },
{ "id": "4a7b0e57-4eaa-496d-9748-beeb9e5dddd7", "name": "therm_(thm)", "type": "energy" }
]
}
]
Request
Headers
string
required
Your API key (see Authentication).
string
required
Your organization UUID.
Response
An array of objects, sorted byname:
uuid
The id to send as
stationary_fuel_id.string
The name, in English snake_case (e.g.
natural_gas).object[]
The units the fuel is calculated in: send one of them as
unit_id. See
which unit to send.Which unit to send
units lists every unit at least one of Dcycle’s emission factor databases converts the fuel from. Send the quantity
in one of them: an invoice in another unit is not calculated, and its job item ends failed with
CALCULATION_FAILED. Coal, coke, peat and process gases have no volume units, for instance (none of their factors
has a density to turn litres into kilograms), and some fuels have no terajoule_gross_(tj_gross) or
megajoule_gross_(mj_gross).
For a facility in Spain, send liquid fuels in litres, solid fuels and bottled gases (butane, propane) in kilograms
and natural gas in kWh (gross): those are the units of MITECO, the database the calculation uses there by default.
The facility’s country and the invoice’s year choose the database, and a unit of the list that it does not convert
is not calculated either: residual fuel oil (residual_fuel_oil) or other kerosene (other_kerosene) in kWh is
calculated in France, but not in Spain, where MITECO gives them per litre.
Delete such an invoice and send it again in another of the fuel’s units.
With a custom emission factor (custom_ef_record_id), send a unit
your factor converts from: it calculates the combustion instead of the fuel’s factors.
Related Endpoints
Create Fuel Invoices (v2)
Uses
stationary_fuel_id and unit_idInvoices API
Which route for which consumption
Was this page helpful?