获取商家所有标准模版信息
查询物流商的标准模板。 注意:物流商模板平台会定期更新或新增,请开发者定期扫描该接口,保持和平台数据一致。
一、请求参数
请求URL:
POST https://kf.fw199.com/gateway/dd/logistics/template/list
公共参数
| 参数名称 | 参数类型 | 是否必须 | 示例值 | 参数描述 |
|---|---|---|---|---|
| appid | String | 是 | 合作伙伴AppId | |
| timestamp | String | 是 | 1657525936 | 当前Unix时间戳,秒 |
| seller_nick | String | 是 | oms38173182 | 抖店的账号,对应蜂巢授权返回doudianseller字段 |
| sign | String | 是 |
业务参数
| 参数名称 | 参数类型 | 是否必须 | 示例值 | 参数描述 |
|---|
无需业务参数传入
二、请求示例代码
Java
@Test public void LogisticstemplateList() 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.DDLogisticstemplateListUrl, data); System.out.println(resp);
}三、返回结果
{ "code": 0, "message": "ok", "data": { "template_data": [ { "template_infos": [ { "template_id": 2, "template_code": "jt_100_180", "template_name": "极兔二联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_100.xml", "version": 1, "template_type": 2, "perview_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_100_180.png" }, { "template_id": 1, "template_code": "jt_76_130", "template_name": "极兔一联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_76.xml", "version": 1, "template_type": 1, "perview_url": "https://lf9-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_76_130.png" } ], "logistics_code": "jtexpress" }, { "template_infos": [ { "template_id": 6, "template_code": "zt_100_180_v2", "template_name": "中通二联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_100.xml", "version": 1, "template_type": 2, "perview_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_100_180.png" }, { "template_id": 5, "template_code": "zt_76_130_v2", "template_name": "中通一联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_76.xml", "version": 1, "template_type": 1, "perview_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_76_130.png" } ], "logistics_code": "zhongtong" }, { "template_infos": [ { "template_id": 22, "template_code": "fengwang_76_130", "template_name": "丰网速运一联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_fengwang76.xml", "version": 1, "template_type": 1, "perview_url": "https://lf9-cm.ecombdstatic.com/obj/logistics-davinci/preview/fengwang_76_130.png" } ], "logistics_code": "fengwang" }, { "template_infos": [ { "template_id": 32, "template_code": "baishiwuliu_76_130", "template_name": "百世快运一联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_baishikuaiyun76.xml", "version": 1, "template_type": 1, "perview_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/preview/baishiwuliu_76_130.png" } ], "logistics_code": "baishiwuliu" }, { "template_infos": [ { "template_id": 35, "template_code": "suning_76_130", "template_name": "苏宁一联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_76.xml", "version": 1, "template_type": 1, "perview_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_76_130.png" } ], "logistics_code": "suning" }, { "template_infos": [ { "template_id": 21, "template_code": "zhongyou_76_130", "template_name": "众邮一联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_zhongyouex76.xml", "version": 1, "template_type": 1, "perview_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/preview/zhongyou_76_130.png" } ], "logistics_code": "zhongyouex" }, { "template_infos": [ { "template_id": 28, "template_code": "sfky_76_130", "template_name": "顺丰快运一联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_sfkuaiyun130.xml", "version": 1, "template_type": 1, "perview_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/preview/shunfengkuaiyun_76_130.png" } ], "logistics_code": "shunfengkuaiyun" }, { "template_infos": [ { "template_id": 34, "template_code": "zhongtongkuaiyun_100_180", "template_name": "中通快运二联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_zhongtongkuaiyun100.xml", "version": 1, "template_type": 2, "perview_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/preview/zhongtongkuaiyun_100_180.png" } ], "logistics_code": "zhongtongkuaiyun" }, { "template_infos": [ { "template_id": 20, "template_code": "st_100_180_v2", "template_name": "申通二联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_100.xml", "version": 1, "template_type": 2, "perview_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_100_180.png" }, { "template_id": 19, "template_code": "st_76_130_v2", "template_name": "申通一联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_76.xml", "version": 1, "template_type": 1, "perview_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_76_130.png" } ], "logistics_code": "shentong" }, { "template_infos": [ { "template_id": 36, "template_code": "ztgj_76_130", "template_name": "中通国际一联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/i18n/template_76_i18n.xml", "version": 1, "template_type": 1, "perview_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_76_130.png" }, { "template_id": 37, "template_code": "ztgj_100_180", "template_name": "中通国际二联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/i18n/template_100_i18n.xml", "version": 1, "template_type": 2, "perview_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_100_180.png" } ], "logistics_code": "zhongtongguoji" }, { "template_infos": [ { "template_id": 31, "template_code": "shunxinjieda_100_180", "template_name": "顺心捷达二联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_shunxinjieda_100.xml", "version": 1, "template_type": 2, "perview_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/preview/shunxinjieda_100_180.jpg" } ], "logistics_code": "sxjdfreight" }, { "template_infos": [ { "template_id": 38, "template_code": "dsu_76_130", "template_name": "D速快递一联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_dsu76.xml", "version": 1, "template_type": 1, "perview_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/preview/dsu_76_130.jpg" } ], "logistics_code": "dsukuaidi" }, { "template_infos": [ { "template_id": 39, "template_code": "kdll_76_130", "template_name": "快弟来了一联单", "template_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/template/v2/kuaidilaile_76_130.xml", "version": 1, "template_type": 1, "perview_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/preview/kdll_76_130.jpg" } ], "logistics_code": "xlair" }, { "template_infos": [ { "template_id": 40, "template_code": "nzsy_76_130", "template_name": "哪吒速运一联单", "template_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/template/v2/nezha_76_130.xml", "version": 1, "template_type": 1, "perview_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/preview/nzsy_76_130.jpg" } ], "logistics_code": "NZSY" }, { "template_infos": [ { "template_id": 3, "template_code": "shunfeng_76_130", "template_name": "顺丰一联单(76*130)", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_sf76.xml", "version": 1, "template_type": 1, "perview_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/preview/shunfeng_76_130.png" }, { "template_id": 4, "template_code": "shunfeng_100_150_v2", "template_name": "顺丰一联单(100*150)", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_sf100.xml", "version": 1, "template_type": 1, "perview_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/preview/shunfeng_100_150_v2.png" }, { "template_id": 25, "template_code": "shunfeng_100_180", "template_name": "顺丰二联(100*180)", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_sf180.xml", "version": 1, "template_type": 2, "perview_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/preview/shunfeng_100_180.png" } ], "logistics_code": "shunfeng" }, { "template_infos": [ { "template_id": 15, "template_code": "ht_76_130_v2", "template_name": "百世一联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_76.xml", "version": 1, "template_type": 1, "perview_url": "https://lf9-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_76_130.png" }, { "template_id": 16, "template_code": "ht_100_180_v2", "template_name": "百世二联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_100.xml", "version": 1, "template_type": 2, "perview_url": "https://lf9-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_100_180.png" } ], "logistics_code": "huitongkuaidi" }, { "template_infos": [ { "template_id": 10, "template_code": "yt_100_180_v2", "template_name": "圆通二联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_100.xml", "version": 1, "template_type": 2, "perview_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_100_180.png" }, { "template_id": 9, "template_code": "yt_76_130_v2", "template_name": "圆通一联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_76.xml", "version": 1, "template_type": 1, "perview_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_76_130.png" } ], "logistics_code": "yuantong" }, { "template_infos": [ { "template_id": 23, "template_code": "deppon_76_130_v2", "template_name": "德邦一联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_debang76.xml", "version": 1, "template_type": 1, "perview_url": "https://lf9-cm.ecombdstatic.com/obj/logistics-davinci/preview/deppon_76_130_v2.png" }, { "template_id": 26, "template_code": "deppon_100_180_v2", "template_name": "德邦二联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_debang180.xml", "version": 1, "template_type": 2, "perview_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/preview/deppon_100_180.png" } ], "logistics_code": "debangwuliu" }, { "template_infos": [ { "template_id": 33, "template_code": "jiuye_76_130", "template_name": "九曳一联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_76.xml", "version": 1, "template_type": 1, "perview_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_76_130.png" } ], "logistics_code": "jiuyescm" }, { "template_infos": [ { "template_id": 29, "template_code": "zhaijisong_76_130", "template_name": "宅急送一联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_zhaijisong76.xml", "version": 1, "template_type": 1, "perview_url": "https://lf9-cm.ecombdstatic.com/obj/logistics-davinci/preview/zhaijisong_76_130.png" } ], "logistics_code": "zhaijisong" }, { "template_infos": [ { "template_id": 30, "template_code": "annengwuliu_100_180", "template_name": "安能二联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_anneng100.xml", "version": 1, "template_type": 2, "perview_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/preview/anneng_100_180.jpg" } ], "logistics_code": "annengwuliu" }, { "template_infos": [ { "template_id": 17, "template_code": "jd_76_130", "template_name": "京东一联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_jd76.xml", "version": 1, "template_type": 1, "perview_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/preview/jd_76_130.png" } ], "logistics_code": "jd" }, { "template_infos": [ { "template_id": 12, "template_code": "yz_100_180_v2", "template_name": "邮政二联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_youzhengguonei100.xml", "version": 1, "template_type": 2, "perview_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_100_180.png" }, { "template_id": 11, "template_code": "yz_76_130_v2", "template_name": "邮政一联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_youzhengguonei76.xml", "version": 1, "template_type": 1, "perview_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_76_130.png" } ], "logistics_code": "youzhengguonei" }, { "template_infos": [ { "template_id": 24, "template_code": "danniao_76_130", "template_name": "丹鸟一联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_danniao130.xml", "version": 1, "template_type": 1, "perview_url": "https://lf9-cm.ecombdstatic.com/obj/logistics-davinci/preview/danniao_76_130.png" } ], "logistics_code": "danniao" }, { "template_infos": [ { "template_id": 27, "template_code": "youshu_100_180", "template_name": "优速-二联", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_yousu180.xml", "version": 1, "template_type": 2, "perview_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/preview/youshuwuliu_100_180.png" } ], "logistics_code": "youshuwuliu" }, { "template_infos": [ { "template_id": 14, "template_code": "ems_100_180", "template_name": "EMS二联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_ems100.xml", "version": 1, "template_type": 2, "perview_url": "https://lf9-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_100_180.png" }, { "template_id": 13, "template_code": "ems_76_130", "template_name": "EMS一联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_ems76.xml", "version": 1, "template_type": 1, "perview_url": "https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_76_130.png" } ], "logistics_code": "ems" }, { "template_infos": [ { "template_id": 8, "template_code": "yd_100_180_v2", "template_name": "韵达二联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_100.xml", "version": 1, "template_type": 2, "perview_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_100_180.png" }, { "template_id": 7, "template_code": "yd_76_130_v2", "template_name": "韵达一联单", "template_url": "https://lf6-cm.ecombdstatic.com/obj/logistics-davinci/template/template_76.xml", "version": 1, "template_type": 1, "perview_url": "https://lf9-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_76_130.png" } ], "logistics_code": "yunda" } ] }, "trace_id": ""}四、返回参数说明
| 参数名称 | 参数类型 | 示例值 | 参数描述 |
|---|---|---|---|
| template_id | Int64 | 14 | 模版id |
| template_code | String | ems_100_180 | 模版编码 |
| template_name | String | EMS二联单 | 模版名称 |
| template_url | String | https://lf3-cm.ecombdstatic.com/obj/logistics-davinci/template/template_ems100.xml | 模版URL |
| version | Int16 | 1 | 版本 |
| template_type | Int16 | 2 | 模版类型; 1-一联单 2-二联单 |
| perview_url | String | https://lf9-cm.ecombdstatic.com/obj/logistics-davinci/preview/jt_100_180.png | 预览URL |
| logistics_code | String | ems | 物流公司 |
说明: code为0表示成功,非0为失败,message会包含失败原因。