Search.../

onCouponDeleted( )

Triggered when a coupon is deleted.

Syntax

function wixEcommerceCoupons_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
1
2 export function wixEcommerceCoupons_onCouponDeleted(event) {
3 const eventId = event.metadata.id
4 const entityId = event.entity._id;
5 }
6
7