Skip to main content
Query energy invoices — electricity, gas, water, diesel, and other consumption records linked to a facility. Each invoice has quantity, dates, and CO₂e emissions. This covers Scope 1 (stationary combustion) and Scope 2 (purchased energy) data.
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:
Key response fields: 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.
Parameters:

Activity Categories

Example response:
Example prompts:

Workflow

  1. Find facilities — list_facilities to discover facility IDs
  2. List invoices by type — list_invoices with facility_id and invoice_type
  3. Create invoices — create_invoice to add new consumption records
  4. Update invoices — update_invoice to change status, supplier, or toggle calculations
  5. Fix and recalculate — recalculate_invoices to rebuild emissions after a data correction, then list_processing_jobs to confirm it finished
  6. View emissions — get_greenhouse_gas_emissions with category=electricity (or stationary, etc.) for aggregated totals

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