票据识别

  • 接口:common/invoices/recognize

  • Method:POST

  • 数据格式:JSON
  • 接口说明:该接口用于识别票据并生成消费记录
请求参数
字段名称 字段类型 字段描述 是否必填
bizId String 业务唯一识别码
timestamp long 时间戳
data.user_name String 用户名
data.employee_number String 员工号
data.language String 语言
data.file_name String 文件名
返回参数
字段名称 字段类型 字段描述
resCode Integer 状态码(200000/500000)
resMsg String 返回描述(导入票据成功/导入票据失败)
bizId String 业务唯一识别码,用户票据识别结果查询
data.identification_id String 票据识别任务Id
示例

请求数据

{
  "bizId": "480938b8-7421-4769-bc16-0d84bc1e7805",
  "timestamp" : 1600334741782,
  "data": {
    "user_name": "test@cloudpense.com",
    "employee_number" : "123",
    "language": "zh_CN",
    "file_name": [ "a.jpg", "b.jpg", "c.jpg" ]
  }
}

返回数据

成功返回:
{
  "resCode": 200000,
  "resMsg": "导入票据成功!",
  "bizId": "634899ef-d591-4829-ac18-0bcc135251ff",
  "data": {
    "identification_id": "134w546523445"
  }
}
失败返回:
{
  "resCode": 500000,
  "resMsg": "导入票据失败!",
  "bizId": "634899ef-d591-4829-ac18-0bcc135251ff"
}

results matching ""

    No results matching ""