请问解决了嘛?我的公众号已经认证了,也开通了电子发票的权限,获取出来的item_list也是空的。
使用 getinvoicebatch 批量接口获取发票信息,返回成功,但数据是空的我是通过外部app拉起微信发票列表https://developers.weixin.qq.com/doc/offiaccount/WeChat_Invoice/E_Invoice/Reimburser_API_List.html#4,选中发票之后,使用返回的card_id和encrypt_code在服务端调用 https://api.weixin.qq.com/card/invoice/reimburse/getinvoicebatch?access_token={access_token} 返回接口成功,但是数据为空!!! 检查调用参数应该都没有问题,access_token也确认是有效的,参数如下 公众号的appid: wxbedc10cb4409502e 请求参数: (json string) "{\"item_list\":[{\"card_id\":\"pIKi3wY9q98E9aM0uwSLZuhtXJYQ\",\"encrypt_code\":\"O/mPnGTpBu22a1szmK2ogzhFPBh9eYzv2p70L8yzyykBoTdEGnOi8TSuvAUzX8Xrc7ZOwPwPIZFVEDuARUDr95Rse7x8F7H3ei0QpGVvb5hRs9KimtwuzmdIeV5SSjeF\"},{\"card_id\":\"pIKi3wYoVhiX0MAd2rf1_ArSFmME\",\"encrypt_code\":\"O/mPnGTpBu22a1szmK2ogzhFPBh9eYzv2p70L8yzyykBoTdEGnOi8TSuvAUzX8Xrb3Rggz3ixGI3/YhWMIH26IlRwOLkhqTo2hwTsJcYbItRs9KimtwuzmdIeV5SSjeF\"}]}" 返回: (json string) "{\"errcode\":0,\"errmsg\":\"ok\",\"item_list\":[]}" 求大佬帮忙看看是什么问题?是否有漏掉了什么配置或权限之类的,不胜感激
2021-02-03appid:wxb00781ce505dbe68 请求包:https://api.weixin.qq.com/card/invoice/reimburse/getinvoicebatch?access_token=41_oo90V-g80Zd6R7yo-vtF56gzKQQ4YXHKXuCpBjo6SjDQPKsnd37DssZ1d5-C2GyJryv8N3yVppaYiHXfj5s0Djm9ziClj8NQgK1s5U3JpUx7OrZO0NnEe9Rk--i_FCmlgneBNVjhTxo6zvFcGYXaAAAASR body为: { "item_list":[{"card_id":"pnAsy0oLtDhJP-8xKHP8BWP_5xYU","encrypt_code":"O/mPnGTpBu22a1szmK2ogzhFPBh9eYzv2p70L8yzyynlTOEE9fSC4PXvOGuLIWfqWdX27+WFPo9ivCQzbwDw2EDbDlapZx+wuZ1WtDi+MJzLfm5bIh9vvfVZgydz4lIrD0YR64CYsjzp5yedf4eO+w=="},{"card_id":"pnAsy0oLtDhJP-8xKHP8BWP_5xYU","encrypt_code":"O/mPnGTpBu22a1szmK2ogzhFPBh9eYzv2p70L8yzyynlTOEE9fSC4PXvOGuLIWfqJRmQYE8QD9mmGjaCtEE6UQDdqqDEr3ewGP6QcWgj+afLfm5bIh9vvfVZgydz4lIrD0YR64CYsjzp5yedf4eO+w=="}]} 回包:errcode: 0 errmsg: "ok" item_list: []
批量查询报销发票信息返回的item_list为空,这是为什么?各位大佬好,我请求到了发票的card_id和encrypt_code,然后组成list,发送给了https://api.weixin.qq.com/card/invoice/reimburse/getinvoicebatch?access_token={access_token},返回的状态码是0,但是item_list是空。 [图片]
2021-02-02