获取面单模板信息
获取面单模板信息
1.请求参数:
请求URL:
POST https://kf.fw199.com/gateway/wxv/express/template/detail
| 参数名称 | 参数类型 | 是否必须 | 示例值 | 参数描述 |
|---|---|---|---|---|
| appid | String | 是 | 合作伙伴AppId | |
| timestamp | String | 是 | 1657525936 | 当前Unix时间戳,秒 |
| seller_nick | String | 是 | 38173182 | 店铺账号,对应蜂巢授权返回seller_nick字段 |
| sign | String | 是 |
业务参数
| 参数名称 | 参数类型 | 是否必须 | 示例值 | 参数描述 |
|---|---|---|---|---|
| delivery_id | String | 是 | 快递公司编码 |
2. 请求示例代码(Java)
@Test
public void GetExpressTemplateDetail() throws Exception {
String sellerNick = "xxx";
//业务参
Map<String, String> data = new HashMap();
data.put("appid", Config.AppId);
data.put("seller_nick", sellerNick);
Long timestamp = System.currentTimeMillis();
data.put("timestamp", timestamp.toString());
data.put("delivery_id", "xxx");
// 参数签名
data.put("sign", Utils.Sign(data, Config.AppSecret));
String result = doHttpRequest(apiUrl, data);
System.out.println("result:"+result);
}
3. 返回结果
返回结果如下
{
"code": 0,
"message": "处理成功",
"data": [
{
"delivery_id": "YTO",
"default_template_id": "6636420293",
"template_list": [
{
"template_id": "6636420293",
"template_name": "123",
"template_desc": "一联单标准模板",
"template_type": "single",
"create_time": 1749204992,
"update_time": 1749205005,
"is_default": true,
"options": [
{
"option_id": 0,
"font_size": 0,
"is_bold": false,
"is_open": false
},
{
"option_id": 1,
"font_size": 0,
"is_bold": false,
"is_open": true
},
{
"option_id": 2,
"font_size": 0,
"is_bold": false,
"is_open": false
},
{
"option_id": 3,
"font_size": 0,
"is_bold": false,
"is_open": false
},
{
"option_id": 4,
"font_size": 0,
"is_bold": false,
"is_open": false
},
{
"option_id": 5,
"font_size": 0,
"is_bold": false,
"is_open": false
},
{
"option_id": 6,
"font_size": 0,
"is_bold": false,
"is_open": false
},
{
"option_id": 7,
"font_size": 0,
"is_bold": false,
"is_open": false
}
]
}
]
}
]
}
返回code为0表示成功, 非0为失败,失败时message会有失败原因。
文档更新时间: 2025-12-29 20:24 作者:admin