πOnBoarding
1. Create Session Token :
First Step When Customer Click On Sign Up or Register You Have To Initialize Session First By Creating Session Token Using The Following API :
post
Authorizations
Header parameters
Accept-LanguageStringOptional
Body
tenantIdstring | nullableOptional
tenantSecretstring | nullableOptional
deviceIdstring | nullableOptional
Responses
200
Success
400
Bad Request
post
POST /api/v1/Auth/GenerateOnboardingSessionToken HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 59
{
"tenantId": "text",
"tenantSecret": "text",
"deviceId": "text"
}
{
"token": "text",
"expirationDate": "2025-06-30T16:22:20.857Z"
}
2. Import eNROLL JS File in index.html :
<script src="eNROLL.min.js"></script>
3. Add Div Element With Specifying Id For This Div
<div id="myDiv">
</div>
4. Initialize eNroll Component Any Where In Your JS File After Document Is Loaded:
eNROLL.init({
elementId:"myDiv", // The Id We Set Before For Our Div
url:"{{environment.url}}", // this parameter is sent to you by email after acceptiong your org
sessionId://Token We Got In Step 1 From The API,
disableTutorials:true, //(optional)this value is to hide and skip tutorials, default value is false.
mainColor: "#FF2255" // (optional) this value of main theme color of plugin will be send in url
secondaryColor:"#FF2255" // (optional) this value of secondry theme color of plugin will be send in url
onExit:(error)=>{ // error type is {message:"string",errorCode:"string"} | null
// define What Happen When User Exit From eNROLL Plugin
},
onSuccess:(data)=>{
// data contain {applicantId:"string"} | null
// after onBoarding success also call onExist
}
});
Last updated