5.5后支付权益卡退款接口
<p>5.5后付费权益卡退款接口</p>
<p>POST /interests-open-api/postPay/refund</p>
<p>> Body 请求参数</p>
<pre><code>{
&quot;orderNo&quot;: &quot;202209220000000000000746&quot;,
&quot;salesDetailId&quot;: &quot;1572046864730546178&quot;,
&quot;afterType&quot;: &quot;0&quot;,
&quot;refundNum&quot;: &quot;1&quot;,
&quot;refundPrice&quot;: &quot;1&quot;,
&quot;afterRemark&quot;: &quot;请求接口退款&quot;
}</code></pre>
<h3>请求参数</h3>
<p>header:</p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>类型</th>
<th>长度限制</th>
<th>是否必填</th>
<th>介绍</th>
</tr>
</thead>
<tbody>
<tr>
<td>CustomerId</td>
<td>String</td>
<td></td>
<td>是</td>
<td>客户ID</td>
</tr>
<tr>
<td>Sign</td>
<td>String</td>
<td></td>
<td>是</td>
<td>MD5(appSecret+orderNo)转Hex十六进制字符转大写字符</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>名称</th>
<th>位置</th>
<th>类型</th>
<th>必选</th>
<th>中文名</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>body</td>
<td>body</td>
<td>object</td>
<td>否</td>
<td>none</td>
</tr>
<tr>
<td>» orderNo</td>
<td>body</td>
<td>string</td>
<td>是</td>
<td>平台权益卡订单号</td>
<td>none</td>
</tr>
<tr>
<td>» salesDetailId</td>
<td>body</td>
<td>string</td>
<td>是</td>
<td>权益卡商品编号</td>
<td>none</td>
</tr>
<tr>
<td>» afterType</td>
<td>body</td>
<td>integer</td>
<td>是</td>
<td>退款类型0.退款退卡</td>
<td>退款退卡(目前仅支持0.退款退卡)</td>
</tr>
<tr>
<td>» refundNum</td>
<td>body</td>
<td>integer</td>
<td>是</td>
<td>退货数量</td>
<td>仅支持默认值:1</td>
</tr>
<tr>
<td>» refundPrice</td>
<td>body</td>
<td>integer</td>
<td>否</td>
<td>退款金额</td>
<td>单位(分)(扣费成功订单必传,未扣费订单不传,仅支持全额退款)</td>
</tr>
<tr>
<td>» afterRemark</td>
<td>body</td>
<td>string</td>
<td>否</td>
<td>退款原因</td>
<td>none</td>
</tr>
</tbody>
</table>
<p>> 返回示例
>
> 成功</p>
<pre><code>{
&quot;code&quot;: &quot;0&quot;,
&quot;data&quot;: {
&quot;refundNo&quot;: &quot;1572791515808784386&quot;
},
&quot;message&quot;: &quot;请求成功&quot;,
&quot;service&quot;: &quot;&quot;,
&quot;success&quot;: true
}</code></pre>
<h3>返回结果</h3>
<table>
<thead>
<tr>
<th>状态码</th>
<th>状态码含义</th>
<th>说明</th>
<th>数据模型</th>
</tr>
</thead>
<tbody>
<tr>
<td>200</td>
<td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
<td>成功</td>
<td>Inline</td>
</tr>
</tbody>
</table>
<h3>返回数据结构</h3>
<p>状态码 <strong>200</strong></p>
<table>
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>必选</th>
<th>约束</th>
<th>中文名</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>» code</td>
<td>string</td>
<td>true</td>
<td>none</td>
<td></td>
<td>none</td>
</tr>
<tr>
<td>» data</td>
<td>object</td>
<td>true</td>
<td>none</td>
<td></td>
<td>none</td>
</tr>
<tr>
<td>»» refundNo</td>
<td>string</td>
<td>true</td>
<td>none</td>
<td>退款单号</td>
<td>有支付数据,返回退款单号,无支付数据返回null</td>
</tr>
<tr>
<td>» message</td>
<td>string</td>
<td>true</td>
<td>none</td>
<td></td>
<td>none</td>
</tr>
<tr>
<td>» service</td>
<td>string</td>
<td>true</td>
<td>none</td>
<td></td>
<td>none</td>
</tr>
<tr>
<td>» success</td>
<td>boolean</td>
<td>true</td>
<td>none</td>
<td></td>
<td>none</td>
</tr>
</tbody>
</table>