grantReward

Grant a reward to the connected user.

Description

Grant a specific reward to the connected user.

Parameters

ParameterValuesDescriptionRequired
rewardExternalIdstringId of the reward you are granting to the user.required

Response

Returns a Promise

Code example

splioSDK.grantReward('my-reward-external-id').then(() => {
  console.log('Reward granted !');
}).catch((err) => {
console.log(err.description);
});