取消订单原因列表
<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>6.订单取消需要选择取消原因,这个接口就是返回所有可选的取消原因</p>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://api.juheps.com/open/order/Reason</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>
</tbody>
</table>
<p><strong>示例代码:</strong></p>
<pre><code>{
"fromplatform": "xxx",
"tokenaes": "xxx",
"username": "xxx",
"apikey": "xxx",
"sign": "xxx",
"origin_id": "124632328463092732",
}</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": [
{
"reason": "没有配送员接单",
"id": 1
},
{
"reason": "配送员没来取货",
"id": 2
},
{
"reason": "配送员态度太差",
"id": 3
},
{
"reason": "顾客取消订单",
"id": 4
},
{
"reason": "订单填写错误",
"id": 5
},
{
"reason": "配送员让我取消此单",
"id": 34
},
{
"reason": "配送员不愿上门取货",
"id": 35
},
{
"reason": "我不需要配送了",
"id": 36
},
{
"reason": "配送员以各种理由表示无法完成订单",
"id": 37
},
{
"reason": "其他",
"id": 10000
}
]
}</code></pre>
<p><strong>返回失败实例</strong></p>
<pre><code>{
"msg": "参数无效",
"code": 0,
"result": [
]
}</code></pre>