Electron
Facilitates seamless management of electricity related services.
Endpoints
Contract Management
Register Electricity Contract
Register an electricity contract for a specific customer living in a specific property.
POST https://<API_SERVER_URL>/electron/v1/contract/registration
Headers
Authorization*
string
The bearer authentication header with value "Bearer <YOUR_ACCESS_TOKEN>"
Content-Type*
string
The content type with value "application/json"
Request Body
curl --request POST \
--url https://<API_SERVER_URL>/electron/v1/contract/registration \
--header 'Authorization: Bearer eyJhbGciOi...' \
--header 'Content-Type: application/json' \
--data '{
"customer": {
"id": "66e58007e78e7610e1a2b755",
"email": "[email protected]",
"first_name": "first_name",
"last_name": "last_name",
"phone": "0123456789",
"soc_id": "19840613123"
},
"property": {
"id": "66ec3f54e78e7610e1a2dd70",
"address": "address",
"city": "city",
"zip_code": "12345",
"property_number": "1305"
},
"poa": {
"file_base64": "CiAgICAgIFNp...",
"file_extension": "pdf",
"type": "SWITCH"
}
}'Get Contract Details
Returns details of a specific contract.
GET https://<API_SERVER_URL>/electron/v1/contract/{id}/details
Path Parameters
id*
string
Unique contract identifier
Headers
Authorization*
string
The bearer authentication header with value "Bearer <YOUR_ACCESS_TOKEN>"
Content-Type*
string
The content type with value "application/json"
Invoice Management
Get Invoices
Collects the list of monthly invoices that belongs to a specific customer living in a specific property.
GET https://<API_SERVER_URL>/electron/v1/invoice
Query Parameters
from_date*
string
Filter result by period starting from this date (YYYY-MM-DD)
to_date
string
Filter result by period ending this date (YYYY-MM-DD). If not specified the result includes only invoice issued for <from_date>
customer_id*
string
Unique customer identifier
property_id*
string
Unique property identifier
Headers
Content-Type*
string
The content type with value "application/json"
Authorization*
string
The bearer authentication header with value "Bearer <YOUR_ACCESS_TOKEN>"
Get Invoice Details
Returns details of a specific invoice.
GET https://<API_SERVER_URL>/electron/v1/invoice/{id}/details
Path Parameters
id*
string
Unique invoice identifier
Headers
Authorization*
string
The bearer authentication header with value "Bearer <YOUR_ACCESS_TOKEN>"
Content-Type*
string
The content type with value "application/json"
Consumption Statistics
Get Hourly Consumption
Collects the list of hourly consumption for a specific date.
GET https://<API_SERVER_URL>/electron/v1/property/<property_id>/consumption/hourly
Query Parameters
from_date*
string
Limit result to starting from this date, inclusive. Format YYYY-MM-DD
to_date
String
Limit result to ending at this date, exclusive. Format YYYY-MM-DD
Headers
Authorization*
string
The bearer authentication header with value "Bearer <YOUR_ACCESS_TOKEN>"
Content-Type*
string
The content type with value "application/json"
Last updated