小程序
小游戏
企业微信
微信支付
扫描小程序码分享
账单主键:401,打款失败,原因:OPENID_INVALID
请问这个错误原因是什么、
3 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
调的什么接口,请求参数是什么,返回的完整报错又是什么?
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
第一个是发起提现,然后成功了
第二个是我去调用查看,结果是失败的
【请求地址】:https://api.mch.weixin.qq.com/v3/transfer/batches
【请求数据】:{"appid":"wx3e3e381d729e944f","out_batch_no":"AT202307184272419573","batch_name":"提现批次","batch_remark":"提现","total_amount":1000,"total_num":1,"transfer_detail_list":[{"out_detail_no":"AT202307184272419573","transfer_amount":1000,"transfer_remark":"提现金额","openid":"oh-j75Kd6nUFxFf-bMV2VAVYii1g"}]}
【响应数据】:{"batch_id":"131000406096501454946292023071811704268450","batch_status":"ACCEPTED","create_time":"2023-07-18T13:17:42+08:00","out_batch_no":"AT202307184272419573"}
2023-07-18 13:17:43.032 |-INFO [http-nio-8232-exec-5] com.ysq.bjyuan.module.takeout.service.impl.TakeoutUserTransferServiceImpl [362] -| 商户转账完成:[msg:TransferBatchesResult(outBatchNo=AT202307184272419573, batchId=131000406096501454946292023071811704268450, createTime=2023-07-18T13:17:42+08:00)]
2023-07-18 13:18:00.527 |-INFO [scheduling-1] com.github.binarywang.wxpay.service.impl.WxPayServiceImpl [224] -|
【请求地址】:https://api.mch.weixin.qq.com/v3/transfer/batches/out-batch-no/AT202307184272419573/details/out-detail-no/AT202307184272419573
【响应数据】:{"appid":"wx3e3e381d729e944f","batch_id":"131000406096501454946292023071811704268450","detail_id":"132000406096501454946292023071801330694430","detail_status":"FAIL","fail_reason":"OPENID_INVALID","mchid":"1625187557","openid":"oh-j75Kd6nUFxFf-bMV2VAVYii1g","out_batch_no":"AT202307184272419573","out_detail_no":"AT202307184272419573","transfer_amount":1000,"transfer_remark":"提现金额","update_time":"2023-07-18T13:17:48+08:00"}
2023-07-18 13:18:00.529 |-INFO [scheduling-1] com.ysq.bjyuan.module.takeout.job.TakeoutUserTransferJob [99] -| 账单主键:401,打款失败,原因:OPENID_INVALID
openid 无效
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
调的什么接口,请求参数是什么,返回的完整报错又是什么?
第一个是发起提现,然后成功了
第二个是我去调用查看,结果是失败的
【请求地址】:https://api.mch.weixin.qq.com/v3/transfer/batches
【请求数据】:{"appid":"wx3e3e381d729e944f","out_batch_no":"AT202307184272419573","batch_name":"提现批次","batch_remark":"提现","total_amount":1000,"total_num":1,"transfer_detail_list":[{"out_detail_no":"AT202307184272419573","transfer_amount":1000,"transfer_remark":"提现金额","openid":"oh-j75Kd6nUFxFf-bMV2VAVYii1g"}]}
【响应数据】:{"batch_id":"131000406096501454946292023071811704268450","batch_status":"ACCEPTED","create_time":"2023-07-18T13:17:42+08:00","out_batch_no":"AT202307184272419573"}
2023-07-18 13:17:43.032 |-INFO [http-nio-8232-exec-5] com.ysq.bjyuan.module.takeout.service.impl.TakeoutUserTransferServiceImpl [362] -| 商户转账完成:[msg:TransferBatchesResult(outBatchNo=AT202307184272419573, batchId=131000406096501454946292023071811704268450, createTime=2023-07-18T13:17:42+08:00)]
2023-07-18 13:18:00.527 |-INFO [scheduling-1] com.github.binarywang.wxpay.service.impl.WxPayServiceImpl [224] -|
【请求地址】:https://api.mch.weixin.qq.com/v3/transfer/batches/out-batch-no/AT202307184272419573/details/out-detail-no/AT202307184272419573
【响应数据】:{"appid":"wx3e3e381d729e944f","batch_id":"131000406096501454946292023071811704268450","detail_id":"132000406096501454946292023071801330694430","detail_status":"FAIL","fail_reason":"OPENID_INVALID","mchid":"1625187557","openid":"oh-j75Kd6nUFxFf-bMV2VAVYii1g","out_batch_no":"AT202307184272419573","out_detail_no":"AT202307184272419573","transfer_amount":1000,"transfer_remark":"提现金额","update_time":"2023-07-18T13:17:48+08:00"}
2023-07-18 13:18:00.529 |-INFO [scheduling-1] com.ysq.bjyuan.module.takeout.job.TakeoutUserTransferJob [99] -| 账单主键:401,打款失败,原因:OPENID_INVALID
openid 无效