订单查询接口
<h4><strong>简要描述:</strong></h4>
<p>订单详情查询接口(订单同步建议使用订单异步回调处理)</p>
<h4><strong>请求URL:</strong></h4>
<p><code>http://平台域/api/v1/order/info</code></p>
<h4><strong>请求方式:</strong></h4>
<p><code>POST</code></p>
<h4><strong>请求参数:</strong></h4>
<table>
<thead>
<tr>
<th>Header 参数</th>
<th>类型</th>
<th>是否必填</th>
<th>描述</th>
<th>示例值</th>
</tr>
</thead>
<tbody>
<tr>
<td>Sign</td>
<td>string</td>
<td>是</td>
<td>签名</td>
<td>[点击查看签名规范](<a href="https://doc.kasushou.com/api/v2api/39">https://doc.kasushou.com/api/v2api/39</a> " 点击查看签名规范")</td>
</tr>
<tr>
<td>Timestamp</td>
<td>string</td>
<td>是</td>
<td>13位时间戳(毫秒)</td>
<td>1696644296195</td>
</tr>
<tr>
<td>UserId</td>
<td>string</td>
<td>是</td>
<td>您的用户编号</td>
<td>10000</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>Body 参数</th>
<th>类型</th>
<th>是否必填</th>
<th>描述</th>
<th>示例值</th>
</tr>
</thead>
<tbody>
<tr>
<td>external_orderno</td>
<td>string</td>
<td>否</td>
<td>外部订单号(二选一) 多个订单用逗号隔开</td>
<td></td>
</tr>
<tr>
<td>ordersn</td>
<td>string</td>
<td>否</td>
<td>本系统订单号(二选一) 多个订单用逗号隔开</td>
<td>D100759274105949519872</td>
</tr>
<tr>
<td>day</td>
<td>string</td>
<td>否</td>
<td>查多少天内订单,默认近30天订单,查全部请传0</td>
<td>10</td>
</tr>
</tbody>
</table>
<h4><strong>签名示例:</strong></h4>
<p><code>1696644296195{&quot;day&quot;:10,&quot;external_orderno&quot;:&quot;&quot;,&quot;ordersn&quot;:&quot;D100759274105949519872&quot;}apikey</code></p>
<h4><strong>虚拟商品订单返回示例:</strong></h4>
<ol>
<li><code>{</code></li>
<li><code>&quot;code&quot;: 200,</code></li>
<li><code>&quot;msg&quot;: &quot;成功&quot;,</code></li>
<li><code>&quot;data&quot;: [</code></li>
<li><code>{</code></li>
<li><code>&quot;ordersn&quot;: &quot;D100759324935205552128&quot;,</code></li>
<li><code>&quot;external_orderno&quot;: &quot;&quot;,</code></li>
<li><code>&quot;recharge_info&quot;: [</code></li>
<li><code>{</code></li>
<li><code>&quot;n&quot;: &quot;测试1&quot;,</code></li>
<li><code>&quot;v&quot;: &quot;1&quot;,</code></li>
<li><code>&quot;k&quot;: &quot;recharge_account&quot;</code></li>
<li><code>},</code></li>
<li><code>{</code></li>
<li><code>&quot;n&quot;: &quot;测试2&quot;,</code></li>
<li><code>&quot;v&quot;: &quot;1&quot;,</code></li>
<li><code>&quot;k&quot;: &quot;lblName1&quot;</code></li>
<li><code>}</code></li>
<li><code>],</code></li>
<li><code>&quot;recharge_hints&quot;: &quot;订单已取消,资金已退回商城余额!&quot;,</code></li>
<li><code>&quot;status&quot;: 5,</code></li>
<li><code>&quot;card_list&quot;: []</code></li>
<li><code>}</code></li>
<li><code>]</code></li>
<li><code>}</code></li>
</ol>
<h4><strong>卡密商品订单返回示例:</strong></h4>
<ol>
<li><code>{</code></li>
<li><code>&quot;code&quot;: 200,</code></li>
<li><code>&quot;msg&quot;: &quot;成功&quot;,</code></li>
<li><code>&quot;data&quot;: [</code></li>
<li><code>{</code></li>
<li><code>&quot;ordersn&quot;: &quot;D100759274105949519872&quot;,</code></li>
<li><code>&quot;external_orderno&quot;: &quot;&quot;,</code></li>
<li><code>&quot;recharge_info&quot;: [],</code></li>
<li><code>&quot;recharge_hints&quot;: &quot;订单已取消,资金已退回商城余额!&quot;,</code></li>
<li><code>&quot;status&quot;: 5,</code></li>
<li><code>&quot;card_list&quot;: [</code></li>
<li><code>{</code></li>
<li><code>&quot;card_no&quot;: &quot;&quot;,</code></li>
<li><code>&quot;card_password&quot;: &quot;1&quot;,</code></li>
<li><code>&quot;card_show_type&quot;: 1</code></li>
<li><code>}</code></li>
<li><code>]</code></li>
<li><code>}</code></li>
<li><code>]</code></li>
<li><code>}</code></li>
</ol>
<h4><strong>返回data说明:</strong></h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>ordersn</td>
<td>string</td>
<td>本地订单号</td>
</tr>
<tr>
<td>external_orderno</td>
<td>string</td>
<td>外部订单号</td>
</tr>
<tr>
<td>recharge_info</td>
<td>array</td>
<td>下单参数</td>
</tr>
<tr>
<td>recharge_hints</td>
<td>string</td>
<td>订单返回信息</td>
</tr>
<tr>
<td>status</td>
<td>int</td>
<td>订单状态(1=等待处理,2=正在处理,3=交易成功,4=取消交易,5=已退款)</td>
</tr>
<tr>
<td>card_list</td>
<td>array</td>
<td>卡密列表(卡密订单才返回此项)</td>
</tr>
</tbody>
</table>
<h4><strong>返回recharge_info说明:</strong></h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>n</td>
<td>string</td>
<td>下单参数名称</td>
</tr>
<tr>
<td>v</td>
<td>string</td>
<td>下单参数内容</td>
</tr>
<tr>
<td>k</td>
<td>string</td>
<td>下单参数变量名</td>
</tr>
</tbody>
</table>
<h4><strong>返回card_list说明:</strong></h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>card_no</td>
<td>string</td>
<td>卡号</td>
</tr>
<tr>
<td>card_password</td>
<td>string</td>
<td>卡密</td>
</tr>
<tr>
<td>card_show_type</td>
<td>int</td>
<td>卡密类型:1=普通卡号和卡密,2=图片二维码,3=条形码</td>
</tr>
</tbody>
</table>