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