Production API
Rental options
Read valid Energy amounts, rental durations, and current order-intake availability.
GET
/v1/energy/optionsOn this page
Call this before rendering an order form or cache it for a short period. These values are server-controlled and must not be hard-coded.
Response 200
{"energy_per_portion":65000,"max_energy":1300000,"duration_hours":[1],"intake_enabled":true}
| Field | Type | Description |
|---|---|---|
energy_per_portion |
integer | Size of one Energy portion. |
max_energy |
integer | Maximum Energy in one order. |
duration_hours |
integer[] | Allowed rental durations in hours. |
intake_enabled |
boolean | true while new orders are accepted. |
Client-side validation
energy must be positive, no greater than max_energy, and divisible by energy_per_portion. duration_hours must exactly match an item in the response.
The server remains the source of truth because options can change between this request and order creation.
Errors
Possible statuses are 401, 429, and 503, all using the shared Problem Details format.
Rentron