This recipe explains how to manually update user loyalty points balances (i.e. not as part of a rule completion or spend action; an example use-case is to reset all user point balances to 0).
Loyalty
page from the left-side menu.Update Balances
(this opens the modal for updating user balances and provides a CSV template for uploading balance changes).Add
to queue the balance changes. A rule will be created to represent the queued changes. If it does not appear immediately, refresh the page.Rewards
count to the number of rows in your CSV file. If they match, execution is complete.description
: Explanation for the adjustment (e.g., “Reset balances to zero”).loyaltyCurrencyId
: The ID of the loyalty currency to update.entries
: A list of transactions specifying:
walletAddress
: The wallet of the user whose balance is being adjusted.direction
: Either credit to add points or debit to remove points.amount
: The number of points to credit or debit.