票据识别结果查询

  • url:/common/invoices/getIdentifyResult
  • method:POST
  • 数据格式:JSON

说明

  • 查询系统中票据的识别情况。
  • 票据识别接口配合使用。
  • 使用方式:调用票据识别接口后,利用返回的identification_id轮询查看该识别批次的处理情况。
  • 推荐使用unfinished_count == 0来判断批次是否识别结束。
  • 轮询间隔时间建议为 ln((x+e)^2), 其中 x 为循环次数。

请求参数

字段名称 字段类型 字段描述 是否必填
bizId String 业务唯一识别码 true
data Object 本次轮询参数 true
data.identification_ids String[] 需要轮询的批次标识id true

响应参数

字段名称 字段类型 字段描述
bizId String 业务唯一识别码
resCode Integer 响应状态 (200000代表处理成功)
resMsg String 错误信息 (处理失败时会返回错误信息)
data Object 本次轮询结果
data.all_count Integer 识别任务总数
data.finished_count Integer 完成的数量
data.unfinished_count Integer 处理中的数量

请求&响应结构示例

请求参数结构示例

{
  "bizId": "b9d40bde-2fb6-49b8-9a91-9f579fd06524",
  "data": {
    "identification_ids": [
      "69f0022e-ef21-4ba3-b60b-0c031bd2babf"
    ]
  }
}

响应参数结构示例

{
  "bizId": "b9d40bde-2fb6-49b8-9a91-9f579fd06524",
  "resCode": 200000,
  "resMsg": "success",
  "data": {
    "all_count": 2,
    "finished_count": 0,
    "unfinished_count": 2
  }
}

results matching ""

    No results matching ""