Change Coupon Status

Users can change the status of a coupon code using this API.

Scope required

  • ZohoMarketingAutomation.campaign.UPDATE

Other alternative scopes

  • ZohoMarketingAutomation.campaign.CREATE-UPDATE (CREATE + UPDATE)
  • ZohoMarketingAutomation.campaign.WRITE (CREATE + UPDATE + DELETE)
  • ZohoMarketingAutomation.campaign.ALL (CREATE + UPDATE + DELETE + READ)

Header:

Authorization: Zoho-oauthtoken <access_token>

Request type:

  • GET/POST

Request URL

https://marketingautomation.zoho.com/api/v1/coupon/changestatus

API Limit

  • Duration: 10 mins
  • Number of calls: 100
  • Lock Period: 30 mins

You can send 100 API calls per 10 minutes. If you hit this limit, you can't use this API for the next 30 minutes due to security reasons, but you can still use other APIs if their lock period hasn’t been reached.

List of parameters

ParameterData type              Description                                                                    
typeString JSON
couponCode*StringGet it from recent coupon campaign.

* - Mandatory Parameters

Sample request

Copiedhttps://marketingautomation.zoho.com/api/v1/coupon/changestatus?type=json&changeStatus=used&couponCode=[CouponCode]

Sample Response

Copied{
   "response": {
     "message": "Coupon status changed to 'Used'",
     "code": "200",
     "uri": "/api/coupon/changestatus",
     "version": "1"
   }
 }