Triggered when the points of a loyalty account are adjusted, earned, or redeemed.
function onAccountPointsUpdated(handler: function): void;
handler(event: AccountPointsUpdatedEnvelope): void | Promise<void>
import { accounts } from "@wix/loyalty";
accounts.onAccountPointsUpdated((event) => {
// handle your event here
});