1.8 退款查询接口
<h2>退款查询接口</h2>
<p><strong>接口地址</strong>:<code>/pay/api/1.0/refundQuery</code></p>
<p><strong>请求方式</strong>:<code>POST</code></p>
<p><strong>请求数据类型</strong>:<code>application/json</code></p>
<p><strong>响应数据类型</strong>:<code>application/json</code></p>
<p><strong>接口描述</strong>:
本接口支持所有退款交易查询(时间限制:<code>3日内</code>)</p>
<p><strong>请求示例</strong>:</p>
<pre><code class="language-javascript">{
&quot;mchNo&quot;: &quot;MCH_I293975931&quot;,
&quot;mchOrderNo&quot;: &quot;3007202304121738020724464&quot;,
&quot;appId&quot;: &quot;MCH_A698612520&quot;,
&quot;sign&quot;: &quot;b3a1859c03a8495a436a081c3011bbbd&quot;,
&quot;termId&quot;: &quot;12345678&quot;
}</code></pre>
<p><strong>请求参数</strong>:</p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数说明</th>
<th>请求类型</th>
<th>是否必须</th>
<th>数据类型</th>
<th>schema</th>
</tr>
</thead>
<tbody>
<tr>
<td>req</td>
<td>req</td>
<td>body</td>
<td>退款查询请求实体类</td>
<td>退款查询请求实体类</td>
</tr>
<tr>
<td>&emsp;&emsp;version</td>
<td>版本号</td>
<td>false</td>
<td>string</td>
<td>默认1.0</td>
</tr>
<tr>
<td>&emsp;&emsp;sign</td>
<td>签名值</td>
<td><code>true</code></td>
<td>string</td>
<td>详见签名生成算法</td>
</tr>
<tr>
<td>&emsp;&emsp;termId</td>
<td>终端id</td>
<td><code>true</code></td>
<td>string</td>
<td>没有真实终端号统一填88888888</td>
</tr>
<tr>
<td>&emsp;&emsp;mchNo</td>
<td>商户号</td>
<td><code>true</code></td>
<td>string</td>
<td>招联分配给二级商户的商户号</td>
</tr>
<tr>
<td>&emsp;&emsp;appId</td>
<td>应用id</td>
<td><code>true</code></td>
<td>string</td>
<td>商户配置的应用id</td>
</tr>
<tr>
<td>&emsp;&emsp;mchOrderNo</td>
<td>商户订单号</td>
<td><code>true</code></td>
<td>string</td>
<td>退款订单号</td>
</tr>
</tbody>
</table>
<p><strong>响应状态</strong>:</p>
<table>
<thead>
<tr>
<th>状态码</th>
<th>说明</th>
<th>schema</th>
</tr>
</thead>
<tbody>
<tr>
<td>200</td>
<td>OK</td>
<td>R«订单退款返回实体类»</td>
</tr>
</tbody>
</table>
<p>>见[应答码表](<a href="https://www.showdoc.com.cn/jucaishangfu/9966099368299628">https://www.showdoc.com.cn/jucaishangfu/9966099368299628</a> "应答码表")</p>
<p><strong>响应参数</strong>:</p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数说明</th>
<th>类型</th>
<th>schema</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>integer(int32)</td>
<td>integer(int32)</td>
</tr>
<tr>
<td>data</td>
<td>订单退款返回实体类</td>
<td>订单退款返回实体类</td>
</tr>
<tr>
<td>&emsp;&emsp;transStat</td>
<td>交易状态</td>
<td>string</td>
<td>SUCCESS—退款成功<br>REFUNDING--退款中<br>PAYERROR--退款失败</td>
</tr>
<tr>
<td>&emsp;&emsp;dealDate</td>
<td>交易日期(yyyyMMdd)</td>
<td>string</td>
</tr>
<tr>
<td>&emsp;&emsp;orgId</td>
<td>机构号</td>
<td>string</td>
</tr>
<tr>
<td>&emsp;&emsp;mchNo</td>
<td>商户号</td>
<td>string</td>
</tr>
<tr>
<td>&emsp;&emsp;mchOrderNo</td>
<td>商户订单号</td>
<td>string</td>
</tr>
<tr>
<td>&emsp;&emsp;randomStr</td>
<td>随机字符串</td>
<td>string</td>
</tr>
<tr>
<td>&emsp;&emsp;refundAmt</td>
<td>退款金额</td>
<td>string</td>
</tr>
<tr>
<td>&emsp;&emsp;refundId</td>
<td>渠道退款流水号</td>
<td>string</td>
</tr>
<tr>
<td>&emsp;&emsp;refundOrderNo</td>
<td>商户退款单号</td>
<td>string</td>
</tr>
<tr>
<td>&emsp;&emsp;termId</td>
<td>终端号</td>
<td>string</td>
</tr>
<tr>
<td>&emsp;&emsp;traceNo</td>
<td>系统内部追踪号</td>
<td>string</td>
</tr>
<tr>
<td>&emsp;&emsp;transactionId</td>
<td>渠道订单号</td>
<td>string</td>
</tr>
<tr>
<td>&emsp;&emsp;wayCode</td>
<td>支付方式</td>
<td>string</td>
</tr>
<tr>
<td>msg</td>
<td>string</td>
</tr>
<tr>
<td>sign</td>
<td>string</td>
</tr>
</tbody>
</table>
<p><strong>响应示例</strong>:</p>
<pre><code class="language-javascript">{
&quot;code&quot;: 200,
&quot;msg&quot;: &quot;SUCCESS&quot;,
&quot;data&quot;: {
&quot;returnCode&quot;: &quot;000000&quot;,
&quot;returnMsg&quot;: &quot;SUCCESS&quot;,
&quot;dealDate&quot;: &quot;20230327&quot;,
&quot;orgId&quot;: &quot;ISV_I238002400&quot;,
&quot;mchNo&quot;: &quot;MCH_I293975931&quot;,
&quot;mchOrderNo&quot;: &quot;2023032711285487257295&quot;,
&quot;randomStr&quot;: &quot;O8HDNAA8WI58UFDRTGBG0DDAJQQR9EQT&quot;,
&quot;refundAmt&quot;: &quot;1&quot;,
&quot;refundId&quot;: &quot;50100706022020100903144575196&quot;,
&quot;refundOrderNo&quot;: &quot;2023032711324975038342_refund&quot;,
&quot;termId&quot;: &quot;88888888&quot;,
&quot;traceNo&quot;: &quot;100063825481&quot;,
&quot;transStat&quot;: &quot;SUCCESS&quot;,
&quot;transactionId&quot;: &quot;4200000700202010090766639303&quot;,
&quot;wayCode&quot;: &quot;WECHAT&quot;
},
&quot;sign&quot;: &quot;1ac527b52dcb1638bb92c10bfccbd5d3&quot;
}</code></pre>