跳转到内容
返回官网

卖家回填物流信息

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

一、请求参数

请求URL:

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

参数名类型必须示例值说明
appidStringtrueuwkahf@jfs92合作伙伴AppId
timestampStringtrue1633618722当前时间戳
tb_seller_nickStringtruekingdo淘宝卖家店铺登录账号,非店铺名称
signStringtrue999de41d862efaa6f1084ead3b3ba480如何计算生成见示例代码
refund_idNumbertrue123456退款单编号
refund_phaseStringtrueonsale退款阶段,可选值:售中:onsale,售后:aftersale
logistics_waybill_noStringtrueEG893082275CS物流公司运单号
logistics_company_codeStringtrueEMS物流公司编号
sysidStringfalse100代表不同的应用,具体请咨询客服,否则接口会调用失败

二、请求示例代码

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

三、返回结果

返回结果如下

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

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