PUT method to update coupon list.
Name | Description |
---|---|
account_id required | Your account unique identifier to access API. |
coupon_list_id required | Id of coupon list |
codes | Array with codes, Max:500 |
low_limit_notification | Send notification email if only x coupons left |
notification_email | Email to send notification. |
PUT
/v2/account/:account_id/coupon_lists/:coupon_list_id
Accept: application/json
Authorization: Token token={account.secret}
Content-Type: json
{
"codes": [
"code_4",
"code_5"
],
"low_limit_notification": 10,
"notification_email": "jhon.doe@cendyn.com"
}
200
{
"coupon_list": {
"_id": "5853d8c2edb7aacab9000045",
"name": "Coupon list",
"total_coupons": 4,
"used_coupons": 0,
"pending_coupons": 4,
"redeem_coupons": 0,
"low_limit_notification": 10,
"notification_email": "jhon.doe@cendyn.com"
}
}