取消订单
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>取消订单
"reqdata_type": "json",
"format": "json",
"func": "cancelorder",
<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;">order_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>from INQUIREORDERINFO order_id</td>
</tr>
<tr>
<td style="text-align: left;">unpay_order_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>余额不足时生成的未支付订单的订单号,与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;cancelorder&quot;,
&quot;user_login&quot;: &quot;your user id&quot;,
&quot;access_code&quot;: &quot;your access code&quot;,
&quot;order_id&quot;: &quot;from INQUIREORDERINFO order_id&quot;,
&quot;unpay_order_id&quot;: &quot;余额不足时生成的未支付订单的订单号,与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;成功:1&quot;,
&quot;msg&quot;: &quot;取消成功消息&quot;,
&quot;errormsg&quot;: &quot;取消失败消息&quot;,
&quot;data&quot;: &quot;&quot;
}
}</code></pre>