Skip to main content
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

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: ff4adcc7-8172-45fe-9cf1-e90a6de53aa9
string
required
Your user UUIDExample: a1b2c3d4-e5f6-7890-abcd-ef1234567890

Query Parameters

string
Filter facility fuels by country using ISO 3166-1 alpha-2 country codeSupported country codes:
  • 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.
Example: "ES"

Response

Returns an array of facility fuel objects (not paginated - all matching fuels are returned).
array
Array of facility fuel objects

Facility Fuel Object Fields:

string
Unique fuel identifier (UUID v4)
string
Fuel name (e.g., “Natural gas”, “Diesel”, “Propane”, “Heating oil”)
string
ISO 3166-1 alpha-2 country code where fuel data applies
string
Fuel type classification (e.g., “gas”, “liquid”, “solid”)
integer
GHG type classification for emissions calculationsCommon values:
  • 1 - Fossil fuels
  • 2 - Biofuels
  • 3 - Mixed sources
array
Array of available measurement units for this fuelEach unit object contains:
  • id (string) - Unit UUID
  • name (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

Cause: Invalid country code format
Solution: Use a valid ISO 3166-1 alpha-2 country code (2 letters, e.g., “ES”, “FR”, “DE”).

403 Forbidden

Cause: Organization ID doesn’t match your API key or user doesn’t belong to organization
Solution: Verify that x-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
Spanish facility fuels include country-specific emission factors based on national regulations.

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
If you need country-specific facility fuels beyond Spain, contact Dcycle support. We’re continuously expanding our fuel databases.

Fuel Types

The type field indicates the physical state of the fuel:

GHG Types

The ghg_type field classifies fuels for emissions calculations:
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

  • (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
  • - For gaseous phase
Always check the units array for each fuel to see which units are available. Using an incompatible unit will result in an error when creating an invoice.

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:

Create Invoice

Create process invoices with facility fuels

List Units

Get measurement units

List Facilities

View your facilities

Authentication

Learn about API authentication