Clone our repo and install the required dependencies
Configure Environment Variables
Launch locally
http://localhost:7070
.Authenticate to access Flatpeak API
account_id:api_key
and make a request to create-a-bearer-token endpoint.Generate a Connect Token
callback_uri
), we recommend using https://webhook.site, but you can use any other service.Open the Connect app with Token
http://localhost:7070?fp_cot=cot_***
. Replace **cot_ with the connect_token
. The resulting URI may look similar to this example:Interact with the Connect flow
Receive callback
callback_uri
you specified:Exchange completed Connect token for Location ID
connect_token
as a reference, call exchange-connect-token endpoint to obtain a location_id
that represents a permanent identifier of a property address in Flatpeak. In the future you will store it in your database in reference to the physical location of your customer’s property.Get tariff rates