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.
If you are not storing the opt-in status of customers, you can use Zinrelo's GetUser Javascript function to check if the customer is enrolled in the program or not. Depending on the response from Zinrelo, you can show the opt-in button or the rewards dashboard.

Step 4: Contact Zinrelo to disable auto-enrollment for your program

Contact your customer success manager or write to to disable auto-enrollment for your program.

Did this answer your question?