3.7申请退款接口(不需要审核直接退款)
<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>
<p>加入退款处理结果通知</p>
<p>发起退款的时候传入 notifyUrl ,退款成功后,我们系统会把退款结果推送到这个链接</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>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>