Public API action methods
This will cover all the posting data Javascript methods of the joyInstance
object. These methods will take action on behalf of the current user such as: redeeming points, and getting referral links.
Redeem a program
This method will call an API request to redeem the customer balance for a coupon. This will take 2 params programId
and points
(optional). With a program like: "Get 10% off for 100 points" then it would not need the point parameter. For dynamic redeeming programs, it will need the amount of points that customers want to redeem.
Sample response:
Generate referral link
This method will generate the referral link for the customer by their email. This will only create a new link if the customer matching the email has not created one. If not, it will return the existing referral link.
Sample response:
Update date of birth
Our app stores customer birthdays in the format: DD/MM. You can update that on behalf of the logged-in user.
Sample response:
Last updated