Skip to main content
PATCH
Update Invoice

Update Invoice

Updates an existing invoice with the provided fields. This is a partial update (PATCH), meaning only the fields included in the request body will be modified.

Request

Headers

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

Path Parameters

UUID
required
The unique identifier of the invoice to update.Example: 550e8400-e29b-41d4-a716-446655440000

Body

UUID
ID of the user who uploaded the invoice.
UUID
ID of the facility to associate with this invoice.
UUID
ID of the energy supplier.
string
Invoice status.Allowed values: uploaded, loading, active, inactive, review, error
string
Invoice number/identifier from the utility provider.
string
CUPS code for electricity invoices (Spanish market).
boolean
Whether the invoice is enabled and included in emission calculations.
boolean
Whether this is a self-consumption invoice (electricity only).

Response

Returns a lightweight confirmation with core invoice fields. Use GET /v1/invoices/ for the full detail view.
string
UUID of the invoice
string
Invoice type: electricity, heat, water, recharge, or process
string
Invoice status: uploaded, loading, active, inactive, review, or error
string | null
UUID of the associated facility
string | null
UUID of the user who uploaded the invoice
string | null
UUID of the energy supplier
string | null
Invoice number/identifier from the utility provider
string | null
CUPS code for electricity invoices (Spanish market)
boolean | null
Whether the invoice is enabled and included in calculations
boolean | null
Whether this is a self-consumption invoice (electricity only)

Example

Successful Response

Common Errors

401 Unauthorized

Cause: Missing or invalid API key

403 Forbidden

Cause: The invoice does not belong to the specified organization

404 Not Found

Cause: No invoice exists with the given ID

422 Validation Error

Cause: Invalid field values in the request body (e.g. unknown status)

Get Invoice

Get a single invoice by ID

List Invoices

Retrieve all invoices with filtering

Delete Invoice

Remove an invoice

Recalculate

Recalculate emissions for invoices