Deletes the specified coupons.
The bulkDeleteCoupons()
function returns a Promise that resolves when the coupons are deleted.
You can only call this method when authenticated as a Wix app or Wix user identity.
function bulkDeleteCoupons(
ids: Array<string>,
): Promise<BulkDeleteCouponsResponse>;
IDs of coupons to delete.
import { coupons } from "@wix/marketing";
async function bulkDeleteCoupons(ids) {
const response = await coupons.bulkDeleteCoupons(ids);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.