跳转到内容
返回官网

获取菜鸟标准电子面单模板

获取菜鸟标准电子面单模板,此接口无须店铺授权

一、请求参数

请求URL:

POST https://kf.fw199.com/gateway/taobao/cainiao/cloudprint/getstdtemplates

参数名类型说明示例
appidString合作伙伴AppIduwkahf@jfs92
timestampString当前时间戳
tb_seller_nickString淘宝卖家店铺登录账号,非店铺名称kingdo
signString接口签名如何计算生成见示例代码

二、请求示例代码

Java

@Test
public void getCloudPrintStdtemplates() throws Exception {
String tb_seller_nick = Config.TBSellerNick ;
//业务参数
Map<String, String> data = new HashMap<String, String>();
data.put("appid", Config.AppId);
data.put("tb_seller_nick", tb_seller_nick);
Long timestamp = System.currentTimeMillis() / 1000;
data.put("timestamp", timestamp.toString());
data.put("sign", Utils.Sign(data,Config.AppSecret));
// 调用服务API
doHttpRequest(Config.TaoBaoCaiNiaoCloudPrintStdtemplatesUrl ,data);
}

三、返回结果

下面返回只是部分数据, 最新最全的数据请自行调用接口获取.

{
"code": 0,
"message": "ok",
"data": {
"request_id": "16mlmwwqchwbn",
"result": {
"datas": {
"standard_template_result": [
{
"cp_code": "LE16250370",
"standard_templates": {
"standard_template_do": [
{
"standard_template_id": 576416,
"standard_template_name": "渡石医药快运标准模板",
"standard_template_url": "https://cloudprint.cainiao.com/template/standard/576416/1",
"standard_waybill_type": 4,
"brand_code": "default"
}
]
}
},
{
"cp_code": "ZTKY",
"standard_templates": {
"standard_template_do": [
{
"standard_template_id": 407120,
"standard_template_name": "中铁快运标准面单",
"standard_template_url": "https://cloudprint.cainiao.com/template/standard/407120/3",
"standard_waybill_type": 4,
"brand_code": "default"
}
]
}
},
{
"cp_code": "GTO",
"standard_templates": {
"standard_template_do": [
{
"standard_template_id": 1101,
"standard_template_name": "国通快递标准模板",
"standard_template_url": "https://cloudprint.cainiao.com/template/standard/1101/109",
"standard_waybill_type": 1,
"brand_code": "default"
},
{
"standard_template_id": 75504,
"standard_template_name": "国通快递标准三联模板",
"standard_template_url": "https://cloudprint.cainiao.com/template/standard/75504/30",
"standard_waybill_type": 2,
"brand_code": "default"
},
{
"standard_template_id": 574367,
"standard_template_name": "壹基金",
"standard_template_url": "https://cloudprint.cainiao.com/template/standard/574367/1",
"standard_waybill_type": 6,
"brand_code": "default"
}
]
}
},
{
"cp_code": "LE14322600",
"standard_templates": {
"standard_template_do": [
{
"standard_template_id": 541279,
"standard_template_name": "1688货运-标快金牌",
"standard_template_url": "https://cloudprint.cainiao.com/template/standard/541279/2",
"standard_waybill_type": 1,
"brand_code": "default"
},
{
"standard_template_id": 548605,
"standard_template_name": "1688货运-标快银牌",
"standard_template_url": "https://cloudprint.cainiao.com/template/standard/548605/1",
"standard_waybill_type": 6,
"brand_code": "default"
},
{
"standard_template_id": 548608,
"standard_template_name": "1688货运-特快",
"standard_template_url": "https://cloudprint.cainiao.com/template/standard/548608/1",
"standard_waybill_type": 3,
"brand_code": "default"
},
{
"standard_template_id": 549001,
"standard_template_name": "1688货运-标快60kg以上",
"standard_template_url": "https://cloudprint.cainiao.com/template/standard/549001/1",
"standard_waybill_type": 8,
"brand_code": "default"
},
{
"standard_template_id": 549101,
"standard_template_name": "1688货运-标快标准",
"standard_template_url": "https://cloudprint.cainiao.com/template/standard/549101/1",
"standard_waybill_type": 2,
"brand_code": "default"
}
]
}
},
{
"cp_code": "QFKD",
"standard_templates": {
"standard_template_do": [
{
"standard_template_id": 1401,
"standard_template_name": "全峰快递标准模板",
"standard_template_url": "https://cloudprint.cainiao.com/template/standard/1401/120",
"standard_waybill_type": 1,
"brand_code": "default"
},
{
"standard_template_id": 76802,
"standard_template_name": "全峰快递标准三联模板",
"standard_template_url": "https://cloudprint.cainiao.com/template/standard/76802/31",
"standard_waybill_type": 2,
"brand_code": "default"
}
]
}
},
{
"cp_code": "100005492",
"standard_templates": {
"standard_template_do": [
{
"standard_template_id": 474715,
"standard_template_name": "日日顺快递一联单",
"standard_template_url": "https://cloudprint.cainiao.com/template/standard/474715/2",
"standard_waybill_type": 6,
"brand_code": "default"
}
]
}
},
{
"cp_code": "UC",
"standard_templates": {
"standard_template_do": [
…(示例过长,已截断)

说明: code为0表示成功,非0为失败,message会包含失败原因。 data字段包含数据字段说明:。 cp_code : YTO cp编码 standard_template_id : 模板id standard_template_name: 模板名称 standard_template_ur: 模板url standard_waybill_type: 0:未定义, 1 快递标准面单 ,2 快递三联面单, 3 快递便携式三联单, 4 快运标准面单, 5 快运三联面单, 6 快递一联单

注意:淘宝卖家后台看到的“D速物流”在接口中即为递速物流,淘宝命名不同而已,快递代码cp_code为100007887。本次接口返回的电子面单模板中,会返回相关的D速物流(递速物流)的模板。