你好,在开票平台接口列表场景中,已经开出了发票并且将发票插入了用户卡包。
然后在测试发票冲红后更新卡包状态接口,调用”6 更新发票卡券状态“接口(https://api.weixin.qq.com/card/invoice/platform/updatestatus),传入access_token,及body内容
{"card_id":"p7XKBwYXVAECMeA-OIPO5Z6-lxl8","code":"044001900411","reimburse_status":"INVOICE_REIMBURSE_INIT"}
请求返回
{
"errcode": 72038,
"errmsg": "invoice order never auth hint: [SkeVEA0268ld42][2020-07-14 19:47:48]"
}
请问下,这是什么原因导致的?
期待您的回复,谢谢!
有解决吗?我这边更新卡包发票状态也是返回72038
{"errcode":72038,"errmsg":"invoice order never auth hint: [luMTga01171565]"} 将发票插入卡包,一直报这个
你好,麻烦补充下appid,请求包,请求时间
body:{"card_id":"p7XKBwYXVAECMeA-OIPO5Z6-lxl8","code":"044001900411","reimburse_status":"INVOICE_REIMBURSE_INIT"}
请求时间:7月15日 10:15:03
https://api.weixin.qq.com/card/invoice/platform/updatestatus?access_token=35_sSgRTclc65gRBz8awj4yZUlsjiWQRHa5GSC0qlmN5-7fn-naIf9BDZDnTvjGlBhY5bvoadtb8R-JOG8lP8n__C-3uW6VSo492XwAPSsMllzPyrRseGS2HZpKFAJwQWHqHav9JGu-xoop5E10VRJdAHAFBT&=
我使用的是https://developers.weixin.qq.com/doc/offiaccount/WeChat_Invoice/E_Invoice/Invoicing_Platform_API_List.html 开票平台接口,
之前通过“5 将电子发票卡券插入用户卡包”将发票插入到了用户卡包,微信返回成功。
插入卡包请求为:
https://api.weixin.qq.com/card/invoice/insert?access_token=35_Ikebw6dF3WP3TIzQ8QTm_7VYqG9kiW3k1PAgFBDwLOcf6yE2mQrYwox7RTIqHB1z2B9syVLHC_O3d6PcNEEBQuMRD5PFUKFnn1MPiL5TgqKyoH8rS0MdKfNIn_L0hL97-SgLi45adOlX0IXmFFAeAIAOOJ
body:
{"appid":"wx5e6c20b2d813400b","card_ext":{"nonce_str":"ab765478099c4b94a935bd23902c8a81","user_card":{"invoice_user_data":{"billing_code":"144002010000","billing_no":"00263938","billing_time":1595433600,"check_code":"67504341851760893746","fee":6,"fee_without_tax":5,"s_pdf_media_id":"2164624132935910004","tax":6,"title":"躺一会"}}},"card_id":"p5MQN6OCv-JZeaQ2lbSLXX9Sjy_g","order_id":"2020072310100000002"}
返回:
{"errcode":"0","errmsg":"ok"}
然后通过更新发票卡券状态接口更新发票状态:
请求:
https://api.weixin.qq.com/card/invoice/platform/updatestatus?access_token=35_Ikebw6dF3WP3TIzQ8QTm_7VYqG9kiW3k1PAgFBDwLOcf6yE2mQrYwox7RTIqHB1z2B9syVLHC_O3d6PcNEEBQuMRD5PFUKFnn1MPiL5TgqKyoH8rS0MdKfNIn_L0hL97-SgLi45adOlX0IXmFFAeAIAOOJ
body:
{"card_id":"p5MQN6OCv-JZeaQ2lbSLXX9Sjy_g","code":"144002010000","reimburse_status":"INVOICE_REIMBURSE_CANCEL"}
还是返回:
{
"errcode": 72038,
"errmsg": "invoice order never auth hint: [D.j2MA0379d236][2020-07-23 11:19:39]"
}
看两次请求的card_id都是一样的,发票也插入成功了。为什么更新状态失败?期待您的解答