lunpay

lunpay


查询订单

<p>[TOC]</p> <h5>请求URL</h5> <ul> <li><code>https://lunpay.com/api/order/query</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST </li> </ul> <h5>请求头</h5> <ul> <li>application/json</li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必填</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">account_id</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>账户ID</td> </tr> <tr> <td style="text-align: left;">merchant_id</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>商户ID</td> </tr> <tr> <td style="text-align: left;">order_no</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>订单号</td> </tr> <tr> <td style="text-align: left;">sign</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>签名</td> </tr> </tbody> </table> <h5>签名规则</h5> <p>将 <code>merchant_id</code>、<code>account_id</code>、<code>order_no</code> 和 <code>secret</code> 的顺序拼接成一个字符串。</p> <pre><code>merchant_idaccount_idorder_noyour_secret_key</code></pre> <h5>返回成功示例</h5> <pre><code>{ &amp;quot;code&amp;quot;: 200, &amp;quot;msg&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;status&amp;quot;: 0, &amp;quot;currency&amp;quot;: &amp;quot;USD&amp;quot;, &amp;quot;total&amp;quot;: &amp;quot;375.28&amp;quot;, &amp;quot;third_a_id&amp;quot;: &amp;quot;20951&amp;quot;, &amp;quot;third_b_id&amp;quot;: &amp;quot;0&amp;quot; }, &amp;quot;url&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;wait&amp;quot;: 3 }</code></pre> <h5>返回失败示例</h5> <pre><code>{     &amp;quot;code&amp;quot;: 403,     &amp;quot;msg&amp;quot;: &amp;quot;error msg&amp;quot; }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">code</td> <td style="text-align: left;">int</td> <td>200 正常 403请求错误</td> </tr> <tr> <td style="text-align: left;">msg</td> <td style="text-align: left;">string</td> <td>描述</td> </tr> <tr> <td style="text-align: left;">data.status</td> <td style="text-align: left;">int</td> <td>0- '进行中', 1-'待付款', 2-'正在处理',3-'保留',4-'已完成',5-'已取消',6-'已退款',7-'失败订单',8-'草稿',9-'部分付款'</td> </tr> <tr> <td style="text-align: left;">data.currency</td> <td style="text-align: left;">string</td> <td>币种</td> </tr> <tr> <td style="text-align: left;">data.total</td> <td style="text-align: left;">string</td> <td>订单总价</td> </tr> <tr> <td style="text-align: left;">data.third_a_id</td> <td style="text-align: left;">string</td> <td>A站订单号</td> </tr> <tr> <td style="text-align: left;">data.third_b_id</td> <td style="text-align: left;">string</td> <td>B站订单号</td> </tr> </tbody> </table>

页面列表

ITEM_HTML