POST method to create coupon lists.
| 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. |
POST
/v2/account/:account_id/coupon_lists
Accept: application/json
Authorization: Token token={account.secret}
Content-Type: json
{
"name": "Coupon list",
"codes": [
"code_1",
"code_2"
],
"low_limit_notification": 10,
"notification_email": "jhon.doe@cendyn.com"
}
201
{
"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"
}
}