Update Invoice
Update Invoice
Update an existing invoice
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_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faPath Parameters
UUID
required
The unique identifier of the invoice to update.Example:
550e8400-e29b-41d4-a716-446655440000Body
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, errorstring
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 processstring
Invoice status:
uploaded, loading, active, inactive, review, or errorstring | 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 key403 Forbidden
Cause: The invoice does not belong to the specified organization404 Not Found
Cause: No invoice exists with the given ID422 Validation Error
Cause: Invalid field values in the request body (e.g. unknown status)Related Endpoints
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