获取文件处理结果列表
GET
/api/app-api/sip/platform/v2/file/fetch获取文件处理结果列表
请求参数
Query 参数
page
integer
页码,默认1
默认值:
1
page_size
integer
可选
每页数量,默认1000
默认值:
1000
workspace_id
string
空间ID
batch_number
string
批次编号
file_id
string
文件ID
category
string
文件分类
recognition_status
enum<integer>
可选
文件识别状态 0: 待识别 1: 识别成功 2: 识别失败
枚举值:
012
verification_status
enum<integer>
可选
文件核对状态 0: 待核对 2: 已确认 3: 已拒绝 4: 已删除 5: 推迟处理
枚举值:
02345
start_time
string <date-time>
可选
以更新时间搜索的开始时间, RFC3339格式(YYYY-MM-DDTHH:MM:SSZ)
示例值:
2024-01-01T00:00:00.000Z
end_time
string <date-time>
可选
以更新时间搜索的结束时间, RFC3339格式(YYYY-MM-DDTHH:MM:SSZ)
示例值:
2024-01-01T10:00:00.000Z
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
成功获取文件列表
数据结构
code
integer
状态码
示例值:
200
msg
string
请求状态描述
示例值:
成功
result
object
可选
total
integer
文件总数
示例值:
100
page
integer
当前页码
示例值:
1
page_size
integer
每页数量
示例值:
20
files
array [object {9}]
可选
示例
{
"code": 200,
"msg": "成功",
"result": {
"total": 100,
"page": 1,
"page_size": 20,
"files": [
{
"id": 202412190001,
"batch_number": 202412190001,
"name": "invoice.pdf",
"format": "string",
"recognition_status": 0,
"verification_status": 0,
"category": "invoice",
"pages": [
{
"angle": 0,
"width": 1024,
"height": 1024,
"dpi": 144
}
],
"data": {
"fields": [
{
"key": "发票代码",
"value": "3100231130",
"position": [
{
"page": 0,
"vertices": [
0,
0,
100,
0,
100,
100,
0,
100
]
}
]
},
{
"key": "发票号码",
"value": "28737000",
"position": [
{
"page": 0,
"vertices": [
0,
0,
100,
0,
100,
100,
0,
100
]
}
]
}
],
"items": [
[
{
"key": "货物劳务名称",
"value": "*电子计算机*微型计算机主机",
"position": [
{
"page": 0,
"vertices": [
0,
0,
100,
0,
100,
100,
0,
100
]
}
]
},
{
"key": "规格型号",
"value": "DMS-SC68",
"position": [
{
"page": 0,
"vertices": [
0,
0,
100,
0,
100,
100,
0,
100
]
}
]
}
],
[
{
"key": "货物劳务名称",
"value": "*机械计算机*巨型计算机主机",
"position": [
{
"page": 0,
"vertices": [
0,
0,
100,
0,
100,
100,
0,
100
]
}
]
},
{
"key": "规格型号",
"value": "AN/FSQ-7",
"position": [
{
"page": 0,
"vertices": [
0,
0,
100,
0,
100,
100,
0,
100
]
}
]
}
]
]
}
}
]
}
}
最后修改时间: 1 个月前