获取快递公司列表
获取快递公司列表
1.请求参数:
请求URL:
公共参数
参数名称 | 参数类型 | 是否必须 | 示例值 | 参数描述 |
---|---|---|---|---|
appid | String | 是 | 合作伙伴AppId | |
timestamp | String | 是 | 1657525936 | 当前Unix时间戳,秒 |
seller_nick | String | 是 | oms38173182 | 抖店的账号,对应蜂巢授权返回doudianseller字段 |
sign | String | 是 |
业务参数
参数名称 | 参数类型 | 是否必须 | 示例值 | 参数描述 |
---|
无需业务参数传入
2. 请求示例代码(Java)
@Test
public void GetLogisticsCompanyList() throws Exception {
Map<String, Object> data = new HashMap<String, Object>();
data.put("appid", Config.AppId);
Long timestamp = System.currentTimeMillis() / 1000;
data.put("timestamp", timestamp.toString());
data.put("seller_nick", Config.DDSellerNick);
data.put("sign", Sign(data,Config.AppSecret));
// 调用服务API
String resp = doHttpRequest(Config.DDLogisticsCompanyListUrl, data);
System.out.println(resp);
}
3. 返回结果如下:
{
"code": 0,
"message": "ok",
"data": [
{
"id": 1033,
"name": "丰网速运",
"code": "fengwang"
},
{
"id": 20,
"name": "百世快递(常用)",
"code": "huitongkuaidi"
},
{
"id": 952,
"name": "韵达快运",
"code": "yundakuaiyun"
},
{
"id": 909,
"name": "圆通快运",
"code": "yuantongkuaiyun"
},
{
"id": 13,
"name": "德邦快递(常用)",
"code": "debangwuliu"
},
{
"id": 140,
"name": "中铁快运",
"code": "ztky"
},
{
"id": 15,
"name": "中通快递(常用)",
"code": "zhongtong"
},
{
"id": 1031,
"name": "林氏物流",
"code": "linshiwuliu"
},
{
"id": 1037,
"name": "山西建华",
"code": "shanxijianhua"
},
{
"id": 1043,
"name": "韵达国际",
"code": "udalogistic"
},
{
"id": 1048,
"name": "哪吒速运",
"code": "NZSY"
},
{
"id": 637,
"name": "百世快运",
"code": "baishiwuliu"
},
{
"id": 191,
"name": "九曳供应链",
"code": "jiuyescm"
},
{
"id": 1042,
"name": "闪货极速达",
"code": "shanhuodidi"
},
{
"id": 1047,
"name": "寻梦同城",
"code": "XMTC"
},
{
"id": 9,
"name": "韵达快递(常用)",
"code": "yunda"
},
{
"id": 641,
"name": "日日顺物流",
"code": "rrs"
},
{
"id": 854,
"name": "邮政国内",
"code": "yzguonei"
},
{
"id": 202,
"name": "苏宁物流",
"code": "suning"
},
{
"id": 14,
"name": "天天快递",
"code": "tiantian"
},
{
"id": 1017,
"name": "丹鸟",
"code": "danniao"
},
{
"id": 1052,
"name": "中通冷链",
"code": "ztocc"
},
{
"id": 1044,
"name": "每日优鲜",
"code": "meiriyouxian"
},
{
"id": 244,
"name": "盛辉物流",
"code": "shenghuiwuliu"
},
{
"id": 37,
"name": "黄马甲",
"code": "huangmajia"
},
{
"id": 517,
"name": "京广速递",
"code": "jinguangsudikuaijian"
},
{
"id": 846,
"name": "中通快运",
"code": "zhongtongkuaiyun"
},
{
"id": 1030,
"name": "顾家家居",
"code": "gujiajiaju"
},
{
"id": 1032,
"name": "泰进物流",
"code": "taijin"
},
{
"id": 1051,
"name": "快弟来了",
"code": "xlair"
},
{
"id": 10,
"name": "佳怡物流",
"code": "jiayiwuliu"
},
{
"id": 1039,
"name": "信天翁同城速配",
"code": "xintianweng"
},
{
"id": 1034,
"name": "圆通国际",
"code": "yuantongguoji"
},
{
"id": 1040,
"name": "顺丰国际",
"code": "shunfengguoji"
},
{
"id": 30,
"name": "京东物流(常用)",
"code": "jd"
},
{
"id": 968,
"name": "申通国际",
"code": "stosolution"
},
{
"id": 36,
"name": "信丰物流",
"code": "xinfengwuliu"
},
{
"id": 518,
"name": "天地华宇",
"code": "tiandihuayu"
},
{
"id": 327,
"name": "加运美",
"code": "jiayunmeiwuliu"
},
{
"id": 631,
"name": "安迅物流",
"code": "anxl"
},
{
"id": 475,
"name": "贝海国际速递",
"code": "xlobo"
},
{
"id": 32,
"name": "安能物流",
"code": "annengwuliu"
},
{
"id": 397,
"name": "跨越速运",
"code": "kuayue"
},
{
"id": 12,
"name": "顺丰速运(常用)",
"code": "shunfeng"
},
{
"id": 683,
"name": "邮政标准快递",
"code": "youzhengbk"
},
{
"id": 897,
"name": "壹米滴答",
"code": "yimidida"
},
{
"id": 861,
"name": "安得物流",
"code": "annto"
},
{
"id": 289,
"name": "特急送",
"code": "lntjs"
},
{
"id": 1026,
"name": "盛丰物流",
"code": "sfwl"
},
{
"id": 1035,
"name": "顺丰快运",
"code": "shunfengkuaiyun"
},
{
"id": 1018,
"name": "D速快递",
"code": "dsukuaidi"
},
{
"id": 597,
"name": "中通国际",
"code": "zhongtongguoji"
},
{
"id": 19,
"name": "邮政快递包裹",
"code": "youzhengguonei"
},
{
"id": 284,
"name": "安鲜达",
"code": "exfresh"
},
{
"id": 243,
"name": "速尔快递",
"code": "suer"
},
{
"id": 716,
"name": "速必达",
"code": "subida"
},
{
"id": 8,
"name": "申通快递(常用)",
"code": "shentong"
},
{
"id": 11,
"name": "优速快递",
"code": "youshuwuliu"
},
{
"id": 1025,
"name": "海信物流",
"code": "savor"
},
{
"id": 1036,
"name": "农夫山泉物流",
"code": "nongfushanquan"
},
{
"id": 1038,
"name": "紫乐工贸",
"code": "zilegongmao"
},
{
"id": 7,
"name": "圆通快递(常用)",
"code": "yuantong"
},
{
"id": 440,
"name": "芝麻开门",
"code": "zhimakaimen"
},
{
"id": 21,
"name": "宅急送",
"code": "zhaijisong"
},
{
"id": 1022,
"name": "众邮快递",
"code": "zhongyouex"
},
{
"id": 1024,
"name": "顺心捷达",
"code": "sxjdfreight"
},
{
"id": 1045,
"name": "芝华仕物流",
"code": "zhihuashi"
},
{
"id": 1050,
"name": "联运汇",
"code": "lyh"
},
{
"id": 317,
"name": "南方传媒物流",
"code": "ndwl"
},
{
"id": 31,
"name": "万象物流",
"code": "wanxiangwuliu"
},
{
"id": 1049,
"name": "传化物流",
"code": "chuanhua"
},
{
"id": 17,
"name": "EMS(常用)",
"code": "ems"
},
{
"id": 1021,
"name": "极兔速递",
"code": "jtexpress"
},
{
"id": 1029,
"name": "壹玖壹玖",
"code": "yijiuyijiu"
},
{
"id": 1053,
"name": "顺丰城配",
"code": "shunfengchengpei"
}
],
"trace_id": ""
}
4. 返回参数说明:
参数名称 | 参数类型 | 示例值 | 参数描述 |
---|---|---|---|
id | Int64 | 7 | 物流公司id |
name | String | 圆通快递 | 物流公司名字 |
code | String | yuantong | 物流公司code |
说明: code为0表示成功,非0为失败,message会包含失败原因。
文档更新时间: 2023-03-14 16:52 作者:admin