Deletes a loyalty coupon.
The deletion of a loyalty coupon does not impact the functionality of the corresponding coupon itself.
function deleteLoyaltyCoupon(_id: string, revision: string): Promise<void>;
ID of the loyalty coupon to delete.
Revision number, which increments by 1 each time the loyalty coupon is updated.
To prevent conflicting changes, the current revision
must be passed when updating the loyalty coupon.
import { coupons } from "@wix/loyalty";
async function deleteLoyaltyCoupon(id, revision) {
const response = await coupons.deleteLoyaltyCoupon(id, revision);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.