查询分账结果
发起分账请求后,可调用此接口查询分账结果;发起分账完结请求后,可调用此接口查询分账完结的执行结果。 官方文档
js
wxpay.v2.pay.profitsharingquery.post({
mch_id,
sub_mch_id,
transaction_id,
out_order_no,
nonce_str,
sign_type,
})
.then(
({
data: {
sub_appid,
sub_mch_id,
return_code,
return_msg,
appid,
mch_id,
nonce_str,
sign,
result_code,
err_code,
err_code_des,
transaction_id,
out_order_no,
order_id,
status,
close_reason,
receivers,
amount,
description,
},
}) => ({
sub_appid,
sub_mch_id,
return_code,
return_msg,
appid,
mch_id,
nonce_str,
sign,
result_code,
err_code,
err_code_des,
transaction_id,
out_order_no,
order_id,
status,
close_reason,
receivers,
amount,
description,
})
)