根据附件url查询识别结果

  • 接口:common/attachment/recognition/unique

  • Method:GET

  • 接口说明:根据单据查询识别结果

参数

请求参数

参数名 类型 必填 说明
timestamp Long 请求时间的时间戳 TRUE
bizId Long 业务唯一识别码 TRUE
attachment_url String Y 附件url

返回参数

字段名称 字段类型 字段描述
resCode Integer 响应状态码
resMsg String 返回信息描述
data AttachmentRecognitionVo 附件识别结果

AttachmentRecognitionVo

字段名称 字段类型 字段描述
file_name String 文件名
attachment_url String 附件URL
attachment_type_code String 附件类型
attachment_id Long 附件id
type String 文件类型
status String 解析状态
batch_code String 批次 id
ocr_result JSONObject ocr 结果
llm_result JSONObject 模型解析结果
original_llm_result JSONObject 模型原解析结果
error_msg JSONObject 报错原因

请求示例

请求参数 unique?attachment_url=c2981cee-edf3-4667-abbd-15538e24d96d.jpg

返回参数

{
  "resCode": 200000,
  "resMsg": "success",
  "data": {
    "file_name": "3f0aeac9d910993045c4607dfaba3732.jpg",
    "attachment_url": "c2981cee-edf3-4667-abbd-15538e24d96d.jpg",
    "attachment_type_code": "101138-1",
    "attachment_id": 1301027,
    "llm_result": {
      "total_amount": 47.25,
      "dining_people": 0,
      "merchant_name": "慈溪市公牛电器有限公司",
      "dining_time": "2020-03-26",
      "details": [
        {
          "amount": 41.81,
          "quantity": 1,
          "dish": "配电控制设备*",
          "price": 41.81
        }
      ],
      "non_compliant_dishes": [],
      "type": "expenseStatement",
      "alcohol_amount": 0.00
    }
  }
}

results matching ""

    No results matching ""