Integration Steps

An ordered overview of the integration steps.

EndpointBenefitNotes
bankId
or
openId
Enables a User to verify their identity and login to the app.This step is needed to confirm the identity of the person or company attempting to login and establish a scope for the data they can view.
oauth or API KeyEnables access to the entireData Layer.Any of the supported authorization flows that result in a type of access_token for subsequent api calls is acceptable. Refresh tokens must be able to be used outside of User interactions.

API Key is the easiest to manage and recommended for Organisations who support its use.
Search for accountFetch the accountIdUse the personalNumber as the ssn from a BankId authorization flow after a completed status value shows up from BankId collect.

Use the email after a successful oauth or openId flow.
Get accountPopulates data in the User profile view.Confirms the accountIdis correctly attributed to the User.
Get user roles for accountEnable user management within an Account. Account Owners can manage Guests and other Account Owners.
Get locationsEnables Services provided by the Organisation to be viewed by the Account Owner.

Enables Location data to viewed by Users.
Get agreementsEnables Agreements for a single Service to be viewed by the Account Owner.
Get account invoicesEnables Invoice data for all Services to be viewed by the Account Owner.
Get measurements for serviceEnables Measurements viewing by Users. Inside each object in the services array from Get locations there is a measurementId for each Service used in requesting Get measurements for service.
Get productsEnables Products for each Service to be viewed by Account Owners. Inside each object in the services array from Get locations there is an id for each Service used as the serviceIdin requesting Get products.
Get cost for a serviceEnables the Cost for each Service to be viewed by Accounts.Inside each object in the services array from Get locations there is a costId for each Service used in requesting Get cost for a service.
Get account invoice url or Get account invoice streamEnables Invoice PDF's to be viewed by the Account Owner.Use a invoiceId from the response Get account invoices.
Update userEnables a User to update their phoneNumberand emailAddressvia the app.Inside each object in the response from Get user roles for account there is a user object with an idused as the userIdin requesting Update user.
Add User to accountEnables an Account Ownerto add new Guests to their account.
Report EventAllows Bright Energy to report Events back to the Organisation.Use Search for account to get the accountId used in requesting Report Event.