API接口之三
------ 获得订单列表
3 获得订单列表
msgType=getorderlist
字段 | 类型 | 是否必填 | 说明 |
status | string | 是 | 'create'=>'已下单','weigh'=>'待称重','unpaid'=>'待扣款' ,'paid'=>'已扣款','shipped'=>'已发货','received'=>'确认签收', 'problem'=>'问题件'.空值:全部订单 |
stock_id | string | 否 | 仓库ID(广州仓库=2) |
sn | string | 否 | 订单号 |
channel | string | 否 | 渠道(渠道名前5位或者渠道ID) |
chantype | string | 否 | 1=前5位算法 0=渠道ID,这2项要一起填 |
express_sn | string | 否 | 国际单号 |
batch | string | 否 | 袋子号,默认空值 |
fullname | string | 否 | 收件人全名,含空格 |
mobile | string | 否 | 收件人手机,含空格 |
date_start | string | 否 | 搜索下单时间的开始值 |
date_stop | string | 否 | 搜索下单时间的结束值 |
请求实例:
请求示例(参数)header: "Content-Type":"application/json", "msgId": "1", "msgType": "getorderlist" "partnerCode": "ANDIC002" "dataDigest": "7962fc5a8d841a70f295e6a59a20655d" body: {"status":"create","stock_id":2,"sn":"","channel":"","chantype":"","express_sn":"","batch":"","fullname":"","mobile":"","date_start":"","date_stop":""} |
返回参数说明:
字段 | 类型 | 说明 |
status | string | 'create'=>'已下单','weigh'=>'待称重','unpaid'=>'待扣款' ,'paid'=>'已扣款','shipped'=>'已发货','received'=>'确认签收', 'problem'=>'问题件' |
stock_id | string | 仓库ID(广州仓库=2) |
sn | string | 订单号 |
channel | string | 渠道名 |
channel_id | string | 渠道 |
express_sn | string | 国际单号 |
batch | string | 袋子号,默认空值 |
fullname | string | 收件人全名,含空格 |
mobile | string | 收件人手机,含空格 |
number | string | 打包件数 |
jingzhong | string | 实际重量 |
volume | string | 体积重 |
type | string | 普货/敏感货 |
city | string | 收件人城市 |
province | string | 收件人省 |
country | string | 收件人国家(这里为二字码 或者 全名) |
zipcode | string | 收件人邮编 |
tel | string | 收件人备用电话 |
返回成功实例:
{"data":[{"status":"create","channel_id":"8","channel":"MY008 西马 | 空运 | 普货 | GDEX","type":"普通","sn":"F0803000214","express_sn":"","number":"0","batch":"0","jingzhong":"0.00","volume":"0.00","fullname":"1","address":"111, 吉隆坡 11111 Malaysia","province":"province","country":"Malaysia","zipcode":"52000","city":"吉隆坡","mobile":"13800138000","tel":"1","addtime":"1691024921","note":"333","title":null,"qty":null},{"status":"create","channel_id":"8","channel":"MY008 西马 | 空运 | 普货 | GDEX","type":"普通","sn":"F0803000214","express_sn":"","number":"0","batch":"0","jingzhong":"0.00","volume":"0.00","fullname":"1","address":"111, 吉隆坡 11111 Malaysia","province":"province","country":"Malaysia","zipcode":"52000","city":"吉隆坡","mobile":"13800138000","tel":"1","addtime":"1691024921","note":"333","title":null,"qty":null}],"msg":"订单列表获取成功","code":200} |