收藏
回答

用户提现失败,微信支付返回: 账单主键:401,打款失败,原因:OPENID_INVALID ?

 账单主键:401,打款失败,原因:OPENID_INVALID

请问这个错误原因是什么、

回答关注问题邀请回答
收藏

3 个回答

  • Memory
    Memory
    2023-07-18

    调的什么接口,请求参数是什么,返回的完整报错又是什么?

    2023-07-18
    有用 1
    回复
  • 刘伟宏
    刘伟宏
    2023-07-18

    第一个是发起提现,然后成功了

    第二个是我去调用查看,结果是失败的

    【请求地址】: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

    2023-07-18
    有用
    回复 1
    • Memory
      Memory
      2023-07-18
      受理成功不代表转账成功,报错的意思是Openid格式错误或者不属于商家公众账号
      2023-07-18
      回复
  • จุ๊บ
    จุ๊บ
    2023-07-18

    openid 无效

    2023-07-18
    有用
    回复
登录 后发表内容