You remove a coupon or coupon batch from one or more promotions by issuing a DELETE request:
To remove a coupon from one or more promotions, issue a DELETE request to
/ccadmin/v1/claimables/{id}
.To remove a coupon bath from one or more promotions, issue a DELETE request to
/ccadmin/v1/couponBatches/{id}
.
The body of the request must include the IDs for the promotions to remove the coupon from. If the coupon is still associated with one or more promotions after you issue the DELETE request, it is not deleted but is no longer associated with the promotions you specified in the request body. If the coupon is no longer associated with any promotions, it is deleted. If you remove all a promotion’s coupons and do not add another, shoppers will never be able to claim the promotion; it is automatically disabled until you associate it with at least one coupon or coupon batch and then re-enable it in one of the following ways:
With the API: Issue a PUT request to either
/ccadmin/v1/promotions/{id}
whose body includes"enabled": true
.In the UI: On the Marketing tab, click the name of the promotion and on its details page, select the Enabled checkbox.
The following example removes the coupon FreeSummer
from the promotion whose ID is promo10001
:
DELETE /ccadmin/v1/claimables/FreeSummer?promotionId=promo10001
The following example removes the coupon batch SAVE4e49eON50
from the promotion whose ID is promo10007
:
DELETE /ccadmin/v1/couponBatches/SAVE4e49eON50?promotionId=promo10007