FanPoints management
Here we look at how you can manage FanPoints for a user as a Loyalty Program owner.
Configure the client using the configuration guide.
Access the number of FanPoints for a user
As a Loyalty Program owner, you can access the number of FanPoints a user has collected using the following function:
const balance = await client.fanPoints.getBalance('user id');
/** * balance = { * fanPoints: 3465, * monetaryValue: 34.65, * currency: 'chf' * } */