DIRECT
– Instant, authenticated connectionLIBRARY
– Selection for Flatpeak-maintained libraryMARKET
– Automatically links market-based tariff by geo-locationMANUAL
– Customer input as a last resort
- Simplified flow diagram
- Detailed flow diagram
Connect flow modules
Flatpeak’s Connect flow is split into two modules:1. Main module
This handles:- Postal address input.
- Provider selection.
- Market tariff connection (automatic).
- Library tariffs.
- Market surcharges.
- Manual tariff input.
- Tariff summary display (and edit).
2. Auth module
The user is redirected to this module when they select a provider that has a direct integration with Flatpeak. Highlighted green in the diagram above provides:- Redirect to energy provider auth page (typically in the web)
- Secure login at the provider page.
- Return to the Main module.

Provider login page example
Working with URI parameters in Connect token create
When creating a connect token you need to specifyconnect_web_uri
and callback_uri
:
-
The
connect_web_uri
is used mid-session to redirect user from Auth module (WebView) back into the Main module (your app). -
The
callback_uri
is used at the very end of the entire flow once the customer completes the tariff summary page and taps “Save”, their browsing session is redirected to callback_uri so you can return it to your app or platform.
Option 1. Testing while self-hosting our Web-based reference implementation
Option 2. Your native app using Web-based Connect
Still relying on web Connect (e.g. hosted or forked UI), but want the rest of the experience native:Option 3. Fully Native App (Recommended)
You’ve implemented Connect UI natively:- DIRECT flow redirects back into the app to
connect_web_uri
after login. - After the customer hits “Save” in your native implementation of tariff summary page, you can optionally use
callback_uri
for final navigation—or ignore it entirely.