用户订单列表
<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>https://order.toozan.cc/logistics/public/api/order/orderList</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST
<strong>请求参数说明:</strong>
|参数名 |必选|类型 |说明|</li>
</ul>
<p>|fromplatform |是 |string | 小程序码
|token |是 |string | token
|types |是 |string | 订单类型 (1=待接单 2=以接单 3=以完成 4=以取消 其他任意值或者不填写=全部订单)
|openid |否 |string | openid (我方C端必填)
|sign |是 |string | 签名</p>
<p><strong>示例代码:</strong>
{
"fromplatform": "11",
"token": "323232323232",
"type": 1,
"openid": "1111"
}</p>
<p><strong>返回参数说明</strong> </p>
<p>|参数名|类型|说明|</p>
<p>|msg |string |成功或错误消息 |
|code |int |0错误 1成功 |
|result |int |查询接口返回的数据 |</p>
<p><strong>返回成功实例</strong>
{
"msg": "成功",
"code": 1,
"result": [
{
"origin_id": "124632328463092732",
"name": "闪送",
"ordernumber": "OID15262779918877",
"receiver_name": "杨文斌",
"city": "上海",
"order_status": "5",
"acceptTime": 1526278009,
"fetchTime": null,
"finishTime": null,
"cancelTime": 1526279093,
"city_name": "上海"
},
{
"origin_id": "124632328463092734",
"name": "闪送",
"ordernumber": "OID15262784019764",
"receiver_name": "杨文斌",
"city": "上海",
"order_status": "0",
"acceptTime": null,
"fetchTime": null,
"finishTime": null,
"cancelTime": null,
"city_name": "上海"
}
]
}
<strong>返回失败实例</strong>
{
"msg": "订单号重复",
"code": 0,
"result": [
]
}</p>
<p><strong>result字段说明</strong>
|参数名|类型|说明|</p>
<table>
<thead>
<tr>
<th>origin_id</th>
<th>string</th>
<th>订单id</th>
<th>deliverFee</th>
<th>string</th>
<th>运费(接单后才有。否则为空)</th>
<th>name</th>
<th>string</th>
<th>物流公司名称</th>
<th>receiver_name</th>
<th>string</th>
<th>收货人姓名</th>
<th>city</th>
<th>string</th>
<th>收货人城市</th>
<th>receiver_phone</th>
<th>string</th>
<th>收货人手机号</th>
<th>mode_distribution</th>
<th>string</th>
<th>配送模式 2=最省钱 3=最快</th>
<th>order_status</th>
<th>string</th>
<th>订单状态 (待发单=0 待接单=1 待取货=2 配送中=3 已完成=4 已取消=5 已过期=7 指派单=8 妥投异常之物品返回中=9 妥投异常之物品返回完成=10',</th>
<th>psy_name</th>
<th>string</th>
<th>骑手姓名</th>
<th>psy_mobile</th>
<th>string</th>
<th>骑手手机号</th>
<th>delay_publish_time</th>
<th>string</th>
<th>1为不指定。其他情况为时间戳</th>
<th>acceptTime</th>
<th>string</th>
<th>接单时间</th>
<th>finishTime</th>
<th>string</th>
<th>完成时间</th>
<th>cancelTime</th>
<th>string</th>
<th>取消时间</th>
<th>city_name</th>
<th>string</th>
<th>发货城市</th>
<th>inserttime</th>
<th>string</th>
<th>下单时间(时间戳)</th>
<th>phone</th>
<th>string</th>
<th>发货人手机号</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<p>欢迎使用ShowDoc!</p>