增值税发票卷票识别。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
Url | string | 否 | 图片链接(长度不超 2048,不支持 base64) | https://img.alicdn.com/tfs/TB1Y2ryJKT2gK0jSZFvXXXnFXXa-438-934.png |
body | byte | 否 | 图片二进制文件,最大 10MB,与 URL 二选一。 使用 HTTP 方式调用,把图片二进制文件放到 HTTP body 中上传即可。 使用 SDK 的方式调用,把图片放到 SDK 的 body 中即可。 | 图片二进制文件 |
返回参数
中英文字段映射
invoiceCode 发票代码
invoiceNumber 发票号码
invoiceDate 开票日期
checkCode 校验码
sellerName 销售方名称
sellerTaxNumber 销售方税号
purchaserName 购买方名称
purchaserTaxCode 购买方税号
title 标题
IGNORE 机打号码
machineCode 机器编号
cashier 收款员
totalAmountInWords 合计金额(大写)
totalAmount 合计金额(小写)
invoiceDetails 发票详单
itemName 项目
quantity 数量
unitPrice 单价
amount 金额
示例
正常返回示例
JSON
格式
{
"RequestId": "43A29C77-405E-4CC0-BC55-EE694AD00655",
"Data": "{ \t\"data\": { \t\t\"title\": \"用增值税普通发票(卷票)\", \t\t\"invoiceCode\": \"041001800107\", \t\t\"invoiceNumber\": \"04594258\", \t\t\"machineCode\": \"661718338084\", \t\t\"sellerName\": \"中国石化销售有限公司河南许昌石油分公司第二经营部\", \t\t\"sellerTaxNumber\": \"914110237241033719\", \t\t\"purchaserName\": \"上海恒企教育培训有限公司许昌许都广场分公司\", \t\t\"purchaserTaxCode\": \"212\", \t\t\"invoiceDate\": \"2019年4月27日\", \t\t\"cashier\": \"安冬梅\", \t\t\"totalAmountInWords\": \"陆佰元整\", \t\t\"totalAmount\": \"600.00\", \t\t\"checkCode\": \"65584298472538424744\", \t\t\"invoiceDetails\": [{ \t\t\t\"itemName\": \"*预付卡销售*加油卡充值款\", \t\t\t\"quantity\": \"1.00\", \t\t\t\"unitPrice\": \"600.00\", \t\t\t\"amount\": \"600.00\" \t\t}, { \t\t\t\"itemName\": \"*预付卡销售*积分*预付卡销售*积分\", \t\t\t\"quantity\": \"1.0\", \t\t\t\"unitPrice\": \"13.78\", \t\t\t\"amount\": \"13.78\" \t\t}] \t}, \t\"height\": 934, \t\"orgHeight\": 934, \t\"orgWidth\": 438, \t\"prism_keyValueInfo\": [{ \t\t\"key\": \"title\", \t\t\"keyProb\": 95, \t\t\"value\": \"用增值税普通发票(卷票)\", \t\t\"valuePos\": [{ \t\t\t\"x\": 89, \t\t\t\"y\": 61 \t\t}, { \t\t\t\"x\": 90, \t\t\t\"y\": 23 \t\t}, { \t\t\t\"x\": 435, \t\t\t\"y\": 40 \t\t}, { \t\t\t\"x\": 434, \t\t\t\"y\": 78 \t\t}], \t\t\"valueProb\": 95 \t}, { \t\t\"key\": \"invoiceCode\", \t\t\"keyProb\": 99, \t\t\"value\": \"041001800107\", \t\t\"valuePos\": [{ \t\t\t\"x\": 130, \t\t\t\"y\": 199 \t\t}, { \t\t\t\"x\": 132, \t\t\t\"y\": 175 \t\t}, { \t\t\t\"x\": 304, \t\t\t\"y\": 187 \t\t}, { \t\t\t\"x\": 303, \t\t\t\"y\": 210 \t\t}], \t\t\"valueProb\": 99 \t}, { \t\t\"key\": \"invoiceNumber\", \t\t\"keyProb\": 99, \t\t\"value\": \"04594258\", \t\t\"valuePos\": [{ \t\t\t\"x\": 132, \t\t\t\"y\": 230 \t\t}, { \t\t\t\"x\": 133, \t\t\t\"y\": 210 \t\t}, { \t\t\t\"x\": 247, \t\t\t\"y\": 216 \t\t}, { \t\t\t\"x\": 245, \t\t\t\"y\": 237 \t\t}], \t\t\"valueProb\": 99 \t}, { \t\t\"key\": \"machineCode\", \t\t\"keyProb\": 100, \t\t\"value\": \"661718338084\", \t\t\"valuePos\": [{ \t\t\t\"x\": 294, \t\t\t\"y\": 254 \t\t}, { \t\t\t\"x\": 294, \t\t\t\"y\": 238 \t\t}, { \t\t\t\"x\": 394, \t\t\t\"y\": 243 \t\t}, { \t\t\t\"x\": 393, \t\t\t\"y\": 258 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"sellerName\", \t\t\"keyProb\": 100, \t\t\"value\": \"中国石化销售有限公司河南许昌石油分公司第二经营部\", \t\t\"valuePos\": [{ \t\t\t\"x\": 124, \t\t\t\"y\": 290 \t\t}, { \t\t\t\"x\": 125, \t\t\t\"y\": 260 \t\t}, { \t\t\t\"x\": 370, \t\t\t\"y\": 266 \t\t}, { \t\t\t\"x\": 369, \t\t\t\"y\": 297 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"sellerTaxNumber\", \t\t\"keyProb\": 98, \t\t\"value\": \"914110237241033719\", \t\t\"valuePos\": [{ \t\t\t\"x\": 139, \t\t\t\"y\": 323 \t\t}, { \t\t\t\"x\": 140, \t\t\t\"y\": 310 \t\t}, { \t\t\t\"x\": 293, \t\t\t\"y\": 312 \t\t}, { \t\t\t\"x\": 293, \t\t\t\"y\": 326 \t\t}], \t\t\"valueProb\": 98 \t}, { \t\t\"key\": \"purchaserName\", \t\t\"keyProb\": 100, \t\t\"value\": \"上海恒企教育培训有限公司许昌许都广场分公司\", \t\t\"valuePos\": [{ \t\t\t\"x\": 125, \t\t\t\"y\": 349 \t\t}, { \t\t\t\"x\": 365, \t\t\t\"y\": 349 \t\t}, { \t\t\t\"x\": 365, \t\t\t\"y\": 382 \t\t}, { \t\t\t\"x\": 125, \t\t\t\"y\": 382 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"purchaserTaxCode\", \t\t\"keyProb\": 70, \t\t\"value\": \"212\", \t\t\"valuePos\": [{ \t\t\t\"x\": 138, \t\t\t\"y\": 394 \t\t}, { \t\t\t\"x\": 138, \t\t\t\"y\": 410 \t\t}, { \t\t\t\"x\": 38, \t\t\t\"y\": 411 \t\t}, { \t\t\t\"x\": 37, \t\t\t\"y\": 396 \t\t}], \t\t\"valueProb\": 70 \t}, { \t\t\"key\": \"invoiceDate\", \t\t\"keyProb\": 100, \t\t\"value\": \"2019年4月27日\", \t\t\"valuePos\": [{ \t\t\t\"x\": 106, \t\t\t\"y\": 345 \t\t}, { \t\t\t\"x\": 107, \t\t\t\"y\": 329 \t\t}, { \t\t\t\"x\": 217, \t\t\t\"y\": 331 \t\t}, { \t\t\t\"x\": 217, \t\t\t\"y\": 348 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"cashier\", \t\t\"keyProb\": 100, \t\t\"value\": \"安冬梅\", \t\t\"valuePos\": [{ \t\t\t\"x\": 274, \t\t\t\"y\": 348 \t\t}, { \t\t\t\"x\": 275, \t\t\t\"y\": 332 \t\t}, { \t\t\t\"x\": 324, \t\t\t\"y\": 333 \t\t}, { \t\t\t\"x\": 324, \t\t\t\"y\": 350 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"totalAmountInWords\", \t\t\"keyProb\": 100, \t\t\"value\": \"陆佰元整\", \t\t\"valuePos\": [{ \t\t\t\"x\": 120, \t\t\t\"y\": 804 \t\t}, { \t\t\t\"x\": 190, \t\t\t\"y\": 800 \t\t}, { \t\t\t\"x\": 191, \t\t\t\"y\": 818 \t\t}, { \t\t\t\"x\": 120, \t\t\t\"y\": 821 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"totalAmount\", \t\t\"keyProb\": 100, \t\t\"value\": \"600.00\", \t\t\"valuePos\": [{ \t\t\t\"x\": 121, \t\t\t\"y\": 785 \t\t}, { \t\t\t\"x\": 181, \t\t\t\"y\": 783 \t\t}, { \t\t\t\"x\": 182, \t\t\t\"y\": 796 \t\t}, { \t\t\t\"x\": 121, \t\t\t\"y\": 799 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"checkCode\", \t\t\"keyProb\": 96, \t\t\"value\": \"65584298472538424744\", \t\t\"valuePos\": [{ \t\t\t\"x\": 95, \t\t\t\"y\": 827 \t\t}, { \t\t\t\"x\": 283, \t\t\t\"y\": 817 \t\t}, { \t\t\t\"x\": 284, \t\t\t\"y\": 831 \t\t}, { \t\t\t\"x\": 96, \t\t\t\"y\": 841 \t\t}], \t\t\"valueProb\": 96 \t}, { \t\t\"key\": \"invoiceDetails\", \t\t\"keyProb\": 100, \t\t\"value\": \"[{\\\"itemName\\\":\\\"*预付卡销售*加油卡充值款\\\",\\\"quantity\\\":\\\"1.00\\\",\\\"unitPrice\\\":\\\"600.00\\\",\\\"amount\\\":\\\"600.00\\\"},{\\\"itemName\\\":\\\"*预付卡销售*积分*预付卡销售*积分\\\",\\\"quantity\\\":\\\"1.0\\\",\\\"unitPrice\\\":\\\"13.78\\\",\\\"amount\\\":\\\"13.78\\\"}]\", \t\t\"valueProb\": 100 \t}], \t\"width\": 438 }",
"Code": "200",
"Message": "message"
}
错误码
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2021-08-17 | OpenAPI 入参发生变更 | 查看变更详情 |