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

烈熊新权益系统


2.6退款接口

<p>路径:/api/salesRefund/salesRefundRequest</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>退货数量</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": "202209220000000000000746", "salesDetailId": "1572046864730546178", "afterType": "0", "refundNum": "1", "refundPrice": "10000", "afterRemark": "kehutuikuan1", "notifyUrl": "https://push.liexiong.net/push/{XXX申请退款}" }</code></pre> <p>返回:</p> <table> <thead> <tr> <th>字段名称</th> <th>类型</th> <th>长度限制</th> <th>介绍</th> </tr> </thead> <tbody> <tr> <td>refundNo</td> <td>String</td> <td></td> <td>烈熊退款单号</td> </tr> </tbody> </table> <pre><code class="language-json">{ "code": "0", "data": { "refundNo": "1572791515808784386" }, "message": "请求成功", "service": "", "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>

页面列表

ITEM_HTML