The Loyalty Accounts API allows you to create and manage your customer loyalty accounts.
With the Loyalty Accounts API, you can:
To use the Loyalty Accounts API, import { accounts }
from the wix-loyalty.v2
module.
It’s important to note the following points before starting to code:
Functions in the Loyalty Accounts API are restricted and only run if you elevate permissions using the wix-auth
elevate()
function.
Warning: Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.