Skip to main content
Connect returns 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.
Send the user’s browser to 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 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
Resume the session with 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.
Pages vary by supplier. Placeholder names such as Nova Inc are replaced with the business name set in Console → Compliance.

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.
  1. Open redirect_url exactly as given. Do not append connect_session: the session ID is the only credential on Connect requests, and the VPP operator must not receive it.
  2. 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.
  3. 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.