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

Name
Type
Description

Authorization*

string

The bearer authentication header with value "Bearer <YOUR_ACCESS_TOKEN>"

Content-Type*

string

The content type with value "application/json"

Request Body

Name
Type
Description

customer*

Customer

Customer details. Refer to Customer

property*

Property

Property details. Refer to Property

poa*

PowerOfAttorney

Power of attorney details. Refer to PowerOfAttorney

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"
  }
}'
ContractRegistrationResponse

Get Contract Details

Returns details of a specific contract.

GET https://<API_SERVER_URL>/electron/v1/contract/{id}/details

Path Parameters

Name
Type
Description

id*

string

Unique contract identifier

Headers

Name
Type
Description

Authorization*

string

The bearer authentication header with value "Bearer <YOUR_ACCESS_TOKEN>"

Content-Type*

string

The content type with value "application/json"

ContractDetailsResponse

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

Name
Type
Description

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

Name
Type
Description

Content-Type*

string

The content type with value "application/json"

Authorization*

string

The bearer authentication header with value "Bearer <YOUR_ACCESS_TOKEN>"

InvoiceResponse

Get Invoice Details

Returns details of a specific invoice.

GET https://<API_SERVER_URL>/electron/v1/invoice/{id}/details

Path Parameters

Name
Type
Description

id*

string

Unique invoice identifier

Headers

Name
Type
Description

Authorization*

string

The bearer authentication header with value "Bearer <YOUR_ACCESS_TOKEN>"

Content-Type*

string

The content type with value "application/json"

InvoiceDetailsResponse

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

Name
Type
Description

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

Name
Type
Description

Authorization*

string

The bearer authentication header with value "Bearer <YOUR_ACCESS_TOKEN>"

Content-Type*

string

The content type with value "application/json"

HourlyConsumptionResponse

Last updated