cURL
curl --request POST \ --url https://api.energy-hub.io/v1.0.0/link/users/{userId}/vendor-accounts/{vendorAccountId}/tariffs \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data '{ "externalTariffs": [ "8413731391660801" ] }'
201
example
[ { "isLinked": true, "vendor": "TIBBER", "countryCode": "DE", "name": "Tibber Bürgerfelder Str.", "externalId": "8413731391660801", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }]
Link list of tariffs from end user`s vendor account.
API key used for authorization and authentication.
User ID
Vendor account ID
Object for tariff IDs request that should be added to the Energy Hub.
Created
The response is of type object[].
object[]