跳转到内容
返回官网

获取面单模板信息

一、请求参数

请求URL:

POST https://kf.fw199.com/gateway/wxstore/waybill/template/get

参数名称参数类型是否必须示例值参数描述
appidString合作伙伴AppId
timestampString1657525936当前Unix时间戳,秒
seller_nickString38173182店铺账号,对应蜂巢授权返回seller_nick字段
signString

业务参数

参数名称参数类型是否必须示例值参数描述
delivery_idString快递公司编码
store_typeString0:微信小店,1:微信供应商

二、请求示例代码

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);
}

三、返回结果

返回结果如下

{
"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会有失败原因。