获取优惠券列表
URL地址 | http://www.tpshop.com/index.php?m=Api&c=User&a=getCouponList |
请求方式 | get |
参数列表
参数 | 是否必须 | 说明 |
user_id | 必选 | 用户id |
type | 优惠券类型 | 0: 可用 1:已用,2:过期 |
order_money | 可选 | 返回大于等于订单金额的优惠券,0不做判断 |
token | 必须 | token |
示例
{ "status": 1, "msg": "获取成功", "result": [ { "id": "73", "cid": "3", "type": "4", "uid": "1", "order_id": "0", "use_time": null, "code": "GEwSgt", "send_time": "1450101926", "name": "按用户类型发放", "money": "30.00", "use_end_time": "1449843218", "condition": "100.00" }, { "status": -1, "msg": "参数有误", "result": "" }