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';23export function deleteCoupon(couponId) {4 return coupons.deleteCoupon(couponId);5}67// Returns a promise that is resolved when8// the coupon is deleted.