List Invoices
Retrieve all invoices with filtering and pagination
GET
Overview
Retrieves a paginated list of invoices for your organization. Use query parameters to filter by type, status, facility, and date range.Query Parameters
Filter by invoice type. Can include multiple values.Allowed values:
heat, electricity, water, rechargeExample: ?type[]=electricity&type[]=heatFilter by invoice status. Can include multiple values.Allowed values:
uploaded, loading, active, inactive, review, errorExample: ?status[]=active&status[]=reviewFilter by facility IDs. Can include multiple values.Example:
?facility_id[]=550e8400-e29b-41d4-a716-446655440000Filter invoices starting on or after this date (YYYY-MM-DD format).Example:
?start_date=2024-01-01Filter invoices ending on or before this date (YYYY-MM-DD format).Example:
?end_date=2024-12-31Filter by whether emissions have been calculated.Allowed values:
calculated, not_calculatedPartial, case-insensitive match against the invoice number.Example:
?invoice_id=INV-2024Filter by one or more CUPS codes.Example:
?cups[]=ES0021000000000001XXFilter 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 source.Known values:
manual, pdf, bulk_file, datadis. Sending
manual also matches invoices where source is NULL (legacy rows
written before explicit source tracking).Filter invoices uploaded on or after this date (YYYY-MM-DD format).
Filter invoices uploaded on or before this date (YYYY-MM-DD format).
Filter by stationary fuel IDs (natural gas, diesel, biomass, …). Relevant
for
heat invoices.Filter by one or more supply contract IDs.
Field to sort by. Prefix with
- for descending order.Allowed values: start_date, end_date, created_at, quantity, invoice_idExample: ?sort=-start_datePage number for pagination.
Number of items per page (max 100).
Response
List of invoice objects.
Total number of invoices matching the filters.
Current page number.
Number of items per page.
Total number of pages.

