请求单次分账
单次分账请求按照传入的分账接收方账号和资金进行分账,同时会将订单剩余的待分账金额解冻给特约商户。故操作成功后,订单不能再进行分账,也不能进行分账完结。 官方文档
js
wxpay.v2.secapi.pay.profitsharing.post({
mch_id,
sub_mch_id,
brand_mch_id,
appid,
sub_appid,
nonce_str,
sign_type,
transaction_id,
out_order_no,
receivers,
}, { security })
.then(
({
data: {
sub_appid,
sub_mch_id,
return_code,
return_msg,
appid,
mch_id,
nonce_str,
sign,
result_code,
err_code,
err_code_des,
brand_mch_id,
transaction_id,
out_order_no,
order_id,
status,
receivers,
},
}) => ({
sub_appid,
sub_mch_id,
return_code,
return_msg,
appid,
mch_id,
nonce_str,
sign,
result_code,
err_code,
err_code_des,
brand_mch_id,
transaction_id,
out_order_no,
order_id,
status,
receivers,
})
)