Search.../

deleteCoupon( )

Deletes an existing coupon.

Description

The deleteCoupon() function returns a Promise that resolves when the coupon is successfully deleted.

Syntax

function deleteCoupon(couponId: string): Promise<void>

deleteCoupon Parameters

NAME
TYPE
DESCRIPTION
couponId
string

ID of the coupon to delete.

Returns

Fulfilled - When the coupon is deleted.

Return Type:

Promise<void>

Was this helpful?

Delete a coupon

Copy Code
1import {coupons} from 'wix-marketing-backend';
2
3export function deleteCoupon(couponId) {
4 return coupons.deleteCoupon(couponId);
5}
6
7// Returns a promise that is resolved when
8// the coupon is deleted.