Coupon lists

Update

PUT method to update coupon list.

Parameters

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.

Request

Route
PUT 
/v2/account/:account_id/coupon_lists/:coupon_list_id
Headers
Accept: application/json 
Authorization: Token token={account.secret}
Content-Type: json
Body
{
  "codes": [
    "code_4",
    "code_5"
  ],
  "low_limit_notification": 10,
  "notification_email": "jhon.doe@pushtech.com"
}

Response

Status
200
Body
{
  "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@pushtech.com"
  }
}