发起批量转账
商户可以通过该接口同时向多个用户微信零钱进行转账操作。 官方文档
js
wxpay.v3.transfer.batches.post({
appid,
out_batch_no,
batch_name,
batch_remark,
total_amount,
total_num,
transfer_detail_list,
transfer_scene_id,
notify_url,
}, { headers, })
.then(
({
data: {
out_batch_no,
batch_id,
create_time,
batch_status,
},
}) => ({
out_batch_no,
batch_id,
create_time,
batch_status,
})
)