Coupon lists

Create

POST method to create coupon lists.

Parameters

Name Description
account_id required Your account unique identifier to access API.
name required Name for the field.
codes required Array with codes, Max: 500
low_limit_notification Send notification email if only x coupons left
notification_email Email to send notification.

Request

Route
POST 
/v2/account/:account_id/coupon_lists
Headers
Accept: application/json 
Authorization: Token token={account.secret}
Content-Type: json
Body
{
  "name": "Coupon list",
  "codes": [
    "code_1",
    "code_2"
  ],
  "low_limit_notification": 10,
  "notification_email": "jhon.doe@cendyn.com"
}

Response

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