Building tariff settings page in your app
Build a page in your app to enable customers to quickly add, check the status and manage their tariff connections.
Depending on their energy market structure and choices, customers may have contracts with multiple energy providers simultaneously. For instance, they might buy electricity from Company A while paying Company B to transmit that electricity to their home.
Tariff direction and type
To enable any business case, FlatPeak supports four combinations of tariff type and energy transfer direction:
COMMODITY
type represents contract to purchase “electrons”. NON_COMMODITY
type represents the contract to pay for the transfer of those electrons from the power station to the customer’s home.Type/Direction | Description |
---|---|
COMMODITY +IMPORT | The price of the actual imported electricity. It’s essential always to allow your customers to add their commodity import tariff, as this is the most fundamental fee across all markets and regions. |
NON_COMMODITY +IMPORT | The cost of transporting electricity, known as network or grid fees, may be charged separately in many markets. FlatPeak recommends allowing customers to add this tariff, as it affects their total energy cost. |
COMMODITY +EXPORT | The price of exported electricity. You should offer this option if your solution includes energy storage or generation. FlatPeak separates import and export tariffs, as customers may use different providers. |
NON_COMMODITY +EXPORT | The price of transporting electricity from the customer to the grid. FlatPeak disabled this feature as there are no known cases of export transmission fees. |
Setting tariff direction and type in Connect
When you create a connect token, you provide the tariff direction and the tariff type you want this Connect session to work with:
Default tariff settings page
You must choose what combination(s) or tariff types and directions you want to enable your customers to add. Your decision can be based on the type of your service and/or device(s) and where your customers are located.
The simplest option is to let your customers set only the COMMODITY
+IMPORT
combination. You can also let your customers set other combinations. See examples in the tabs below:
On click, start the Connect flow for COMMODITY
+IMPORT
flow.
On click, start the Connect flow for COMMODITY
+IMPORT
flow.
On click, start the Connect flow for COMMODITY
+IMPORT
, COMMODITY
+EXPORT
or NON_COMMODITY
+IMPORT
depending on the customer’s choice.
Tariff settings page with existing tariff connections
To render the tariff settings page in your app, call the location-status API endpoint. The response provides all the data needed to build a settings page similar to the example at the top of this guide.
Disconnecting a tariff without launching Connect
Sometimes you may want to build a function in your app that will enable customers to disconnect the tariff without having to interact with Connect. For this:
Create a Connect token
Create a Connect token with the location_id
where the tariff should be disconnected.
Call Connect without launching UI
Call Connect’s summary_fixed_confirm route and send DISCONNECT
action:
You have now disconnected the IMPORT
tariff from the Location.