Get Invoice
Get Invoice
Retrieve a specific invoice by its ID with full detail including emissions data
GET
Get Invoice
Get Invoice
Retrieve detailed information about a specific invoice using its unique identifier. The response shape varies based on the invoicetype field (discriminated union).
Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faPath Parameters
The unique identifier (UUID) of the invoice to retrieveExample:
550e8400-e29b-41d4-a716-446655440000Response
The response is a discriminated union based on thetype field. All invoice types share common fields, with additional fields depending on the type.
Common Fields
Unique identifier (UUID) for the invoice
Invoice type that determines the response shapeAvailable values:
heat, electricity, water, recharge, processConsumption amount after facility allocation
Original consumption amount before facility allocation
Facility allocation percentage (0-1)
Current invoice statusAvailable values:
uploaded, loading, active, inactive, review, errorCalculated CO2 equivalent emissions (kg)
CO2 equivalent biomass emissions (kg)
Billing period start date
Billing period end date
Unit of measurement ID
The original quantity before any conversions
The original unit ID before any conversions
Associated facility UUID
UUID of the user who uploaded the invoice
External invoice identifier from the utility provider
CUPS code (for Spanish electricity supply points)
URL to download the linked file
Source invoice UUID (if derived from another invoice)
Whether the invoice is enabled
Timestamp when the invoice was created
Timestamp when the invoice was last updated
The TOC ID
The Invofox integration ID
Facility percentage allocations
Type-Specific Fields
The following fields are included depending on the invoicetype:
| Field | Types | Description |
|---|---|---|
facility_fuel_id | heat, recharge | Fuel type UUID |
custom_emission_factor_id | heat, electricity, recharge | Custom emission factor UUID |
custom_emission_factor | heat, electricity, recharge | Custom emission factor details (object) |
supplier_id | heat, electricity, recharge | Energy supplier UUID |
Example
Successful Response
Electricity invoice example:Common Errors
401 Unauthorized
Cause: Missing or invalid API key404 Not Found
Cause: Invoice not found or doesn’t belong to your organization422 Validation Error
Cause: Invalid invoice ID formatUse Cases
Check Invoice Emissions by Type
Verify Facility Allocation
Related Endpoints
List Invoices
Retrieve all invoices with filtering
Update Invoice
Modify invoice details
Delete Invoice
Remove an invoice
Invoices Overview
Learn about the Invoices API

