Skip to main content

Manage Energy Contracts in Lumenaza

This guide covers the full lifecycle of energy contracts in Lumenaza — from listing and inspecting contracts through to switching products, updating installments, terminating, revoking, and linking related contracts. Base URLs All requests require an Authorization: Bearer <token> header.

1. List Contracts

Retrieve all contract IDs associated with a consumer or producer.
Response
For producers, replace /consumers/ with /producers/ in the path.

2. Get Contract Details

Fetch the full details of a specific contract.
Key response fields Example response

3. Switch a Product

Move a contract to a different product (tariff) from a future date. This endpoint is only available for contracts in closed_join status. The valid_from date must be the first day of a future month.
Request body Example response

4. Update Installment Amount

Adjust the regular installment (advance payment) for a contract. You can specify the amount either in cents per month or in kWh per year — Lumenaza will calculate the equivalent.
This sets the monthly installment to €85.00.

5. Terminate a Contract

Submit a termination request for a contract.
Request body Termination reason codes Successful response
If the requested date is too early (HTTP 400)
Use the returned possible_termination_date value to retry the request with a valid date.

6. Revoke a Contract

Cancel a contract registration during the permitted revocation window.
Revocation is only possible within the revocation window:
  • Within 14 days of the contract registration date, or
  • At least 8 days before the scheduled delivery start date.
Requests outside this window will be rejected.

Associate two contracts with each other to model real-world relationships such as shared billing, joint termination, or private/business complements.
Supported relationship types