Change coupon status - celdotro/marketplace GitHub Wiki
- Change coupon status
celmarket\Campaigns\CampaignsEdit
toggleCouponStatus
- method: Coupons
- action: toggleCouponStatus
- campaignId = campaign's ID
- couponId = coupon's ID
- status = new status
An object with the following attributes
- success = 1 -> operation was successfully executed
https://github.com/celdotro/marketplace_examples/blob/master/Campaigns/13.toggleCouponStatus.php
{
"request": {
"campaignId": 1,
"couponId": 1,
"status": 1
},
"response": {
"success": 1
}
}