Variable | Type | Description |
---|---|---|
list_id | int|string | The ID of the list to which the coupon belongs |
name | string | The ID of the coupon for which to fetch the data by name |
Parameter | Description |
---|---|
array | Array containing the data of a coupon, by name, from the list |
{ "list_id": 456, "name": "TESTCPNIMPORT25", "expire_type": "never", "import": { "notify_drops_below": 200, "notify_drops_email": [ "email@example.com" ] }, "status": 1, "type": "import", "history": [ { "stamp": 1713972724, "type": "finish_import" }, { "stamp": 1713972648, "type": "start_import" } ], "available_codes": 624, "codes_total": 624, "id": "6629259df174109c812737b5" }
Code | Message | Description |
---|---|---|
407 | Missing required param list_id | list_id param is required |
407 | Missing required param name | name param is required |
1808 | No such coupon with name: %s. | Invalid access to coupon |
{ "err": true, "message": "Missing required param list_id", "code": 407 }
{ "err": true, "message": "Missing required param name", "code": 407 }
{ "err": true, "message": "No such coupon with name: %s", "code": 1808 }