List Suppliers
List Suppliers
Get a list of electricity and energy suppliers
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
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
ff4adcc7-8172-45fe-9cf1-e90a6de53aa9Your user UUIDExample:
a1b2c3d4-e5f6-7890-abcd-ef1234567890Query Parameters
Filter suppliers by country using ISO 3166-1 alpha-2 country codeSupported country codes:Example:
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."ES"Response
Returns an array of supplier objects (not paginated - all matching suppliers are returned).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
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
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
Supplier Types
Thetype field indicates what kind of energy the supplier provides:
| Type | Description | Used For |
|---|---|---|
electricity | Electrical power suppliers | Electricity invoices (most common) |
gas | Natural gas suppliers | Gas heating invoices |
heat | District heating suppliers | Heat/steam invoices |
other | Other energy types | Special cases |
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.
Related Endpoints
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

