Skip to main content
This page is for energy suppliers. With a DIRECT integration, a customer connects their tariff by signing in with you, and Flatpeak then reads the tariff from your systems. Flatpeak builds the integration against your authentication method and data format; OAuth with long-lived tokens works best. It typically takes 2 to 4 weeks, followed by 2 weeks of testing. To start, contact integrations@flatpeak.com. If you do not integrate, Flatpeak can still list your tariffs in its library.
The endpoints on this page are partner endpoints, which are not in the Energy API reference. Flatpeak gives you credentials for them during onboarding.

Authorize access

1

Receive the redirect

When the customer selects you as their supplier, their app opens your authentication URI with a connect_session, a time-limited token for the session:
2

Get the session context

3

Sign the customer in

Show your own login screen.
4

Ask for consent

Ask the customer to let the company in data.account access their tariff data.
Consent screen naming the company that asks for tariff access

Consent screen

5

Report the outcome

6

Send the customer back

Redirect the browser to connect_url with the connect_session query parameter:

Tariff polling

Flatpeak reads the tariff from your systems with the credentials in auth_data, typically every 1 to 2 days. You set the polling frequency you allow and how tokens renew. Return, in your own format:
  • The customer’s tariff, covering at least the next 24 hours.
  • The contract start date. Flatpeak uses it to backfill tariff history.
  • The contract end date, optional. Flatpeak uses it to remind the customer to reconnect before the tariff expires.