定额发票识别。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
Url | string | 否 | 图片链接(长度不超 2048,不支持 base64) | https://img.alicdn.com/tfs/TB1SwAeXHr1gK0jSZR0XXbP8XXa-870-604.jpg |
body | byte | 否 | 图片二进制文件,最大 10MB,与 URL 二选一。 使用 HTTP 方式调用,把图片二进制文件放到 HTTP body 中上传即可。 使用 SDK 的方式调用,把图片放到 SDK 的 body 中即可 | 图片二进制文件 |
返回参数
中英文字段映射
invoiceCode 发票代码
invoiceNumber 发票号码
AmountInWords 大写金额
Amount 小写金额
title 发票标题
formType 联次
示例
正常返回示例
JSON
格式
{
"RequestId": "43A29C77-405E-4CC0-BC55-EE694AD00655",
"Data": "{ \t\"data\": { \t\t\"invoiceCode\": \"153001864058\", \t\t\"invoiceNumber\": \"03555555\", \t\t\"AmountInWords\": \"拾元整\", \t\t\"Amount\": \"10.00\", \t\t\"title\": \"云南通用定额发票\", \t\t\"formType\": \"发票联\" \t}, \t\"ftype\": 0, \t\"height\": 604, \t\"orgHeight\": 604, \t\"orgWidth\": 870, \t\"prism_keyValueInfo\": [{ \t\t\"key\": \"invoiceCode\", \t\t\"keyProb\": 100, \t\t\"value\": \"153001864058\", \t\t\"valuePos\": [{ \t\t\t\"x\": 364, \t\t\t\"y\": 259 \t\t}, { \t\t\t\"x\": 364, \t\t\t\"y\": 226 \t\t}, { \t\t\t\"x\": 641, \t\t\t\"y\": 232 \t\t}, { \t\t\t\"x\": 641, \t\t\t\"y\": 265 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"invoiceNumber\", \t\t\"keyProb\": 100, \t\t\"value\": \"03555555\", \t\t\"valuePos\": [{ \t\t\t\"x\": 366, \t\t\t\"y\": 315 \t\t}, { \t\t\t\"x\": 366, \t\t\t\"y\": 282 \t\t}, { \t\t\t\"x\": 560, \t\t\t\"y\": 286 \t\t}, { \t\t\t\"x\": 560, \t\t\t\"y\": 319 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"AmountInWords\", \t\t\"keyProb\": 100, \t\t\"value\": \"拾元整\", \t\t\"valuePos\": [{ \t\t\t\"x\": 317, \t\t\t\"y\": 448 \t\t}, { \t\t\t\"x\": 319, \t\t\t\"y\": 394 \t\t}, { \t\t\t\"x\": 556, \t\t\t\"y\": 401 \t\t}, { \t\t\t\"x\": 554, \t\t\t\"y\": 455 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"Amount\", \t\t\"keyProb\": 100, \t\t\"value\": \"10.00\", \t\t\"valuePos\": [{ \t\t\t\"x\": 317, \t\t\t\"y\": 448 \t\t}, { \t\t\t\"x\": 319, \t\t\t\"y\": 394 \t\t}, { \t\t\t\"x\": 556, \t\t\t\"y\": 401 \t\t}, { \t\t\t\"x\": 554, \t\t\t\"y\": 455 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"title\", \t\t\"keyProb\": 100, \t\t\"value\": \"云南通用定额发票\", \t\t\"valuePos\": [{ \t\t\t\"x\": 154, \t\t\t\"y\": 113 \t\t}, { \t\t\t\"x\": 155, \t\t\t\"y\": 58 \t\t}, { \t\t\t\"x\": 748, \t\t\t\"y\": 73 \t\t}, { \t\t\t\"x\": 746, \t\t\t\"y\": 129 \t\t}], \t\t\"valueProb\": 100 \t}, { \t\t\"key\": \"formType\", \t\t\"keyProb\": 100, \t\t\"value\": \"发票联\", \t\t\"valuePos\": [{ \t\t\t\"x\": 349, \t\t\t\"y\": 191 \t\t}, { \t\t\t\"x\": 351, \t\t\t\"y\": 144 \t\t}, { \t\t\t\"x\": 540, \t\t\t\"y\": 148 \t\t}, { \t\t\t\"x\": 539, \t\t\t\"y\": 196 \t\t}], \t\t\"valueProb\": 100 \t}], \t\"sliceRect\": { \t\t\"x0\": 0, \t\t\"y0\": 1, \t\t\"x1\": 870, \t\t\"y1\": 20, \t\t\"x2\": 867, \t\t\"y2\": 604, \t\t\"x3\": 0, \t\t\"y3\": 596 \t}, \t\"width\": 870 }",
"Code": "200",
"Message": "message"
}
错误码
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2021-08-17 | OpenAPI 入参发生变更 | 查看变更详情 |