请求url:https://api.weixin.qq.com/card/invoice/insert?access_token={{access_token}}
请求参数:
{
"order_id": "24790001",
"card_id": "p74fFuB5Y4FROyIpj_CnDCf8RFVI",
"appid": "wx486c34e1d3ff54d6",
"card_ext": {
"nonce_str": "2232212",
"user_card": {
"invoice_user_data": {
"info": [
{
"price": 100,
"num": 1,
"name": "牙膏",
"unit": "个"
}
],
"fee": 100,
"title": "xx公司",
"billing_time": 1514516595,
"billing_no": "011001600111",
"billing_code": "09001131",
"tax": 3,
"fee_without_tax": 97,
"s_pdf_media_id ": "73338439723909664",
"check_code":"123"
}
}
}
}
返回内容:
{
"errcode": 72031,
"errmsg": "invalid params hint: [DW9w_a0971e264]"
}
文档地址:https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1497082828_r1cI2
文档标题:将电子发票卡券插入用户卡包
疑问:文档中有提到check_code为必填字段,请问下check_code是从哪里来。
我也是同样问题,后面发现我上传的PDF,不仅要是真实的PDF电子发票,而且不能是已存在微信卡包的
电子发票有检验码字段