List Facility Fuels
List Facility Fuels
Get a list of fuels available for facility consumption
GET
List Facility Fuels
List Facility Fuels
Retrieve all facility fuels available in the Dcycle system. Facility fuels represent different types of energy sources consumed at facilities (natural gas, diesel, heating oil, LPG, etc.) and are used when creating process-type invoices.Facility fuels are reference data maintained by Dcycle. You cannot create or modify fuels through the API - this endpoint is read-only.
Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
ff4adcc7-8172-45fe-9cf1-e90a6de53aa9Your user UUIDExample:
a1b2c3d4-e5f6-7890-abcd-ef1234567890Query Parameters
Filter facility fuels by country using ISO 3166-1 alpha-2 country codeSupported country codes:Example:
ES- Spain (returns Spanish facility fuels)- Any other code returns generic GHG database fuels
Country-specific facility fuels are currently only available for Spain (
ES). Other countries will receive generic fuels from the GHG Protocol database."ES"Response
Returns an array of facility fuel objects (not paginated - all matching fuels are returned).Array of facility fuel objects
Facility Fuel Object Fields:
Unique fuel identifier (UUID v4)
Fuel name (e.g., “Natural gas”, “Diesel”, “Propane”, “Heating oil”)
ISO 3166-1 alpha-2 country code where fuel data applies
Fuel type classification (e.g., “gas”, “liquid”, “solid”)
GHG type classification for emissions calculationsCommon values:
1- Fossil fuels2- Biofuels3- Mixed sources
Array of available measurement units for this fuelEach unit object contains:
id(string) - Unit UUIDname(string) - Unit name (e.g., “m³”, “L”, “kWh”)type(string) - Unit type (e.g., “gas”, “liquid”, “energy”)
Example
Successful Response
Common Errors
400 Bad Request - Invalid Country Code
403 Forbidden
Cause: Organization ID doesn’t match your API key or user doesn’t belong to organizationx-organization-id matches your API key’s organization.
Use Cases
Create Process Invoice with Facility Fuel
When creating a process invoice for fuel consumption at a facility:Build Fuel Selector by Type
Create a UI selector organized by fuel type:Cache Fuels with Units
Cache facility fuels and their units for performance:Validate Unit Compatibility
Ensure selected unit is valid for the chosen fuel:Match Fuel Name from Invoice
If you have invoices with fuel names that need to be matched:Country-Specific Behavior
Spain (ES)
Spain has a comprehensive database of facility fuels including:- Natural gas - With m³ and kWh units
- Diesel - For generators and heating
- Heating oil - For industrial heating
- Propane (LPG) - For cooking and heating
- Biomass fuels - Wood pellets, chips
- Coal - For industrial processes
Other Countries
For countries other than Spain, the system returns generic fuels from the GHG Protocol database. These use standard emission factors suitable for:- Initial carbon footprint calculations
- Countries where fuel-specific data is not yet available
- Approximate emissions estimates
Fuel Types
Thetype field indicates the physical state of the fuel:
| Type | Description | Examples |
|---|---|---|
gas | Gaseous fuels | Natural gas, propane, butane |
liquid | Liquid fuels | Diesel, heating oil, gasoline |
solid | Solid fuels | Coal, biomass, wood pellets |
energy | Energy-based | Electricity, steam, heat |
GHG Types
Theghg_type field classifies fuels for emissions calculations:
| GHG Type | Description | Biogenic CO2 Treatment |
|---|---|---|
1 | Fossil fuels | All CO2 counted as emissions |
2 | Biofuels | Biogenic CO2 reported separately |
3 | Mixed sources | Partially biogenic |
Biogenic CO2 from biofuels (ghg_type = 2) is reported separately in the
co2e_biomass field and typically not counted toward carbon footprint totals per GHG Protocol standards.Units per Fuel
Each fuel has specific units it can be measured in:Natural Gas Units
- m³ (cubic meters) - Standard volumetric measurement
- kWh - Energy content
- kWh HHV - Higher heating value
- kWh LHV - Lower heating value
Diesel/Liquid Fuel Units
- L (liters) - Volume measurement
- kWh - Energy content
- kg - Mass measurement
LPG/Propane Units
- kg - Mass measurement (most common for LPG)
- L - Volume measurement
- m³ - For gaseous phase
Best Practices
1. Cache Reference Data
Since facility fuels don’t change frequently, cache them:2. Use Country Filtering
Always filter by country when you know the facility’s location:3. Validate Unit Before Invoice Creation
Check that the unit is in the fuel’s units array:4. Store Common Fuel IDs
For frequently used fuels, store their IDs in configuration:Related Endpoints
Create Invoice
Create process invoices with facility fuels
List Units
Get measurement units
List Facilities
View your facilities
Authentication
Learn about API authentication

