The recommended approach is to automatically enroll customers in the rewards program. This allows you to engage a larger audience and create a bigger impact through the program. However, if your business requires that customers opt-in for the program themselves, you can set up an explicit opt-in flow.
Step 1: Create a checkbox on the registration form of the website where customers can indicate their desire to join the program.
Step 2: Call Zinrelo's API to enroll customers in the program when they opt-in
The details of the 'CreateUser' API endpoint are available at this link. The customer information will be sent to Zinrelo through the API. When Zinrelo receives the API request, the customer will be enrolled in the program.
Step 3: Provide customers an option to opt-in at a later time
Customers who have not opted-in for the program should still be able to do so later. Create a navigation link in the 'My Account' section to the rewards program. If the customers have opted in, they will be able to view the dashboard here. (To know more about embedding the dashboard check this article). If the customers haven't opted in to the program yet, they should see the same option as shown during the registration process. When they opt-in, call Zinrelo's CreateUser API end point as discussed above.
Step 4: Contact Zinrelo to disable auto-enrollment for your program
Contact your customer success manager or write to firstname.lastname@example.org to disable auto-enrollment for your program.