Coupon lists

Redeem code

PUT method to redeem code.

Parameters

Name Description
account_id required Your account unique identifier to access API.
code required Coupon code redeemed
contact_id Contact ID
campaign_id Campaign ID

Request

Route
PUT 
/v2/account/:account_id/coupon_lists/redeem
Headers
Accept: application/json 
Authorization: Token token={account.secret}
Content-Type: json
Body
{
  "code": "code_4",
  "contact_id": ":contact_id:",
  "campaign_id": ":campaign_id:"
}

Response

Status
200
Body
{
  "coupon_list": {
    "_id": "5853d8c2edb7aacab9000045",
    "name": "Coupon list",
    "total_coupons": 2,
    "used_coupons": 0,
    "pending_coupons": 1,
    "redeem_coupons": 1,
    "low_limit_notification": 10,
    "notification_email": "jhon.doe@cendyn.com"
  }
}