招联对接文档


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">{ &amp;quot;mchNo&amp;quot;: &amp;quot;MCH_I293975931&amp;quot;, &amp;quot;mchOrderNo&amp;quot;: &amp;quot;3007202304121738020724464&amp;quot;, &amp;quot;appId&amp;quot;: &amp;quot;MCH_A698612520&amp;quot;, &amp;quot;sign&amp;quot;: &amp;quot;b3a1859c03a8495a436a081c3011bbbd&amp;quot;, &amp;quot;termId&amp;quot;: &amp;quot;12345678&amp;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>&amp;emsp;&amp;emsp;version</td> <td>版本号</td> <td>false</td> <td>string</td> <td>默认1.0</td> </tr> <tr> <td>&amp;emsp;&amp;emsp;sign</td> <td>签名值</td> <td><code>true</code></td> <td>string</td> <td>详见签名生成算法</td> </tr> <tr> <td>&amp;emsp;&amp;emsp;termId</td> <td>终端id</td> <td><code>true</code></td> <td>string</td> <td>没有真实终端号统一填88888888</td> </tr> <tr> <td>&amp;emsp;&amp;emsp;mchNo</td> <td>商户号</td> <td><code>true</code></td> <td>string</td> <td>招联分配给二级商户的商户号</td> </tr> <tr> <td>&amp;emsp;&amp;emsp;appId</td> <td>应用id</td> <td><code>true</code></td> <td>string</td> <td>商户配置的应用id</td> </tr> <tr> <td>&amp;emsp;&amp;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>&gt;见[应答码表](<a href="https://www.showdoc.com.cn/jucaishangfu/9966099368299628">https://www.showdoc.com.cn/jucaishangfu/9966099368299628</a> &quot;应答码表&quot;)</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>&amp;emsp;&amp;emsp;transStat</td> <td>交易状态</td> <td>string</td> <td>SUCCESS—退款成功&lt;br&gt;REFUNDING--退款中&lt;br&gt;PAYERROR--退款失败</td> </tr> <tr> <td>&amp;emsp;&amp;emsp;dealDate</td> <td>交易日期(yyyyMMdd)</td> <td>string</td> </tr> <tr> <td>&amp;emsp;&amp;emsp;orgId</td> <td>机构号</td> <td>string</td> </tr> <tr> <td>&amp;emsp;&amp;emsp;mchNo</td> <td>商户号</td> <td>string</td> </tr> <tr> <td>&amp;emsp;&amp;emsp;mchOrderNo</td> <td>商户订单号</td> <td>string</td> </tr> <tr> <td>&amp;emsp;&amp;emsp;randomStr</td> <td>随机字符串</td> <td>string</td> </tr> <tr> <td>&amp;emsp;&amp;emsp;refundAmt</td> <td>退款金额</td> <td>string</td> </tr> <tr> <td>&amp;emsp;&amp;emsp;refundId</td> <td>渠道退款流水号</td> <td>string</td> </tr> <tr> <td>&amp;emsp;&amp;emsp;refundOrderNo</td> <td>商户退款单号</td> <td>string</td> </tr> <tr> <td>&amp;emsp;&amp;emsp;termId</td> <td>终端号</td> <td>string</td> </tr> <tr> <td>&amp;emsp;&amp;emsp;traceNo</td> <td>系统内部追踪号</td> <td>string</td> </tr> <tr> <td>&amp;emsp;&amp;emsp;transactionId</td> <td>渠道订单号</td> <td>string</td> </tr> <tr> <td>&amp;emsp;&amp;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">{ &amp;quot;code&amp;quot;: 200, &amp;quot;msg&amp;quot;: &amp;quot;SUCCESS&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;returnCode&amp;quot;: &amp;quot;000000&amp;quot;, &amp;quot;returnMsg&amp;quot;: &amp;quot;SUCCESS&amp;quot;, &amp;quot;dealDate&amp;quot;: &amp;quot;20230327&amp;quot;, &amp;quot;orgId&amp;quot;: &amp;quot;ISV_I238002400&amp;quot;, &amp;quot;mchNo&amp;quot;: &amp;quot;MCH_I293975931&amp;quot;, &amp;quot;mchOrderNo&amp;quot;: &amp;quot;2023032711285487257295&amp;quot;, &amp;quot;randomStr&amp;quot;: &amp;quot;O8HDNAA8WI58UFDRTGBG0DDAJQQR9EQT&amp;quot;, &amp;quot;refundAmt&amp;quot;: &amp;quot;1&amp;quot;, &amp;quot;refundId&amp;quot;: &amp;quot;50100706022020100903144575196&amp;quot;, &amp;quot;refundOrderNo&amp;quot;: &amp;quot;2023032711324975038342_refund&amp;quot;, &amp;quot;termId&amp;quot;: &amp;quot;88888888&amp;quot;, &amp;quot;traceNo&amp;quot;: &amp;quot;100063825481&amp;quot;, &amp;quot;transStat&amp;quot;: &amp;quot;SUCCESS&amp;quot;, &amp;quot;transactionId&amp;quot;: &amp;quot;4200000700202010090766639303&amp;quot;, &amp;quot;wayCode&amp;quot;: &amp;quot;WECHAT&amp;quot; }, &amp;quot;sign&amp;quot;: &amp;quot;1ac527b52dcb1638bb92c10bfccbd5d3&amp;quot; }</code></pre>

页面列表

ITEM_HTML