Skip to main content
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_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Query Parameters

uuid
required
UUID of the facility to retrieve invoices forExample: ?facility_id=660e8400-e29b-41d4-a716-446655440000
string
required
Invoice type to retrieveAllowed values: heat, electricity, water, recharge, processExample: ?filters=electricity
string[]
Filter by invoice status. Can include multiple values.Allowed values: uploaded, loading, active, inactive, review, errorExample: ?status[]=active&status[]=review
date
Filter invoices starting on or after this date (YYYY-MM-DD format).Example: ?start_date=2024-01-01
date
Filter invoices ending on or before this date (YYYY-MM-DD format).Example: ?end_date=2024-12-31
string
Filter by whether emissions have been calculated.Allowed values: calculated, not_calculated
string
Partial, case-insensitive match against the invoice number.Example: ?invoice_id=INV-2024
string[]
Filter by one or more CUPS codes.Example: ?cups[]=ES0021000000000001XX
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 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, false
uuid
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_date
integer
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 filters
integer
Count of invoices with loading or pending status matching filters
integer
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 key

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