curl "https://api.dcycle.io/v1/stationary/fuels" \
-H "x-api-key: ${DCYCLE_API_KEY}" \
-H "x-organization-id: ${DCYCLE_ORG_ID}"
[
{ "id": "242c7255-0b18-4907-8fef-374baf06d7a0", "name": "gas/diesel_oil" },
{ "id": "d247c183-4cc1-4fad-aa47-3b2f2dcc6da8", "name": "natural_gas" }
]
List Stationary Fuels
The fuels Dcycle calculates stationary combustion for: the ids for stationary_fuel_id on 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": "242c7255-0b18-4907-8fef-374baf06d7a0", "name": "gas/diesel_oil" },
{ "id": "d247c183-4cc1-4fad-aa47-3b2f2dcc6da8", "name": "natural_gas" }
]
← 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. 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": "242c7255-0b18-4907-8fef-374baf06d7a0", "name": "gas/diesel_oil" },
{ "id": "d247c183-4cc1-4fad-aa47-3b2f2dcc6da8", "name": "natural_gas" }
]
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).Related Endpoints
Create Fuel Invoices (v2)
Uses
stationary_fuel_idInvoices API
Which route for which consumption
Was this page helpful?