Skip to main content
GET
List Vehicle Fuels

List Vehicle Fuels

Retrieve all vehicle fuels available in the Dcycle system. Vehicle fuels represent different types of energy sources for vehicles (gasoline, diesel, electric, hybrid, CNG, LPG, etc.) and are used when creating vehicles and tracking fuel consumption.
Vehicle 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 fuels by vehicle typeValid vehicle types:
  • passenger_car - Standard passenger cars
  • light_commercial - Light commercial vehicles (vans, small trucks)
  • rigid - Rigid trucks
  • articulated - Articulated trucks (semi-trailers)
  • motorcycle - Motorcycles and scooters
  • bus - Buses and coaches
Example: "passenger_car"
string
Filter fuels by country using ISO 3166-1 alpha-2 country codeSupported country codes:
  • ES - Spain (returns Spanish vehicle fuels)
  • Any other code returns global (GLO) database fuels
Country-specific vehicle fuels are currently only available for Spain (ES). Other countries will receive generic fuels from the global database.
Example: "ES"

Response

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

Vehicle Fuel Object Fields:

string
Unique fuel identifier (UUID v4)
string
Fuel name (e.g., “Diesel”, “Gasoline”, “Electric”, “Hybrid”, “CNG”, “LPG”)
string
ISO 3166-1 alpha-2 country code where fuel data applies (ES or GLO)
array
Array of vehicle type IDs that can use this fuelOnly included when no vehicle_type filter is applied. When filtering by vehicle_type, this field is omitted.Example: ["passenger_car_id_1", "light_commercial_id_2"]
array
Array of available measurement units for this fuelEach unit object contains:
  • id (string) - Unit UUID
  • name (string) - Unit name (e.g., “L”, “kWh”, “kg”)
  • type (string) - Unit type (e.g., “liquid”, “energy”, “solid”)

Example

Successful Response (with vehicle_type filter)

Successful Response (without filters)

Common Errors

400 Bad Request - Invalid Vehicle Type

Cause: Invalid vehicle type
Solution: Use a valid vehicle type from the list above (passenger_car, light_commercial, rigid, articulated, motorcycle, bus).

400 Bad Request - Invalid Country Code

Cause: Invalid country code format
Solution: Use a valid ISO 3166-1 alpha-2 country code (2 letters).

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

Get Fuels for Creating Unknown Vehicles

When creating an unknown vehicle, you need the fuel ID:

Get All Fuels with Vehicle Types

When you need to know which vehicle types can use each fuel:

Filter Fuels by Type

Organize fuels for a UI selector:

Cache Vehicle Fuels

Since vehicle fuels don’t change frequently, cache them:

Validate Fuel for Vehicle Type

Ensure a fuel is compatible with a vehicle type:

Vehicle Types

The vehicle_type parameter accepts these values:

Fuel Types

Common vehicle fuel types in the system:

Fossil Fuels

  • Diesel - Most common for commercial vehicles
  • Gasoline (Petrol) - Standard passenger car fuel
  • LPG (Liquefied Petroleum Gas) - Alternative fuel for cars and vans

Alternative Fuels

  • CNG (Compressed Natural Gas) - Cleaner alternative for trucks and buses
  • LNG (Liquefied Natural Gas) - For heavy-duty trucks
  • Biodiesel - Renewable diesel alternative
  • Bioethanol - Renewable gasoline alternative

Electric & Hybrid

  • Electric - Battery electric vehicles (BEV)
  • Hybrid - Combined electric and combustion
  • Plug-in Hybrid - Rechargeable hybrid vehicles

Units per Fuel

Each fuel has specific units for measuring consumption:

Liquid Fuels (Diesel, Gasoline, LPG liquid)

  • L (liters) - Standard volume measurement
  • kWh - Energy content
  • kg - Mass measurement (for some fuels)

Gaseous Fuels (CNG, LNG)

  • kg - Mass measurement (most common)
  • - Volume measurement
  • kWh - Energy content

Electric

  • kWh - Electricity consumption (only unit)
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 vehicles or invoices.

Country-Specific Behavior

Spain (ES)

Spain has country-specific emission factors for vehicle fuels based on:
  • National fuel composition standards
  • Regional grid mix for electric vehicles
  • Fuel production and distribution emissions

Global (GLO)

For countries other than Spain, the system returns global emission factors based on:
  • IPCC guidelines
  • GHG Protocol standards
  • International fuel standards
If you need country-specific vehicle fuels beyond Spain, contact Dcycle support. We’re continuously expanding our fuel databases.

Best Practices

1. Cache Reference Data

Vehicle fuels don’t change frequently, so cache them:

2. Filter by Vehicle Type

Always filter by vehicle type when creating vehicles:

3. Validate Unit Before Use

Check that the unit is available for the selected fuel:

4. Store Common Fuel IDs

For frequently used fuels, store their IDs:

Bulk Upload Vehicles

Upload vehicles with fuel IDs

List Vehicles

View your vehicle fleet

List Units

Get measurement units

Authentication

Learn about API authentication