cURL
curl --request POST \ --url https://api.energy-hub.io/v1.0.0/link/users/{userId}/vendor-accounts/{vendorAccountId}/vehicles \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data '{ "externalVehicles": [ "8413731391660801" ] }'
201
example
[ { "isLinked": true, "vendor": "TESLA", "name": "My Tesla", "externalId": "8413731391660801", "vin": "1XKAD29X0KS502460", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }]
Connects the provided list of vehicles from the vendor account to the Energy Hub Alliance.
TESLA
MERCEDES
BMW
MINI
VW
AUDI
SKODA
VOLVO
CUPRA