onLoyaltyEarningRuleDeleted( )


Notes:

Triggered when an earning rule is deleted.

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

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

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