Search...
onCouponDeleted( )
Developer Preview
Triggered when a loyalty coupon is deleted.
Syntax
function wixLoyalty_onCouponDeleted(event: CouponDeleted): void
onCouponDeleted Parameters
NAME
TYPE
DESCRIPTION
event
Optional
CouponDeleted
Returns
This function does not return anything.
Return Type:
void
Was this helpful?
onCouponDeleted example
Copy Code
12 export function wixLoyalty_onCouponDeleted(event) {3 const eventId = event.metadata.id4 const entityId = event.entity._id;5 }67