Invoices API
The Invoices API allows you to retrieve, update, and delete invoice records for tracking energy consumption emissions. Invoices cover multiple energy sources including electricity, natural gas, fuel deliveries, water, electric vehicle recharging, and industrial processes.GHG Protocol — Multiple ScopesInvoices cover emissions across multiple GHG Protocol scopes:
- Scope 1: Direct emissions from fuel combustion —
heat,recharge, andprocessinvoices - Scope 2: Indirect emissions from purchased energy —
electricityinvoices
Key Features
- Discriminated Response: Response shape varies by invoice type (
heat,electricity,water,recharge,process) - Facility Allocation: View how invoices are allocated across facilities with percentage breakdowns
- CO2e Tracking: View calculated emissions including biomass breakdown for each invoice
- Custom Emission Factors: Support for supplier-specific and custom emission factors
- Multiple Energy Types: Support for electricity, heat, water, recharging, and process invoices
Authentication
All endpoints require authentication using an API key included in thex-api-key header.
Headers
All requests must include:string
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51fastring
required
Your API key for authenticationExample:
sk_live_1234567890abcdefAvailable Endpoints
List Invoices
Retrieve all invoices with filtering and pagination
Get Invoice
Get a specific invoice by ID with full detail
Create Invoice
Register a new consumption invoice
Update Invoice
Modify invoice details
Delete Invoice
Remove an invoice from your organization
Data Model
Invoice Object
The invoice object contains detailed information about an energy or utility invoice. The response is a discriminated union — thetype field determines which additional fields are present:
Invoice Attributes
Type-Specific Fields
Facility Percentage Object
Invoice Types
Status Types
CO2e Calculation
Emissions are calculated based on invoice type and associated emission factors:Electricity (Scope 2)
Heat/Combustion (Scope 1)
Process (Scope 1)
Error Handling
Common HTTP Status Codes
Error Response Format
Use Cases
Track Electricity Consumption
Monitor electricity invoices for Scope 2 reporting:Calculate Scope 1 from Fuel Invoices
Sum up direct emissions from fuel consumption:Related Documentation
Scope 1 & 2 Guide
Complete tutorial for tracking Scope 1 and 2 emissions
Facilities API
Manage facility data
Authentication Guide
Learn how to authenticate API requests
Custom Emission Factors
Create custom emission factors
MCP Tools
Query invoice data from AI assistants via MCP