onAccountUpdated( )


Notes:

Triggered when a loyalty account is updated, including when points are adjusted, earned, or redeemed.

Permissions
Manage Loyalty
Read Loyalty
Learn more about app permissions.
Method Declaration
Copy
function onAccountUpdated(handler: function): void;
Method Parameters
handlerfunction

handler(event: AccountUpdatedEnvelope): void | Promise<void>

JavaScript
import { accounts } from "@wix/loyalty"; accounts.onAccountUpdated((event) => { // handle your event here });
Did this help?