面单回收

面单回收

1.请求参数:

请求URL:

POST https://kf.fw199.com/gateway/xhs/waybill/cancel

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

业务参数

参数名称 参数类型 是否必须 参数描述
waybill_code String 必需 快递单号
wp_code String 必需 快递公司编码

2. 请求示例代码(Java)

@Test  
public void waybillCancel() 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("wp_code", "POSTB");    
        data.put("waybill_code", "xxxx");   
    // 参数签名  
    data.put("sign", Utils.Sign(data, Config.AppSecret));  
    String result = doHttpRequest(apiUrl, data);  
    System.out.println("result:"+result);  
}

3. 返回结果

返回结果如下

{
    "code": 0,
    "message": "处理成功",
    "data": {
        "772045592697942": true
    }
}

返回code为0表示成功, 非0为失败,失败时message会有失败原因。

文档更新时间: 2025-12-29 20:26   作者:admin