session_redirect when the user must finish a step on an external page. redirect_type says which page it is and what happens to the session.
Supplier sign-in
Tariff connection uses this redirect when the supplier has a DIRECT integration, or a bill upload finds one. The user signs in to the supplier and consents to share their tariff.1
Redirect
redirect_url varies by flow and supplier.redirect_url with a GET, appending the session ID as connect_session. Query parameters you add, such as your own session ID, come back in the callback.Example redirect
2
Callback
After the supplier flow, Flatpeak sends the user to the Resume the session with
connect_url set on the Connect session: your Connect web app, or a deep link into your app. callback_url is different: Connect sends the user there when the whole session ends.Example callback
session_restore:Your POST to Connect
What the user sees
Most users see two pages: Login, then Consent. Some suppliers add steps such as a one-time password, address selection for accounts with several properties, retry and recovery, or tariff selection.- Login
- OTP
- Progress
- Consent

Use a sheet
Open supplier pages in a modal or sheet, which avoids the layout problems a full browser window has around camera cut-outs. See iOS sheets and Android bottom sheets.
Operator sign-up
The Programs page returns this redirect when the user selects a managed tariff. The user reads the offer and signs up on the VPP operator’s site before they consent to anything.- Open
redirect_urlexactly as given. Do not appendconnect_session: the session ID is the only credential on Connect requests, and the VPP operator must not receive it. - Use the system browser, where the VPP operator’s app can take over if the user has it installed. A sheet inside your app cannot hand over to another app.
- Close Connect. The session is over: it recorded no consent and created no enrollment, and there is nothing to restore.
redirect_url carries a signup_reference that lets Flatpeak find the device again later; it holds no device or user data. Once the user has signed up, the VPP operator sends them back to your app by universal link with a new Connect session, where they consent and the enrollment starts. That can be minutes or days after the redirect.



