List Units
List Units
Get a list of measurement units available in Dcycle
GET
List Units
List Units
Retrieve all measurement units available in the Dcycle system. These units are used when creating invoices, purchases, and other consumption records to specify quantities.Units are reference data maintained by Dcycle. You cannot create or modify units 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 units by type categoryValid values:
energy- Energy units (kWh, MWh, GJ, etc.)gas- Gas volume units (m³, ft³, etc.)liquid- Liquid volume units (L, m³, gal, etc.)solid- Solid mass/volume units (kg, ton, m³, etc.)fiat_currency- Currency units (EUR, USD, etc.)dimensionless- Unitless quantitiessubstance- Chemical substance unitswaste_water_treatment_dbo- Biochemical oxygen demandwaste_water_treatment_dbo_out- BOD output measurementswaste_water_treatment_ch4- Methane measurementswaste_water_treatment_nitrogen- Nitrogen measurementswaste_water_treatments_flow_total- Flow rate measurementsarea_time- Area-time combined unitstoxicity- Toxicity measurementsradioactivity- Radioactivity measurementspurchases_supplier_specific- Supplier-specific purchase units
"energy"Response
Returns an array of unit objects (not paginated - all matching units are returned).Example
Successful Response
Common Errors
400 Bad Request - Invalid Type
type parameter matches one of the valid values listed above.
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
Get Energy Units for Invoice Creation
When creating an invoice, you need the unit ID for thebase_quantity field:
Get All Units for Dropdown Selector
Build a complete unit selector for your application:Cache Units for Performance
Since units are reference data that rarely changes, cache them:Unit Types Breakdown
Most Common Types
Energy Units (type: "energy"):
- Used for electricity invoices
- Common units: kWh, MWh, GJ, kWh HHV, kWh LHV
- Example: Electricity consumption from utility bills
type: "gas"):
- Used for natural gas, propane, other gaseous fuels
- Common units: m³, ft³, Nm³
- Example: Natural gas heating consumption
type: "liquid"):
- Used for liquid fuels (diesel, gasoline, etc.)
- Common units: L, m³, gal, bbl
- Example: Diesel fuel for generators
type: "solid"):
- Used for solid fuels and materials
- Common units: kg, ton, tonne, lb
- Example: Coal, biomass, waste materials
Specialized Types
Waste Water Treatment Units:waste_water_treatment_dbo- Biochemical oxygen demand inputwaste_water_treatment_dbo_out- BOD after treatmentwaste_water_treatment_ch4- Methane emissions from treatmentwaste_water_treatment_nitrogen- Nitrogen contentwaste_water_treatments_flow_total- Total flow rate
fiat_currency- For financial calculations (EUR, USD, etc.)purchases_supplier_specific- Custom units from supplierssubstance- Chemical substances (kg CO2, kg NOx, etc.)dimensionless- Ratios, percentages, countstoxicity- Toxicity equivalentsradioactivity- Radioactive measurements
Best Practices
1. Cache Reference Data
Since units don’t change frequently, cache them in your application:2. Use Type Filtering
Filter by type when you know the invoice category:3. Store Unit IDs in Configuration
For common units, store their IDs in your configuration:4. Validate Units Before Invoice Creation
Check that the unit type matches the invoice type:Related Endpoints
Create Invoice
Create invoices using unit IDs
List Invoices
View invoices with their units
List Suppliers
Get suppliers for invoices
Authentication
Learn about API authentication

