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
string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faQuery Parameters
This endpoint accepts the same filters as List Invoices.uuid
required
UUID of the facility to scope invoices toExample:
?facility_id=660e8400-e29b-41d4-a716-446655440000string
required
Invoice type to retrieveAllowed values:
heat, electricity, water, recharge, processExample: ?filters=electricitydate
Filter invoices starting on or after this date (YYYY-MM-DD)
date
Filter invoices ending on or before this date (YYYY-MM-DD)
string[]
Filter by invoice statusAllowed values:
uploaded, loading, active, inactive, review, errorstring
Filter by CO2e calculation statusAllowed values:
calculated, not_calculatedstring
Partial, case-insensitive match against the invoice numberExample:
?invoice_id=INV-2024string[]
Filter by one or more CUPS codes
UUID[]
Filter by one or more supplier IDs
UUID[]
Filter by one or more facility fuel IDs
UUID[]
Filter by the IDs of users who uploaded the invoice
string[]
Filter by invoice creation sourceKnown values:
manual, pdf, bulk_file, datadisdate
Filter invoices uploaded on or after this date (YYYY-MM-DD)
date
Filter invoices uploaded on or before this date (YYYY-MM-DD)
UUID[]
Filter by stationary fuel IDs (natural gas, diesel, biomass). Relevant for
heat invoices.UUID[]
Filter by refrigerant fuel IDs. Relevant for
recharge invoices.UUID[]
Filter by one or more supply contract IDs
string[]
Filter by self-consumption flagAllowed values:
true, falseuuid
Filter by project UUID
Response
number
Sum of quantities across all matching invoices
number | null
Sum of monetary amounts (EUR)
number
Total CO2e (tCO2e)
number | null
CO2e from energy consumption (Scope 2 — market/location based)
number | null
CO2e from on-site generation (Scope 1)
number | null
CO2e from transmission and distribution losses (Scope 3)
integer
Number of matching invoices
array[object]
Quantities broken down by 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