微信支付转账明细单号查询明细单
微信商家转账明细单号查单接口。商户可以通过该接口查询单笔转账明细单。返回消息中包含微信明细单号、明细状态、转账金额、失败原因、收款用户姓名、收款用户OpenID等信息。 官方文档
js
wxpay.v3.platsolution.mchTransfer.batches.batchId._batch_id_.details.detailId._detail_id_.get({
batch_id,
detail_id,
params,
})
.then(
({
data: {
out_batch_no,
batch_id,
out_detail_no,
detail_id,
sp_appid,
sub_mchid,
sub_appid,
create_time,
detail_state,
transfer_amount,
transfer_remark,
fail_reason,
openid,
bank_type,
user_name,
transfer_finish_time,
bank_refund_time,
},
}) => ({
out_batch_no,
batch_id,
out_detail_no,
detail_id,
sp_appid,
sub_mchid,
sub_appid,
create_time,
detail_state,
transfer_amount,
transfer_remark,
fail_reason,
openid,
bank_type,
user_name,
transfer_finish_time,
bank_refund_time,
})
)