分账回退
此功能需要接收方在商户平台-交易中心-分账-分账接收设置下,开启同意分账回退后,才能使用。分账回退的时限是180天。 官方文档
js
wxpay.v2.secapi.pay.profitsharingreturn.post({
mch_id,
sub_mch_id,
appid,
sub_appid,
nonce_str,
sign_type,
order_id,
out_order_no,
out_return_no,
return_account_type,
return_account,
return_amount,
description,
}, { security })
.then(
({
data: {
return_code,
return_msg,
appid,
mch_id,
nonce_str,
sign,
result_code,
err_code,
err_code_des,
sub_mch_id,
sub_appid,
sign_type,
order_id,
out_order_no,
out_return_no,
return_no,
return_account_type,
return_account,
return_amount,
description,
result,
fail_reason,
finish_time,
},
}) => ({
return_code,
return_msg,
appid,
mch_id,
nonce_str,
sign,
result_code,
err_code,
err_code_des,
sub_mch_id,
sub_appid,
sign_type,
order_id,
out_order_no,
out_return_no,
return_no,
return_account_type,
return_account,
return_amount,
description,
result,
fail_reason,
finish_time,
})
)