| Variable | Type | Description |
|---|---|---|
| list_id | int|string | The ID of the list to which the coupon belongs |
| coupon_id | string | The ID of the coupon for which to clear codes |
| Parameter | Description |
|---|---|
| boolean | True if the codes clearing process was scheduled, False otherwise |
true | Code | Message | Description |
|---|---|---|
| 407 | Missing required param list_id | list_id param is required |
| 407 | Missing required param coupon_id | coupon_id param is required |
| 101 | Not allowed for list_id = %s | Invalid access to list_id |
| 101 | No such coupon with ID: %s | No such coupon with ID: %s |
{ "err": true, "message": "Missing required param list_id", "code": 407 }
{ "err": true, "message": "Missing required param coupon_id", "code": 407 }
{ "err": true, "message": "No such coupon with ID: %s", "code": 15002 }
{ "err": true, "message": "There is already an operation running for this coupon: clear_queue", "code": 15004 }