Create a user, location and device, connect a tariff through Connect, and read prices.
This guide takes you from an API key to the prices for one device. The examples use curl.
1
Authenticate
Copy your Account ID and secret key from Console > API Keys. Use a Live mode key. If you have no account, create one, then contact support to activate your trial.Base64 encode account_id:secret_key and create a token. The token lasts one hour.
Create a device with the location_id and a device_type: BATTERY_STORAGE, ELECTRIC_VEHICLE, EV_CHARGER, AIR_CONDITIONER, HEAT_PUMP, WATER_HEATER, PV_SYSTEM, POWER_GENERATOR or OTHER.
The user picks their supplier, signs in, grants access to their tariff and returns to your app. A session expires after 48 hours and launches Connect once, so create a new one for every launch.
Connect in Tariff mode
Use your own account with a supported supplier. To test the supplier login, pick one with a Direct connection, or switch to a test mode key and use the test supplier Antarctic Energy.