客服电话:+8613533645155
注册
客服电话:+8613533645155

API接口之三 获得订单列表

关键字: API

API接口之三

                                        ------  获得订单列表

3 获得订单列表

msgType=getorderlist


请求报文内容(content)字段说明:


字段类型是否必填说明
statusstring

'create'=>'已下单','weigh'=>'待称重','unpaid'=>'待扣款'

,'paid'=>'已扣款','shipped'=>'已发货','received'=>'确认签收',

'problem'=>'问题件'.空值:全部订单

stock_idstring仓库ID(广州仓库=2)
snstring订单号

channel

string渠道(渠道名前5位或者渠道ID)
chantypestring1=前5位算法 0=渠道ID,这2项要一起填
express_snstring国际单号
batchstring袋子号,默认空值
fullnamestring收件人全名,含空格
mobilestring收件人手机,含空格
date_startstring搜索下单时间的开始值
date_stopstring搜索下单时间的结束值



请求实例:

请求示例(参数)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":""}


返回参数说明:

字段类型说明
statusstring

'create'=>'已下单','weigh'=>'待称重','unpaid'=>'待扣款'

,'paid'=>'已扣款','shipped'=>'已发货','received'=>'确认签收',

'problem'=>'问题件'

stock_idstring仓库ID(广州仓库=2)
snstring订单号

channel

string渠道名
channel_idstring渠道
express_snstring国际单号
batchstring袋子号,默认空值
fullnamestring收件人全名,含空格
mobilestring收件人手机,含空格
numberstring打包件数
jingzhongstring实际重量
volumestring体积重
typestring普货/敏感货 
citystring收件人城市
provincestring收件人省
countrystring收件人国家(这里为二字码 或者 全名)
zipcodestring收件人邮编
telstring收件人备用电话

返回成功实例:

{"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}







关注官方微信
在线客服
+8613533645155