Skip to main content
PATCH
Update Invoice
← Invoices API 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.Retrieve available options from GET /v1/facilities
UUID
ID of the energy supplier.Retrieve available options from GET /api/v1/suppliers — electricity and energy suppliers
UUID
ID of an existing refrigerant gas for a recharge invoice.
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/{id} 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)

422 Refrigerant Fuel Not Found

Cause: refrigerant_fuel_id does not reference an existing refrigerant gas.

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