总帖 >【逆向交易接口】八大场景接口对接说明
场景说明: 买家申请退款后或者买家并未申请维权,商家由于商品缺货或其他问题需要主动给买家退款,该如何操作?
——微商城后台-订单-所有订单-点击查看详情;
——在订单详情页面,点击主动退款,退款给买家;
——点击后,输入退款金额即可完成主动退款,退款将在3-15个工作日返回买家支付账户;
——通过哪个接口可以完成商家“主动退款”操作? (1)商家主动退款:youzan.trade.refund.seller.active (3)重要字段说明: 》》desc:退款原因,需要给买家说明退款原因,比如缺货,无法发货等; 》》refund_fee:退款金额,单位“元”; 》》tid:订单号,需要退款的订单号; (4)调用格式: 通过(2)中链接访问后:
(5)HTTP调用示例:
(6)JAVA调用示例: YZClient client = new DefaultYZClient(new Token("token"));//new Sign(appKey, appSecret) YouzanTradeRefundSellerActiveParamsyouzanTradeRefundSellerActiveParams = newYouzanTradeRefundSellerActiveParams(); youzanTradeRefundSellerActiveParams.setDesc("test"); youzanTradeRefundSellerActiveParams.setOid(18053804L); youzanTradeRefundSellerActiveParams.setRefundFee("0.10"); youzanTradeRefundSellerActiveParams.setTid("E20180904164447048500008"); YouzanTradeRefundSellerActive youzanTradeRefundSellerActive= new YouzanTradeRefundSellerActive(); youzanTradeRefundSellerActive.setAPIParams(youzanTradeRefundSellerActiveParams); YouzanTradeRefundSellerActiveResult result =client.invoke(youzanTradeRefundSellerActive);
总帖 >【逆向交易接口】八大场景接口对接说明
|