资源一体化-用户端

资源一体化-用户端


获取用户优惠券详情接口

<p><strong>接口说明 </strong></p> <pre><code>请求接口: /base/app/coupon/info 请求方式: GET 接口说明: 获取用户优惠券详情接口(需登录)</code></pre> <p><strong>请求参数 </strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>长度</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>couponCode</td> <td>是</td> <td>20</td> <td>string</td> <td>优惠券code</td> </tr> </tbody> </table> <p><strong>返回参数</strong></p> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>code</td> <td>string</td> <td>状态值</td> </tr> <tr> <td>msg</td> <td>string</td> <td>返回消息</td> </tr> <tr> <td>data</td> <td>string</td> </tr> <tr> <td>id</td> <td>long</td> <td>用户优惠券id</td> </tr> <tr> <td>couponTemplateId</td> <td>string</td> <td>优惠券模板id</td> </tr> <tr> <td>couponCode</td> <td>string</td> <td>优惠券编码</td> </tr> <tr> <td>couponName</td> <td>string</td> <td>优惠券名称</td> </tr> <tr> <td><strong>couponType</strong></td> <td>int</td> <td>优惠券类型(0内部优惠券,1支付宝兑换券,2优酷会员充值券,3停车券,4智慧菜场)</td> </tr> <tr> <td><strong>sceneType</strong></td> <td>int</td> <td>使用场景类型(0菜市,1社区服务,2线下商家,3电子商城O2O,4电子商城B2C,5厨房,6线下支付,7厨房堂食,8厨房外卖,9停车支付,10智慧菜场)</td> </tr> <tr> <td>valueType</td> <td>int</td> <td>0金额,1折扣</td> </tr> <tr> <td>couponValue</td> <td>decimal</td> <td>如果是金额:抵扣价(单位:元);如果是折扣:折扣(例如6.5折)</td> </tr> <tr> <td>logo</td> <td>string</td> <td>优惠券logo</td> </tr> <tr> <td>validStart</td> <td>date</td> <td>生效时间</td> </tr> <tr> <td>validEnd</td> <td>date</td> <td>失效时间</td> </tr> <tr> <td>usedAt</td> <td>date</td> <td>使用时间</td> </tr> <tr> <td>status</td> <td>date</td> <td>状态(0未使用,1已使用,2已过期,3已占用)</td> </tr> <tr> <td>shopName</td> <td>string</td> <td>核销商户名称</td> </tr> <tr> <td>source</td> <td>int</td> <td>发放来源(0乘车兑换,1活动,2后台发放,3购买会员卡,4积分商城,5签到,6营销策略)</td> </tr> <tr> <td>useInstruction</td> <td>string</td> <td>优惠券使用说明</td> </tr> <tr> <td>shopLimit</td> <td>json</td> <td>适用商家限制json。例子:[{&quot;shopId&quot;: 1,&quot;shopName&quot;:&quot;商家1&quot;}]]</td> </tr> <tr> <td>categoryLimit</td> <td>json</td> <td>适用商品分类限制json。例子:[{&quot;categoryId&quot;: 1,&quot;categoryName&quot;:&quot;商家1&quot;}],[{&quot;categoryId&quot;: 2,&quot;categoryName&quot;:&quot;商家2&quot;}]</td> </tr> <tr> <td>productLimit</td> <td>json</td> <td>适用产品限制json。例子:[{&quot;productId&quot;: 1,&quot;productName&quot;:&quot;商家1&quot;}],[{&quot;productId&quot;: 2,&quot;productName&quot;:&quot;商家2&quot;}]</td> </tr> <tr> <td>extractedLink</td> <td>string</td> <td>商户端核销地址</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "code": "0000", "msg": "操作成功!", "data": { "id": 19, "couponTemplateId": 6, "couponCode": "1255306656703713280", "couponName": "测试商城商品3优惠券", "couponType": 1, "sceneType": 2, "logo": "string", "validStart": "2020-04-28 09:30:44", "validEnd": "2020-05-28 09:30:44", "releaseAt": "2020-04-29 09:23:24", "usedAt": null, "status": 0, "shopName": "", "source": 2, "useInstruction": "使用说明", "shopLimit": "[{\"shopId\": 1, \"shopName\": \"商家1\"}]", "categoryLimit": "[{\"categoryId\": 1, \"categoryName\": \"肉类\"}]", "productLimit": "[{\"productId\": 1, \"productName\": \"猪肉\"}]", "extractedLink": "http://baidu.com" } }</code></pre> <p><strong>接口备注</strong></p>

页面列表

ITEM_HTML