Both
facility_id and invoice_type are required. Call list_facilities first to discover facility IDs, then query invoices by type.list_invoices
List energy invoices for a specific facility filtered by type.
Parameters:
Invoice Types
Example response:
Example prompts:
create_invoice
Create a new energy invoice for a facility. The invoice is allocated 100% to the specified facility.
Parameters:
Example prompts:
update_invoice
Update an existing invoice. Only provided fields are changed (partial update).
Parameters:
Example prompts:
recalculate_invoices
Enqueue recalculation of one or more activity categories for a set of invoices. Use this to force emissions to be rebuilt after a data fix (e.g. a corrected emission factor) without waiting for the invoice to be re-uploaded.
All invoice_ids must belong to the same organization and share a single supported invoice type (heat or electricity); ids outside the caller’s organization are silently dropped. Recalculation runs asynchronously — the response returns processing_job_ids (one per activity_category); poll list_processing_jobs for progress and per-record failures.
This endpoint is scoped to one organization per call. To fix the same issue across multiple organizations, call
recalculate_invoices once per organization.Activity Categories
Example response:
Workflow
- Find facilities —
list_facilitiesto discover facility IDs - List invoices by type —
list_invoiceswithfacility_idandinvoice_type - Create invoices —
create_invoiceto add new consumption records - Update invoices —
update_invoiceto change status, supplier, or toggle calculations - Fix and recalculate —
recalculate_invoicesto rebuild emissions after a data correction, thenlist_processing_jobsto confirm it finished - View emissions —
get_greenhouse_gas_emissionswithcategory=electricity(orstationary, etc.) for aggregated totals
Related
API: List Invoices
REST API equivalent with additional filters
Facilities
Find facility IDs to query invoices
Emissions
Aggregated Scope 1 & 2 emissions
CLI
Manage invoices from the command line