Sofar logo
Sofar logo
Api
Activate a license POSTClaim a license for a controller POSTGet licenses linked to a controller by nodeId GETGet licenses for a customer GET
License

Claim a license for a controller POST

Link a license to a controller by creating an entry in license_datalink

Get licenses for a customer GET

Retrieve all licenses associated with a customer through their orders

GET
/v1/license/controller/{nodeId}

Retrieve all licenses that are linked to a specific controller identified by its nodeId

Authorization

accessBearerAuth
AuthorizationBearer <token>

In the value field below, fill in the access token. It has a 10 minutes validity period. A valid token can be obtained via the /accesstoken endpoint (call), AFTER authorization with refreshBearerAuth and the refresh token.

In: header

Path Parameters

nodeId*string

The nodeId of the controller

Length1 <= length

Response Body

application/json

application/json

application/json

curl -X GET "https://api.eniris.be/v1/license/controller/string"
{
  "licenses": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "key": "string",
      "gridKw": null,
      "solarKw": null,
      "batteryKw": null,
      "evKw": null,
      "creationDate": "2019-08-24T14:15:22Z",
      "activationDate": null,
      "duration": 0,
      "deactivationDate": null,
      "type": "residential"
    }
  ]
}
{
  "statusCode": 401,
  "error": "Unauthorized",
  "message": "Failed to verify token"
}
{
  "statusCode": 404,
  "error": "Not Found",
  "message": "Resource not found"
}