Clone our repo and install the required dependencies
Set the environment variables
Run locally
http://localhost:7070
.Obtain a token to access Connect
Run the app
http://localhost:7070?fp_cot=cot_***
. Replace **cot_ with the connect_token
. The resulting URI may look similar to this example:Follow the flow
Receive and process callback
callback_uri
you specified:Exchange completed Connect token for Location ID
connect_token
as a reference, call the exchange-connect-token API endpoint to obtain a location_id
that represents a permanent identifier of your customer’s address in FlatPeak. Store it in your database as a reference to the physical location of your customer’s property.Subscribe to tariff lifecycle webhooks
Let customers view their tariff and change connection