Skip to main content
GET
Get Invoice

Get Invoice

Retrieve detailed information about a specific invoice using its unique identifier. The response shape varies based on the invoice type field (discriminated union).

Request

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Path Parameters

string
required
The unique identifier (UUID) of the invoice to retrieveExample: 550e8400-e29b-41d4-a716-446655440000

Response

The response is a discriminated union based on the type 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, process
number
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, error
number
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 invoice type:

Example

Successful Response

Electricity invoice example:

Common Errors

401 Unauthorized

Cause: Missing or invalid API key
Solution: Verify your API key is valid and active.

404 Not Found

Cause: Invoice not found or doesn’t belong to your organization
Solution: Verify the invoice ID exists and belongs to the organization specified in the header.

422 Validation Error

Cause: Invalid invoice ID format
Solution: Ensure the invoice ID is a valid UUID format.

Use Cases

Check Invoice Emissions by Type

Verify Facility Allocation

List Invoices

Retrieve all invoices with filtering

Update Invoice

Modify invoice details

Delete Invoice

Remove an invoice

Invoices Overview

Learn about the Invoices API