获取订单信息
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>获取订单信息
"reqdata_type": "json",
"format": "json",
"func": "INQUIREORDERINFO",
<h5>请求URL</h5>
<p>正式版:<a href="https://ydw.ec-return.com/api/user/capi/index">https://ydw.ec-return.com/api/user/capi/index</a>
沙盒版:<a href="http://sandbox-ydw.ec-return.com/api/user/capi/index">http://sandbox-ydw.ec-return.com/api/user/capi/index</a></p></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </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;">user_login</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>your user id</td>
</tr>
<tr>
<td style="text-align: left;">access_code</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>your access code</td>
</tr>
<tr>
<td style="text-align: left;">cache_order_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>临时订单id:来自支付结果的cache_order_id</td>
</tr>
</tbody>
</table>
<h5>请求示例</h5>
<pre><code>{
&quot;reqdata_type&quot;: &quot;json&quot;,
&quot;format&quot;: &quot;json&quot;,
&quot;func&quot;: &quot;INQUIREORDERINFO&quot;,
&quot;user_login&quot;: &quot;your user id&quot;,
&quot;access_code&quot;: &quot;your access code&quot;,
&quot;cache_order_id&quot;: &quot;临时订单id:来自支付结果的cache_order_id&quot;
}</code></pre>
<h5>返回示例</h5>
<pre><code>{
&quot;code&quot;: &quot;成功: 0,失败: 1&quot;,
&quot;server_type_str&quot;: &quot;沙盒,正式&quot;,
&quot;msg&quot;: &quot;成功:Success,失败:Error&quot;,
&quot;data&quot;: {
&quot;status&quot;: &quot;0:查询成功,1:未支付,2:已支付,3:部分退款,4:已退款,5:已过期,6:已取消,7-99:未知状态,100:请输入临时订单号,101:请输入用户,102:查无此单,103:未创建订单或临时订单号无效 .(1,2需定期查询)&quot;,
&quot;cache_id&quot;: &quot;临时订单号&quot;,
&quot;user_id&quot;: &quot;your user id&quot;,
&quot;msg&quot;: &quot;查询成功&quot;,
&quot;data&quot;: [
{
&quot;tracking_number&quot;: &quot;追踪号1,追踪号2,....&quot;,
&quot;tracking_number_list&quot;: {
&quot;0&quot;: {
&quot;tracking_number&quot;: &quot;追踪号1&quot;
},
&quot;1&quot;: {
&quot;tracking_number&quot;: &quot;追踪号2&quot;
}
},
&quot;DG_status&quot;: &quot;是否含危险品状态&quot;,
&quot;customs_invoice_status&quot;: &quot;是否有海关发票&quot;,
&quot;order_id&quot;: &quot;订单号&quot;,
&quot;cache_id&quot;: &quot;临时订单号&quot;,
&quot;add_time&quot;: &quot;创建时间&quot;,
&quot;status&quot;: 1,
&quot;carrier&quot;: &quot;承运商名称&quot;,
&quot;waybill-url&quot;: &quot;运单下载URL&quot;
}
]
}
}</code></pre>