受理商家转账
发起商家转账接口。商户可以通过该接口同时向多个已经确认预约的用户进行转账操作。 官方文档
js
wxpay.v3.platsolution.mchTransfer.batches.apply.post({
sub_mchid,
sp_appid,
sub_appid,
out_batch_no,
batch_name,
batch_remark,
total_amount,
total_num,
transfer_scene_id,
transfer_detail_list,
notify_url,
})
.then(
({
data: {
out_batch_no,
batch_id,
create_time,
batch_state,
},
}) => ({
out_batch_no,
batch_id,
create_time,
batch_state,
})
)