View Coupon Details
Coupon details involves coupon code, recipient details, coupon campaign name, sent date, expiry date and the current status of the coupon. Using this API, you can view the coupon details.
Scope required
- ZohoMarketingautomation.campaign.READ
Other alternative scopes
- 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/coupondetails
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
Parameter | Data type | Description |
type | String | JSON |
couponCode* | String | Get it from recent coupon campaign. |
* - Mandatory parameters
Sample request
Copiedhttps://marketingautomation.zoho.com/api/coupon/coupondetails?type=json&version=1&couponCode=[Couponcode]
Sample Response
Copied{
"response":{
"message":"Success",
"code":"200",
"CouponDetails":{
"usedon":"0",
"campaignname":"Coupon campaign Api Use",
"status":"Active",
"expireon":"08/28/2014 10:00 PM IST",
"senton":"07/30/2014 10:40 AM IST",
"couponprefix":"TESTTSI",
"coupon":"TESTTSIGiCvV",
"couponid":"42660000000513041",
"recipient":"patriciab@zylker.com"
},
"uri":"/api/v1/coupon/coupondetails",
"version":"1"
}
}