确认取消订单
<ul>
<li>强烈建议使用叮叮配送开放平台1.07对接接口:<a href="http://doc.toozan666.com/web/#/1?page_id=1">http://doc.toozan666.com/web/#/1?page_id=1</a></li>
</ul>
<p><strong>简要描述:</strong>
1.所有接口都采用POST方式(包括查询接口)
2.请求和响应的数据都为JSON格式。注:请设置Header的Content-Type为application/json
3.采用UTF-8字符编码
4.所有请求都是raw方式使用的是纯字符串的数据上传方式,非Form-data的方式
5.签名算法
第一步:将参与签名的参数按照键值(key)进行字典排序(ascii表顺序)
第二步:将排序过后的参数,进行key和value字符串拼接
第三步:对签名字符串进行MD5加密,生成32位的字符串
第四步:将签名生成的32位字符串转换为大写</p>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://api.juheps.com/open/order/orderCancel</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST
<strong>请求参数说明:</strong></li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>origin_id</td>
<td>是</td>
<td>string</td>
<td>你方平台订单号</td>
</tr>
<tr>
<td>cancel_id</td>
<td>是</td>
<td>string</td>
<td>取消原因id,取消原因接口里的id 也可以写死 1</td>
</tr>
<tr>
<td>cancelReason</td>
<td>是</td>
<td>string</td>
<td>取消原因,必填</td>
</tr>
</tbody>
</table>
<p><strong>示例代码:</strong></p>
<pre><code>{
"origin_id": "323223",
"cancel_id": 1,
"fromplatform": "233232",
"tokenaes": "eyJpdiI6ImdRZklDcEQxaG41S2ZBTFp2bHcwa0E9PSIsInZhbHVlIjoiR1Flc282WDhBdE8rVHhiM1h5UjE0dU13S3dMbFB1YkZBWnAxanZMa2dqTmRnWFZ1NURaSW0xVHNLaUNXR2JzXC90MDFXaXo2UWJPNTJZVk91WWJcL3poMXZzR2QxWHRjZX",
"username": "18733185352",
"timestamp": 1557813565,
"sign": "37EA7E0AE1990A799DA155A0009B24EA"
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>msg</td>
<td>string</td>
<td>成功或错误消息</td>
</tr>
<tr>
<td>code</td>
<td>int</td>
<td>0错误 1成功</td>
</tr>
<tr>
<td>result</td>
<td>int</td>
<td>查询接口返回的数据</td>
</tr>
</tbody>
</table>
<p><strong>返回成功实例</strong></p>
<pre><code>{
"msg": "取消成功",
"code": 1,
"result": [
]
}</code></pre>
<p><strong>返回失败实例</strong></p>
<pre><code>{
"msg": "参数无效",
"code": 0,
"result": [
]
}</code></pre>