卖家回填物流信息

卖家同意买家发起的退货申请,收到货物回填物流信息,如果买家已经回填物流信息,则接口报错,目前仅支持天猫订单。

1.请求参数:

请求URL:

POST https://kf.fw199.com/gateway/taobao/refund/returngoods/refill

参数名 类型 必须 示例值 说明
appid String true uwkahf@jfs92 合作伙伴AppId
timestamp String true 1633618722 当前时间戳
tb_seller_nick String true kingdo 淘宝卖家店铺登录账号,非店铺名称
sign String true 999de41d862efaa6f1084ead3b3ba480 如何计算生成见示例代码
refund_id Number true 123456 退款单编号
refund_phase String true onsale 退款阶段,可选值:售中:onsale,售后:aftersale
logistics_waybill_no String true EG893082275CS 物流公司运单号
logistics_company_code String true EMS 物流公司编号
sysid String false 100 代表不同的应用,具体请咨询客服,否则接口会调用失败

2. 请求示例代码(Java)

    @Test
    public void  TaoBaorefundreturnRefill() throws Exception { 
        Map<String, String> data = new HashMap<String, String>();
        data.put("appid",  Config.AppId);
        Long timestamp = System.currentTimeMillis() / 1000;
        data.put("timestamp", timestamp.toString());
        data.put("tb_seller_nick", Config.TBSellerNick);
        data.put("refund_id", "132020568245563058");
        data.put("refund_phase", "aftersale");
        data.put("logistics_waybill_no", "EG893082275CS");
        data.put("logistics_company_code", "EMS");
            // data.put("sysid", "103");
        // 签名
        data.put("sign", Utils.Sign(data,Config.AppSecret));
        // 调用服务API
        doHttpRequest(Config.TaoBaorefundreturnRefillUrl ,data);

    }

3. 返回结果

返回结果如下

{
    "code": 0,
    "message": "ok",
    "data": {
            "is_success": true,  // 验货操作是否成功
         }
}

说明: code为0表示成功,非0为失败,message会包含失败原因。 以is_success为准其他响应参数说明如下:

文档更新时间: 2023-11-15 15:58   作者:admin