Totals
Totals
Get aggregated invoice totals (quantity, spend, CO2e by scope)
GET
Totals
Totals
Returns aggregated totals for invoices in a facility: total quantity, total spend, total CO2e broken down by scope (consumption, generation, T&D), and record count. Supports the same filters as the list endpoint.Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faQuery Parameters
This endpoint accepts the same filters as List Invoices.UUID of the facility to scope invoices toExample:
?facility_id=660e8400-e29b-41d4-a716-446655440000Invoice type to retrieveAllowed values:
heat, electricity, water, recharge, processExample: ?filters=electricityFilter invoices starting on or after this date (YYYY-MM-DD)
Filter invoices ending on or before this date (YYYY-MM-DD)
Filter by invoice statusAllowed values:
uploaded, loading, active, inactive, review, errorFilter by CO2e calculation statusAllowed values:
calculated, not_calculatedPartial, case-insensitive match against the invoice numberExample:
?invoice_id=INV-2024Filter by one or more CUPS codes
Filter by one or more supplier IDs
Filter by one or more facility fuel IDs
Filter by the IDs of users who uploaded the invoice
Filter by invoice creation sourceKnown values:
manual, pdf, bulk_file, datadisFilter invoices uploaded on or after this date (YYYY-MM-DD)
Filter invoices uploaded on or before this date (YYYY-MM-DD)
Filter by stationary fuel IDs (natural gas, diesel, biomass). Relevant for
heat invoices.Filter by refrigerant fuel IDs. Relevant for
recharge invoices.Filter by one or more supply contract IDs
Filter by self-consumption flagAllowed values:
true, falseFilter by project UUID
Response
Sum of quantities across all matching invoices
Sum of monetary amounts (EUR)
Total CO2e (tCO2e)
CO2e from energy consumption (Scope 2 — market/location based)
CO2e from on-site generation (Scope 1)
CO2e from transmission and distribution losses (Scope 3)
Number of matching invoices
Quantities broken down by unit:
| Field | Type | Description |
|---|---|---|
unit_name | string | Unit of measure (e.g. kWh, m³) |
total_quantity | number | Sum for this unit |
count | integer | Number of invoices with this unit |
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key403 Forbidden
Cause: The authenticated user is not a member of the organization422 Unprocessable Entity
Cause: Missing required query parameters (facility_id or type)
Related Endpoints
List Invoices
Browse invoices with filters
Calculation Steps
View the CO2e conversion breakdown

