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
string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faPath Parameters
string
required
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
string
Unique identifier (UUID) for the invoice
string
Invoice type that determines the response shapeAvailable values:
heat, electricity, water, recharge, processnumber
Consumption amount after facility allocation
number
Original consumption amount before facility allocation
number
Facility allocation percentage (0-1)
string
Current invoice statusAvailable values:
uploaded, loading, active, inactive, review, errornumber
Calculated CO2 equivalent emissions (kg)
number
CO2 equivalent biomass emissions (kg)
datetime
Billing period start date
datetime
Billing period end date
string | null
Unit of measurement UUID
string | null
Associated facility UUID
string | null
UUID of the user who uploaded the invoice
string | null
External invoice identifier from the utility provider
string | null
CUPS code (for Spanish electricity supply points)
string | null
UUID of the linked file (if created via bulk import or PDF upload)
string | null
URL to download the linked file
boolean | null
Whether the invoice is enabled
datetime
Timestamp when the invoice was created
datetime | null
Timestamp when the invoice was last updated
number | null
Total spend before facility allocation (in the invoice currency)
number | null
Total spend after facility allocation
string | null
UUID of the currency unit for spend fields
object | null
User who uploaded the invoice
array[object] | null
Facility percentage allocations
Type-Specific Fields
The following fields are included depending on the invoicetype:
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