收藏
回答

微信公众号电子发票,批量查询报销发票信息,返回信息是不是有错误?

请求体:

{"item_list":[{"card_id":"p66eJt2m9E6AmUVVgfTvQUVEs0aE","encrypt_code":"O/mPnGTpBu22a1szmK2ogzhFPBh9eYzv2p70L8yzyyl43Vc3UITey+r4ojHa6b6zVFM3wJAeqspgK01OgmR4pu0Te2QDNHKm/8NRMkD9YlNXuhc2XBoQAuJppmE6bJl0","app_id":"wxe41be7195ca7233d"}]}

响应:

{"errcode":0,"errmsg":"ok","item_list":[{"user_info":{"fee":735200,"title":"深圳市华商数据科技有限公司","billing_time":1629129600,"billing_no":"012002100211","billing_code":"02831872","info":[{"name":"*运输服务*客运服务费","price":-1}],"fee_without_tax":-1,"tax":-1,"pdf_url":"https:\/\/mp.weixin.qq.com\/intp\/invoice\/getpdf?type=invoice&card_id=p66eJt2m9E6AmUVVgfTvQUVEs0aE&wx_invoice_token=pMH15MQXG9O477_Vmnyupbxs7zIpVvWddrHk_zMcWGcL0SbA2oBqUM2qfo-x-C6J5DM11EQPOVICBUwo0ueL1A.%3D","reimburse_status":"INVOICE_REIMBURSE_INIT","order_id":"02831872-012002100211","check_code":"","buyer_number":"","buyer_address_and_phone":"","buyer_bank_account":"","seller_number":"","seller_address_and_phone":"","seller_bank_account":""},"card_id":"p66eJt2m9E6AmUVVgfTvQUVEs0aE","openid":"o2o8JwiKfJUDMUiHEyzp88ZUPgyU","type":"增值税电子普通发票","payee":"滴滴出行科技有限公司","detail":""}]}

问题:

1、返回的user_info.fee不对,发票金额是73.52元,精确到分那也是7352,不是735200;

2、返回的user_info.pdf_url不对,访问这个地址一直出错,报参数错误;

3、因为我的微信卡包里面有好几张发票,其中只有一张没问题,可以下载pdf,也能返回正确的金额。其余的几张发票都出现了上述两个问题。

下图所示,第二张发票可以正确获取,第一张发票获取的信息见上面贴的响应内容。

回答关注问题邀请回答
收藏
登录 后发表内容