Skip to main content
GET
List Suppliers

List Suppliers

Retrieve all electricity and energy suppliers available in the Dcycle system. Suppliers are required when creating invoices to track which company provided the energy or fuel.
Suppliers are reference data maintained by Dcycle. You cannot create or modify suppliers 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 suppliers by country using ISO 3166-1 alpha-2 country codeSupported country codes:
  • ES - Spain (returns Spanish electricity suppliers)
  • Any other code returns generic GHG database suppliers
Country-specific suppliers are currently only available for Spain (ES). Other countries will receive generic suppliers from the GHG Protocol database.
Example: "ES"

Response

Returns an array of supplier objects (not paginated - all matching suppliers are returned).
array
Array of supplier objects

Supplier Object Fields:

string
Unique supplier identifier (UUID v4)
string
Supplier company name (e.g., “Iberdrola”, “Endesa”, “Naturgy”)
string
ISO 3166-1 alpha-2 country code where supplier operates
string
Supplier type (e.g., “electricity”, “gas”, “heat”)

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

Get Suppliers for Invoice Creation

When creating an electricity invoice, you need the supplier ID:

Build Supplier Dropdown Selector

Create a dropdown selector for your application:

Cache Suppliers for Performance

Since suppliers are reference data that rarely changes, cache them:

Get All Suppliers (No Country Filter)

Get all suppliers from all countries:

Match Invoice Supplier to Your Data

If you have invoices with supplier names that need to be matched:

Country-Specific Behavior

Spain (ES)

Spain has a comprehensive database of electricity suppliers including:
  • Major utilities (Iberdrola, Endesa, Naturgy)
  • Regional suppliers
  • Green energy providers
  • Cooperative energy suppliers
When you filter by country=ES, you get accurate emission factors specific to each Spanish electricity supplier.

Other Countries

For countries other than Spain, the system returns generic suppliers from the GHG Protocol database. These use standard emission factors and are suitable for:
  • Initial carbon footprint calculations
  • Countries where supplier-specific data is not yet available
  • Approximate emissions estimates
If you need country-specific suppliers beyond Spain, contact Dcycle support. We’re continuously expanding our supplier databases.

Supplier Types

The type field indicates what kind of energy the supplier provides:

Best Practices

1. Cache Reference Data

Since suppliers don’t change frequently, cache them in your application:

2. Use Country Filtering

Always filter by country when you know the facility’s location:

3. Validate Supplier Country Matches Facility

Ensure the supplier’s country matches the facility’s country:

4. Handle Missing Suppliers Gracefully

If a supplier isn’t found, provide a fallback:

Emission Factors

Suppliers in the Dcycle database include supplier-specific emission factors that represent:
  • Location-based emissions: Based on the regional electricity grid mix
  • Market-based emissions: Based on the supplier’s specific energy mix and renewable energy certificates
  • Scope 2 calculations: Used for GHG Protocol Scope 2 reporting
Supplier-specific emission factors are updated annually based on official disclosures and regulatory reports.

Create Invoice

Create invoices with supplier IDs

List Invoices

View invoices with their suppliers

List Units

Get units for invoice quantities

Authentication

Learn about API authentication