Fan Points Management

Here we look at how you can manage Fan Points for a user as a loyalty program owner.

  1. Access the Number of Fan Points for a User

Access the Number of Fan Points for a User

As a loyalty program owner, you can access the number of Fan Points a user has collected using the following function:

client.fanPoints.getBalance('user id').then(({ fanPoints }) => {
    console.log("The user has", fanPoints, "fan points");
});