List Invoices
List Invoices
Retrieve all invoices with filtering and pagination
GET
List Invoices
List Invoices
Retrieve a paginated list of invoices for your organization. Use query parameters to filter by type, status, facility, and date range.Request
Headers
string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faQuery Parameters
uuid
required
UUID of the facility to retrieve invoices forExample:
?facility_id=660e8400-e29b-41d4-a716-446655440000string
required
Invoice type to retrieveAllowed values:
heat, electricity, water, recharge, processExample: ?filters=electricitystring[]
Filter by invoice status. Can include multiple values.Allowed values:
uploaded, loading, active, inactive, review, errorExample: ?status[]=active&status[]=reviewdate
Filter invoices starting on or after this date (YYYY-MM-DD format).Example:
?start_date=2024-01-01date
Filter invoices ending on or before this date (YYYY-MM-DD format).Example:
?end_date=2024-12-31string
Filter by whether emissions have been calculated.Allowed values:
calculated, not_calculatedstring
Partial, case-insensitive match against the invoice number.Example:
?invoice_id=INV-2024string[]
Filter by one or more CUPS codes.Example:
?cups[]=ES0021000000000001XXUUID[]
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 source.Known values:
manual, pdf, bulk_file, datadis. Sending
manual also matches invoices where source is NULL (legacy rows
written before explicit source tracking).date
Filter invoices uploaded on or after this date (YYYY-MM-DD format).
date
Filter invoices uploaded on or before this date (YYYY-MM-DD format).
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
string
Field to sort by. Prefix with
- for descending order.Allowed values: start_date, end_date, created_at, quantity, invoice_idExample: ?sort=-start_dateinteger
default:"1"
Page number for pagination.
integer
default:"50"
Number of items per page (max 100).
Response
array
List of invoice objects.
integer
Count of invoices with
active or uploaded status matching filtersinteger
Count of invoices with
loading or pending status matching filtersinteger
Total number of all invoices matching the filters (all statuses)
integer
Current page number
integer
Number of items per page
string
16-character hex hash of the applied filters. Pass this to the bulk delete by filters endpoint to ensure consistency.
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Invalid or missing API keyRelated Endpoints
Get Invoice
Get a single invoice by ID
Create Invoice
Register a new consumption invoice
Update Invoice
Modify invoice details
Filter Options
Get available filter values for dropdowns