GET
/
v1.0.0
/
users
/
{userId}
/
tariffs
/
{tariffId}
curl --request GET \
  --url https://api.energy-hub.io/v1.0.0/users/{userId}/tariffs/{tariffId} \
  --header 'X-API-KEY: <api-key>'
{
  "locationId": "7364fc92-20e1-4033-ac18-cb19c35e97e0",
  "isOnline": true,
  "id": "6eb5497d-c6bb-4290-84ef-4409fe9501f1",
  "userId": "896f9d5a-b618-48a2-98ae-957059bf1bc9",
  "staticData": {
    "lastUpdated": "2023-11-07T05:31:56Z",
    "vendor": "TIBBER",
    "countryCode": "DE",
    "name": "Tibber Bürgerfelder Str.",
    "currency": "EUR"
  }
}

Authorizations

X-API-KEY
string
header
required

API key used for authorization and authentication.

Path Parameters

userId
string
required

User ID

tariffId
string
required

Tariff ID

Response

200
application/json
Successful operation

Object of tariff response.

isOnline
boolean
required

Indicates if the tariff is reachable trough the vendor system.

Example:

true

id
string
required

The ID of the tariff.

Example:

"6eb5497d-c6bb-4290-84ef-4409fe9501f1"

userId
string
required

The ID of the user.

Example:

"896f9d5a-b618-48a2-98ae-957059bf1bc9"

staticData
object
required

Object of static data of a tariff.

locationId
string

The location ID of the tariff.

Example:

"7364fc92-20e1-4033-ac18-cb19c35e97e0"