1运营工具-现金券查询.md 2.0 KB

#1现金券查询

查询用户已有的现金券。

请求

URI

/sbl/couponuser/list/v1
POST

参数

    String key;            登录标识 
    String phone;            用户手机号  
    String page;            分页页码数 
    String expired;            过期标识(1,过期;0未过期)  

##响应 用户手机号绑定的可用现金券,包括已过期和未过期

状态码(code)

500        未处理的异常
600        无效的手机号标识
10004       需要登录

数据范例

{
    "data": {
        "list": [
            {
                "id": 79,
                "coupon_id": 10,
                "phone": "18702019482",
                "coupon_code": "CEF2290B5836828946E8D8CF9D22ECC8214510073504555",
                "coupon_name": "coupon50",
                "coupon_desc": "facaifacai",
                "coupon_price": 100,
                "user_id": 1000250,
                "user_name": "ren3566",
                "create_time": "2015-12-25 09:35:50",
                "end_time": "2017-01-01 00:00:00",
                "consume_time": "2015-12-25 09:39:57",
                "order_no": null,
                "order_price": 0.01,
                "create_from": 1,
                "status": 1,
                "expired": 0
            },
            {
                "id": 4,
                "coupon_id": 4,
                "phone": "18702019482",
                "coupon_code": "C00DFSE051151217163851",
                "coupon_name": "coupon50",
                "coupon_desc": "happy holiday!",
                "coupon_price": 50,
                "user_id": 1000250,
                "user_name": null,
                "create_time": "2015-12-18 14:19:07",
                "end_time": "2016-03-18 00:00:00",
                "consume_time": "2015-12-29 17:54:26",
                "order_no": null,
                "order_price": null,
                "create_from": 1,
                "status": 1,
                "expired": 0
            }
        ]
    },
    "msg": "",
    "code": 200
}