
Tariff type + direction
Flatpeak supports three tariff configurations (type and direction):Type/Direction | Description |
---|---|
COMMODITY +IMPORT | Cost of the electricity consumed. Essential to enable this—it’s foundational across all markets. |
COMMODITY +EXPORT | Price for exported electricity. Use this if your users have solar panels or energy storage. |
NON_COMMODITY +IMPORT | Delivery costs (e.g., grid fees). Recommended if your customer pays delivery charges separately. |
Set Direction & Type in Connect
When you create a Connect token, specify tariff direction and type:Example request
Default vs Extended Settings Page
You can choose to implement a simple or advanced tariff settings page, depending on your use case.1. Default: Only IMPORT
(most common)
Provide a single Connect button that initiates:
COMMODITY + IMPORT
2. Extended: IMPORT + EXPORT
(with optional grid fees)
Offer controls for the following flows:
COMMODITY + IMPORT
— required for consumption trackingCOMMODITY + EXPORT
— recommended if the user has solar or storageNON_COMMODITY + IMPORT
— optional; add if your users are in a region with separated grid fees
Handling already-connected tariffs
To render the settings UI showing the current tariff status:- Call the location-status API each time the settings page needs to be displayed.
- This ensures your UI reflects up-to-date connection info and avoids showing stale data.
Disconnecting without UI
If you want to remove a tariff programmatically:1
Create a Connect token
Create a Connect token with the
location_id
where the tariff should be disconnected.2
Call Connect without launching UI
Call Connect’s summary_fixed_confirm route and send
DISCONNECT
action: