一、接口说明
1.识别加核验接口
参数名称 |
参数类型 |
参数说明 |
file |
MultipartFile |
上传文件 |
fileLink |
String |
文件链接地址 |
verify |
Integer |
是否开启核验,0-不开启,1-开启(非必传) |
cutImage |
Integer |
是否裁切图片,0-不裁切,1-裁切(非必传) |
invoiceType |
Integer |
指定票据类型识别(非必传) |
retain |
Integer |
是否同时返回识别和验真结果,0-不返回,1-返回(非必传) |
redSeal |
Integer |
是否返回印章识别结果,0-不返回,1-返回(非必传) |
userName |
String |
用户名(开启白名单的时候必传) |
2.识别加核验接口base64版
参数名称 |
参数类型 |
参数说明 |
imgBase64 |
String |
上传文件 base64 编码 (必传) |
suffix |
String |
文件后缀名(非必传,默认为 jpg,支持 PDF,OFD,PNG 等) |
verify |
Integer |
是否开启核验,0-不开启,1-开启(非必传) |
cutImage |
Integer |
是否裁切图片,0-不裁切,1-裁切(非必传) |
invoiceType |
Integer |
指定票据类型识别(非必传) |
retain |
Integer |
是否同时返回识别和验真结果,0-不返回,1-返回(非必传) |
redSeal |
Integer |
是否返回印章识别结果,0-不返回,1-返回(非必传) |
userName |
String |
用户名(开启白名单的时候必传) |
{
"imgBase64":"/9j/4QCpRXhpZgAASUkqAAgAAAAF...",
"suffix":"jpg",
"userName":"test",
"verify":0,
"retain":0,
"redSeal":0,
"cutImage":0
}
3.发票核验接口
参数名称 |
参数类型 |
参数说明 |
invoiceCode |
String |
发票代码(详情点击跳转发票核验规则) |
invoiceNumber |
String |
发票号码 |
billingDate |
String |
开票日期 |
totalAmount |
String |
合计金额or价税合计 |
checkCode |
String |
校验码 |
salesTaxNo |
String |
销方税号 |
orderNo |
String |
订单号 |
invoiceType |
String |
发票类型(财政票据、医疗票据 必传 34) |
userName |
String |
用户名(开启白名单的时候必填) |
发票类型 |
查验取值各票种英文字段名称 |
1、8、3、91、93 |
invoiceCode、invoiceNumber、billingDate、totalAmount |
15 |
invoiceCode、invoiceNumber、billingDate、amountTax |
4、10、11、14 |
invoiceCode、invoiceNumber、billingDate、checkCode后6位 |
21 |
invoiceCode、invoiceNumber、checkCode、salesTaxNo |
9、83、61、62、94 |
invoiceNumber、billingDate、amountTax |
92 |
invoiceCode、invoiceNumber、billingDate、checkCode(fullInvoiceNumber后6位) |
36 |
invoiceCode、invoiceNumber、orderNo |
34、38 |
invoiceType(固定值34)、invoiceCode、invoiceNumber、billingDate、checkCode后6位 |
4.核验剩余次数查询
{
"msg":"调用完成",
"code":0,
"data":[
{
"amountLeft":800, - - - 剩余条数
"times":1000, - - - 总条数
"recogType":"发票验真",
"deadline":"2023-01-09 19:01:52" - - - 到期时间
}
]
}