Deletes an existing coupon.
The deleteCoupon()
function returns a Promise that resolves when the coupon
is successfully deleted.
function deleteCoupon(couponId: string): Promise<void>;
ID of the coupon to delete.
import { coupons } from "wix-marketing-backend";
export function deleteCoupon(couponId) {
return coupons.deleteCoupon(couponId);
}
// Returns a promise that is resolved when
// the coupon is deleted.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.