End-user app design
Commissioning
POST /v1/commission
with the site and device info. The response will contain information about which programs the device is eligible to participate in, and, if the device can be automatically enrolled, information about the newly created enrollment.INFO
Option 1: Embed our whitelabel portal
How it works
Name | Description |
---|---|
token | A session token obtained by calling POST /v1/sessions |
https://<your-custom-subdomain>.flip.energy/auth/session_token?token={token}
Available Branding Parameters
alwaysShowBackButton
: Determines whether the back button is always visible. By default, the back button is shown on mobile and hidden on desktop. When set to true, the back button is displayed on both mobile and desktop platforms.faviconFileName
: Custom favicon displayed in the browser tab.fontName
: Primary font used throughout the app.logoFileName
: logo displayed in the app header.primaryButtonBackgroundColor
: Background color for primary action buttons.primaryButtonBorderColor
: Border color for primary action buttons.primaryButtonTextColor
: Text color for primary action buttons.primaryTextColor
: Default text color used in the app.secondaryButtonBackgroundColor
: Background color for secondary action buttons.secondaryButtonBorderColor
: Border color for secondary action buttons.secondaryButtonTextColor
: Text color for secondary action buttons.secondaryTextColor
: Secondary text color used in the app.Option 2: Build it yourself
TIP
VPP tab
TIP
GET /v1/site/{siteId}/enrollments
with the site ID. If the response contains enrollment info, the user is enrolled and you should display the Manage enrollment
flow.GET /v1/site/{siteId}/programs
with the homeowner's zip code and device type. If the response contains program info, programs are available and you should display the Program enrollment
flow.TIP
Program enrollment
Enroll
button.Enroll
, you should call the POST /v1/site/{siteId}/enrollments
endpoint with the site, program and appropriate device IDs. The enrollment will be set as PENDING
, which could take a few days depending on the program. In the meantime, users should be given an option to cancel their enrollment via DEL /v1/site/{siteId}/enrollments/{id}
.WARNING
PATCH /v1/sites/{id}
.Manage enrollment
ACTIVE
state, they are officially enrolled in a program. They should be able to do the following:See past and upcoming events
GET /v1/site/{siteId}/events
endpoint.Update participation in current and upcoming events
IN_PROGRESS
or UPCOMING
state, users have the option to change their participation. They can either opt-out of the event, or update their reserve level, just for this event. To do so, use the PATCH /v1/site/{siteId}/event/{id}
endpoint. If the event-specific reserve level in unset, it will default to that set by the program first, or otherwise the one set by the user.Unenroll entirely from the program
DEL /v1/site/{siteId}/enrollments/{id}
. Note that some programs have minimum time commitments, and therefore unenrollment might fail. Conversedly, they might be able to unenroll, but might be charged a penalty by the utility.