订单查询接口
<h5>接口描述</h5>
<ul>
<li>接口方向:接入方 → 本平台</li>
<li>限速控制:60秒180次</li>
<li>查询订单详情</li>
<li>查询期限只能查询最近30天内的订单</li>
</ul>
<h4>请求URL</h4>
<ul>
<li>[<a href="https://juling.funshion.com/ps/open/order/create">https://juling.funshion.com/ps/open/order/create</a>] </li>
<li>接口域名固定,不支持其他域名</li>
</ul>
<h4>请求方式</h4>
<ul>
<li>POST/GET</li>
<li>Content-Type: application/json;charset=utf-8</li>
</ul>
<h4>请求参数</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必填</th>
<th>示例</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>userid</td>
<td>是</td>
<td>10001</td>
<td>商户ID联系站长获取</td>
</tr>
<tr>
<td>timestamp</td>
<td>是</td>
<td>1689544765</td>
<td>现行10位时间戳,有效期300秒</td>
</tr>
<tr>
<td>orderno</td>
<td>否</td>
<td>SD2014122452854542155545</td>
<td>系统单号(系统单号和商家订单号不能同时为空,如果同时传已以商家订单号为准)</td>
</tr>
<tr>
<td>usorderno</td>
<td>否</td>
<td>2023102515235685</td>
<td>商家订单号(系统单号和商家订单号不能同时为空,如果同时传以商家订单号为准)</td>
</tr>
<tr>
<td>sign</td>
<td>是</td>
<td>ffjutjghfdgedf5eggdgdgghr</td>
<td>签名,<a href="https://www.showdoc.com.cn/juling001/11558619435396525">点我查看签名计算规则</a></td>
</tr>
</tbody>
</table>
<h4>请求示例</h4>
<pre><code>{
&quot;userid&quot;: &quot;1004&quot;,
&quot;timestamp&quot;: 1735002156,
&quot;orderno&quot;: &quot;D202412131948217107849123&quot;,
&quot;sign&quot;: &quot;515d1d41495d9419bf93e7d9a567b0f3&quot;
}</code></pre>
<h4>响应信息</h4>
<pre><code>{
&quot;code&quot;: 1,
&quot;msg&quot;: &quot;查询成功&quot;,
&quot;data&quot;: {
&quot;orderno&quot;: &quot;D202412131948217107849123&quot;,
&quot;usorderno&quot;: &quot;D202412131948217107849123&quot;,
&quot;money&quot;: &quot;0.2000&quot;,
&quot;buynum&quot;: 1,
&quot;status&quot;: 5,
&quot;refundmoney&quot;: &quot;0.0000&quot;,
&quot;refundstatus&quot;:0,
&quot;receipt&quot;: &quot;&quot;,
&quot;cardlist&quot;: [
&quot;卡号:jLeoal5TwbE\r&quot;
]
}
}</code></pre>
<h4>响应参数</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>示例</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>1</td>
<td><a href="https://www.showdoc.com.cn/2592446100589081/11529649354692263">详见全局结果代码说明</a></td>
</tr>
<tr>
<td>msg</td>
<td>签名错误</td>
<td>提示信息</td>
</tr>
<tr>
<td>data.orderno</td>
<td>SD202412240945448079176514</td>
<td>本系统订单号</td>
</tr>
<tr>
<td>data.usorderno</td>
<td>2023102515235685</td>
<td>商家订单号</td>
</tr>
<tr>
<td>data.money</td>
<td>0.2</td>
<td>订单金额</td>
</tr>
<tr>
<td>data.buynum</td>
<td>1</td>
<td>购买数量</td>
</tr>
<tr>
<td>data.status</td>
<td>5</td>
<td>订单状态 3=进行中 4=失败 5=成功 2=未付款</td>
</tr>
<tr>
<td>data.refundstatus</td>
<td>0</td>
<td>退款类型0 未退款 1 已全部退 2 部分退款 3 仅仅标记退款 4 原路退款</td>
</tr>
<tr>
<td>data.refundmoney</td>
<td>0.000</td>
<td>退款金额</td>
</tr>
<tr>
<td>data.receipt</td>
<td>充值失败</td>
<td>订单回执</td>
</tr>
<tr>
<td>data.refundreceipt</td>
<td>帐号风控</td>
<td>退款回执</td>
</tr>
<tr>
<td>data.cardlist</td>
<td>数组</td>
<td>卡密信息</td>
</tr>
</tbody>
</table>
<h4>注意事项</h4>
<p>status=4表示失败,失败了不一定退款,请判断下refundstatus的状态类型<br />
正常情况status=4 refundstatus会是1<br />
如果status=4 refundstatus为0和3这俩种类型请联系上游咨询没退款的原因</p>