请求分账回退(平台收付通)
订单已经分账,在退款时,可以先调此接口,将已分账的资金从分账接收方的账户回退给分账方,再发起退款。 官方文档
js
wxpay.v3.ecommerce.profitsharing.returnorders.post({
sub_mchid,
order_id,
out_order_no,
out_return_no,
return_mchid,
amount,
description,
})
.then(
({
data: {
sub_mchid,
order_id,
out_order_no,
out_return_no,
return_mchid,
amount,
return_no,
result,
fail_reason,
finish_time,
},
}) => ({
sub_mchid,
order_id,
out_order_no,
out_return_no,
return_mchid,
amount,
return_no,
result,
fail_reason,
finish_time,
})
)
查询分账回退结果(平台收付通)
商户需要核实回退结果,可调用此接口查询回退结果;如果分账回退接口返回状态为处理中,可调用此接口查询回退结果。 官方文档
js
wxpay.v3.ecommerce.profitsharing.returnorders.get({
params,
})
.then(
({
data: {
sub_mchid,
order_id,
out_order_no,
out_return_no,
return_mchid,
amount,
return_no,
result,
fail_reason,
finish_time,
},
}) => ({
sub_mchid,
order_id,
out_order_no,
out_return_no,
return_mchid,
amount,
return_no,
result,
fail_reason,
finish_time,
})
)