订单查询接口
<h3>简要描述:</h3>
<p>订单详情查询接口(订单同步建议使用订单异步回调处理)</p>
<h3>请求URL:</h3>
<p>http(s)://平台域/api/v1/order/info</p>
<h3>请求方式:</h3>
<p>POST</p>
<h3>请求参数:</h3>
<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://www.showdoc.com.cn/mywlkj/11558607938542754">https://www.showdoc.com.cn/mywlkj/11558607938542754</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>您的用户接口appid</td>
<td>2uIkTrXNdAFc7OKhbRenzjDtgPoZ6s5C</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>
<pre><code>1696644296195{&quot;day&quot;:10,&quot;external_orderno&quot;:&quot;&quot;,&quot;ordersn&quot;:&quot;D100759274105949519872&quot;}apikey</code></pre>
<h4><strong>虚拟商品订单返回示例:</strong></h4>
<pre><code>{
&quot;code&quot;: 200,
&quot;msg&quot;: &quot;成功&quot;,
&quot;data&quot;: [
{
&quot;ordersn&quot;: &quot;D100759324935205552128&quot;,
&quot;external_orderno&quot;: &quot;&quot;,
&quot;recharge_info&quot;: [
{
&quot;n&quot;: &quot;测试1&quot;,
&quot;v&quot;: &quot;1&quot;,
&quot;k&quot;: &quot;recharge_account&quot;
},
{
&quot;n&quot;: &quot;测试2&quot;,
&quot;v&quot;: &quot;1&quot;,
&quot;k&quot;: &quot;lblName1&quot;
}
],
&quot;recharge_hints&quot;: &quot;订单已取消,资金已退回商城余额!&quot;,
&quot;status&quot;: 5,
&quot;card_list&quot;: []
}
]
}</code></pre>
<h4><strong>卡密商品订单返回示例:</strong></h4>
<pre><code>{
&quot;code&quot;: 200,
&quot;msg&quot;: &quot;成功&quot;,
&quot;data&quot;: [
{
&quot;ordersn&quot;: &quot;D100759274105949519872&quot;,
&quot;external_orderno&quot;: &quot;&quot;,
&quot;recharge_info&quot;: [],
&quot;recharge_hints&quot;: &quot;订单已取消,资金已退回商城余额!&quot;,
&quot;status&quot;: 5,
&quot;card_list&quot;: [
{
&quot;card_no&quot;: &quot;&quot;,
&quot;card_password&quot;: &quot;1&quot;,
&quot;card_show_type&quot;: 1
}
]
}
]
}</code></pre>
<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=已退款,-1=未支付)</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>