Search...
onCouponApplied( )
Triggered when a coupon is applied.
Syntax
function wixMarketing_onCouponApplied(event: CouponAppliedEvent): void
onCouponApplied Parameters
NAME
TYPE
DESCRIPTION
event
Optional
CouponAppliedEvent
Returns
This function does not return anything.
Return Type:
void
Was this helpful?
onCouponApplied example
Copy Code
12 export function wixMarketing_onCouponApplied(event) {3 const eventId = event.metadata.id4 const entityId = event.data.coupon._id;5 }67