1-发票识别
简要描述
-
发票识别
发票识别
- 权限标签 plugin:invoice:recognize
- 新建 by llz 2022-03-01 10:43:55 星期二
- 修改 by llz 2022-03-01 17:57:07 星期二 修改 返回字段修改 drawerName -> drawer 、invoiceAmountIncludeTax -> totalAmount purchasesAmountTax -> invoiceTax
- 修改 by llz 2022-03-02 17:03:04 星期三 修改 字段名称修改drawer -> sellerName invoiceCode -> invoiceNumber
-
修改 by zj 2022-03-10 10:21:45 星期四 修改接口结构 加上失败结果信息|权限标识修改
请求URL
{URL}/plugin/recognize/invoice/batch
请求方式
- POST
请求参数
form-data
参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
file | 是 | List | 文件列表 |
返回示例
{
"code": 0,
"data": {
successAmount:12,
failAmount:12,
failList:[{
"fileId":1,
"fileUrl":"http://localhost:8090/pic/5678351662745600.file",
"fileName":"文件名称",
"reason":"文件过大"
}],
successList:[{
"fileId":1,
"fileUrl":"http://localhost:8090/pic/5678351662745600.file",
"fileName":"文件名称",
"itemName": "货物名称",
"invoiceDate":"开票时间",
"invoiceNumber":"代码",
"sellerName":"开票公司",
"purchaserName":"收票公司",
"invoiceType":"发票类型",
"unitPrice":11.1,
"quantity":1,
"remark":"摘要",
"taxRate":"税率",
"invoiceTax":11.1,
"invoiceAmountPreTax":11.1,
"totalAmount":11.1,
"itemList":[{
"itemName":"货物名称",
"specification":"规格型号",
"unit":"单位",
"quantity":"123",
"unitPrice":"12.34",
"amount":"12.34",
"taxRate":"2.3%",
"tax":"123"
}]
}]
},
"message": ""
}
返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
code | int | 返回结果 0 成功 500 异常 |
message | int | 返回信息 |
data | object | 返回结果 |
successAmount | list | 识别成功数量 |
failAmount | num | 识别失败数量 |
failList | list | 识别失败列表 |
fileId | num | 发票文件id 关联x_aliyun_oss_upload |
fileUrl | string | 发票文件url |
fileName | string | 发票文件名称 |
reason | string | 失败原因 |
successList | list | 识别成功列表 |
fileId | num | 发票文件id 关联x_aliyun_oss_upload |
fileUrl | string | 发票文件url |
fileName | string | 发票文件名称 |
itemName | string | 货物名称 |
invoiceDate | string | 开票时间 |
invoiceNumber | string | 代码 |
sellerName | string | 开票公司 |
purchaserName | string | 收票公司 |
invoiceType | string | 发票类型(普票、专票) |
unitPrice | num | 单价 |
quantity | num | 数量 |
remark | string | 摘要 |
taxRate | string | 税率 |
invoiceTax | num | 进项税额 |
invoiceAmountPreTax | num | 不含税价格 |
totalAmount | num | 含税价格 |
itemList | list | 详情列表 |
itemName | string | 货物或应税劳务、服务名称 |
specification | string | 规格型号 |
unit | string | 单位 |
quantity | string | 数量 |
unitPrice | string | 单价 |
amount | string | 金额 |
taxRate | string | 税率 |
tax | string | 税额 |