ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ## 电子券列表 ~~~[api] post:/client/couponlist *int:state=0 #状态,0-未使用,1已使用,2已过期 *int:page=1#页码 *int:limit=10#每页显示个数 <<< success { "code": 0, "info": "成功", "data":[ { "id": 3, "member_id": 439, "coupon_id": 1, "start_date": "2018-11-01", "end_date": "2019-01-01", "create_date": 1543026701, "use_date": 1111, "give_date": 0, "type": 2, "use_id": 0, "receive_id": 0, "evaluation": "", "score": 0, "evaluation_time": 0, "is_read": 0, "coupon_title": "测试电子券测试电子券测试", "deduction": "10.00", "is_self": 0 }, {"id": 2, "member_id": 439, "coupon_id": 1, "start_date": "2018-11-02",…} ] } <<< error ~~~ ## 详情 ~~~[api] post:/client/couponinfo *int:id=1 #会员电子券ID <<< success { "code": 0, "info": "成功", "data":{ "id": 1, "member_id": 439, "coupon_id": 1, "start_date": "2018-11-02", "end_date": "2018-11-24", "create_date": 1543026701, "use_date": 0, "give_date": "2018-11-24 10:31:41", "type": 0, "use_id": 439, "give_id": 0, "receive_id": 442, "evaluation": "", "score": 0, "evaluation_time": 0, "is_read": 1, "come": 0, "user_id": 0, "order_id": 0, "goods_id": 0, "receive_member_info":{ "nickname": "黄明波", "headimgurl": "http://thirdwx.qlogo.cn/mmopen/ajNVdqHZLLChaQIy7oIhickkOCPaSkujDXcWVnBjeqZNg23vR1l6wa1Ht94BzW627MpOTreXxgdeV0MW3zsHTGw/132" }, "couponInfo":{ "title": "测试电子券测试电子券测试", "type": 2, "code": 0, "use_week": "1,2,3", "is_self": 0, "is_giving": 1, "rules": "我是使用规则" } } } <<< error ~~~ ## 自助核销 ~~~[api] post:/client/auditcoupon *int:mem_coupon_id=1 #会员电子券ID *int:shop_id=1 #门店ID <<< success { "code": 0, "info": "成功", "data":{ "mem_coupon_id": "1", "user_id": 0, "create_date": 1543290243, "coupon_id": 1, "id": "2" } } <<< error ~~~ ## 自助核销详情 ~~~[api] post:/client/auditcouponinfo *int:id=1 #核销ID <<< success { "code": 0, "info": "成功", "data":{ "id": 2, "mem_coupon_id": 1, "coupon_id": 1, "create_date": "2018年11月27 11:44:03", "shop_id": 0, "user_id": 0, "coupon_title": "测试电子券测试电子券测试", "shop_name": "" } } <<< error ~~~ ## 评价 ~~~[api] post:/client/evaluacoupon *int:id=1 #会员电子券ID *string:evaluation=内容 #评价内容 *int:score= 5 #评分 <<< success { "code": 0, "info": "成功", "data":{ "id": "2", "evaluation": "非常给力", "score": "5", "evaluation_time": 1543294087 } } <<< error ~~~ ## 赠送电子券 ~~~[api] post:/client/givecoupon *int:id=1 #会员电子券ID <<< success <<< error ~~~ ## 接收电子券 ~~~[api] post:/client/getcoupon *int:id=1 #会员电子券ID *int:code=1234 #验证码 <<< success <<< error ~~~ ## 可核销电子券列表 ~~~[api] post:/client/getauditcoupon <<< success <<< error ~~~ ## 通过门店核销二维码获取门店ID ~~~[api] post:/client/shopid *string:audit_url=门店核销url#门店核销url <<< success { "code": 0, "info": "成功", "data": 1 } <<< error ~~~