新权益开放API文档--1.0(废弃)

烈熊新权益系统


4.6申请售后接口(需要烈熊审核)

<h5>权益卡订单申请售后退款,需要走烈熊系统人工审核,审核通过后会进行退款</h5> <p>路径:/api/afterSales/afterSalesRequest</p> <p>方法: POST</p> <p>header:</p> <table> <thead> <tr> <th>参数名称</th> <th>类型</th> <th>长度限制</th> <th>是否必填</th> <th>介绍</th> </tr> </thead> <tbody> <tr> <td>Authorization</td> <td>String</td> <td></td> <td>是</td> <td>Bearer 客户认证令牌/会员认证令牌</td> </tr> </tbody> </table> <p>请求参数:</p> <table> <thead> <tr> <th>字段名称</th> <th>类型</th> <th>长度限制</th> <th>是否必填</th> <th>介绍</th> </tr> </thead> <tbody> <tr> <td>orderNo</td> <td>String</td> <td>32</td> <td>是</td> <td>烈熊订单编号</td> </tr> <tr> <td>salesDetailId</td> <td>String</td> <td>32</td> <td>是</td> <td>售卡商品id</td> </tr> <tr> <td>afterType</td> <td>int</td> <td>32</td> <td>是</td> <td>退款类型0.退款退卡</td> </tr> <tr> <td>refundNum</td> <td>int</td> <td>11</td> <td>是</td> <td>退货数量(1)</td> </tr> <tr> <td>refundPrice</td> <td>int</td> <td>11</td> <td>是</td> <td>退货金额(单位分)</td> </tr> <tr> <td>afterRemark</td> <td>String</td> <td></td> <td>否</td> <td>退款原因</td> </tr> <tr> <td>notifyUrl</td> <td>String</td> <td></td> <td>是</td> <td>通知推送地址</td> </tr> </tbody> </table> <pre><code class="language-json">{ "orderNo": "烈熊订单id", "salesDetailId": "售卡商品id", "afterType": "0", "refundNum": "1", "refundPrice": "1", "afterRemark": "kehutuikuan", "notifyUrl": "通知推送地址" }</code></pre> <p>返回:</p> <table> <thead> <tr> <th>字段名称</th> <th>类型</th> <th>长度限制</th> <th>介绍</th> </tr> </thead> <tbody> <tr> <td>afterSalesOrderNo</td> <td>String</td> <td></td> <td>烈熊售后单号</td> </tr> </tbody> </table> <pre><code class="language-json">{ "code": "0", "message": "请求成功", "data": { "afterSalesOrderNo": "1502178186748788737" }, "success": true } </code></pre> <p>错误:</p> <table> <thead> <tr> <th style="text-align: left;">codes</th> <th style="text-align: left;">问题描述</th> <th style="text-align: left;">解决</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">401</td> <td style="text-align: left;">Bearer令牌不允许为空/token无效</td> <td style="text-align: left;">请检查Authorization参数</td> </tr> <tr> <td style="text-align: left;">INTERESTS_10045</td> <td style="text-align: left;">已有进行中的售后单</td> <td style="text-align: left;">请检查订单状态</td> </tr> <tr> <td style="text-align: left;">INTERESTS_10044</td> <td style="text-align: left;">订单状态不合法,不能申请售后</td> <td style="text-align: left;">请检查订单状态</td> </tr> <tr> <td style="text-align: left;">INTERESTS_10058</td> <td style="text-align: left;">退款金额错误</td> </tr> <tr> <td style="text-align: left;">400</td> <td style="text-align: left;">缺少参数</td> <td style="text-align: left;">具体内容查阅返回的message字段</td> </tr> </tbody> </table> <p>加入售后状态消息通知接口 注 · 当 notifyUrl 推送url参数不为空时,系统将按照下列格式像目标URL以body体json格式进行数据推送 三方接收到推送消息后,需给烈熊返回标识 success 表示成功接收到数据,就算本次推送完成。</p> <p>推送参数:</p> <table> <thead> <tr> <th>字段名称</th> <th>类型</th> <th>长度限制</th> <th>是否必填</th> <th>介绍</th> </tr> </thead> <tbody> <tr> <td>orderNo</td> <td>String</td> <td>32</td> <td>是</td> <td>烈熊订单编号</td> </tr> <tr> <td>thirdOrderNo</td> <td>String</td> <td>32</td> <td>是</td> <td>第三方订单编号</td> </tr> <tr> <td>afterNo</td> <td>String</td> <td>32</td> <td>是</td> <td>售后单号</td> </tr> <tr> <td>refundNo</td> <td>String</td> <td>11</td> <td>是</td> <td>退款单号</td> </tr> <tr> <td>remark</td> <td>String</td> <td>11</td> <td>是</td> <td>拒绝原因</td> </tr> <tr> <td>pushTime</td> <td>String</td> <td>11</td> <td>推送时间</td> </tr> <tr> <td>applyStatus</td> <td>int</td> <td>11</td> <td>是</td> <td>处理结果,0.同意退款 1.拒绝退款 2.退款成功</td> </tr> </tbody> </table> <pre><code class="language-json">{ "afterNo": "1572137673509298178", "orderNo": "202209200000000000000657", "thirdOrderNo": "c74d00a9-457e-477e-8736-ffce8d3ae5ec", "pushTime": "2022-09-20 16:16:44", "applyStatus": 0 }</code></pre>

页面列表

ITEM_HTML