1、承兑汇票 - 接口说明
(注:调用图片为base64流接口时传参数img,调用图片为file格式接口传参数file)
2、请求参数
序号 |
名称 |
类型 |
必填 |
说明 |
1 |
img |
String |
是 |
上传的文件(图片的base64流) |
2 |
file |
MultipartFile |
是 |
上传的文件(上传文件的字段名必须是“file”) |
3 |
key |
String |
是 |
用户ocrKey |
4 |
secret |
String |
是 |
用户ocrSecrert |
5 |
typeId |
Integer |
是 |
识别类型:44 |
6 |
format |
String |
是 |
返回格式(xml或者json),如果format为空,则默认返回xml |
3、结果示例
{
"message": {
"status": 2,
"value": "识别完成"
},
"cardsinfo": [
{
"type": "44",
"items": [
{"nID": null, "index": null, "desc": "汇票票号1", "content": ""},
{"nID": null, "index": null, "desc": "汇票票号2", "content": ""},
{"nID": null, "index": null, "desc": "出票日期", "content": ""},
{"nID": null, "index": null, "desc": "出票人全称", "content": ""},
{"nID": null, "index": null, "desc": "出票人账号", "content": ""},
{"nID": null, "index": null, "desc": "付款行全称", "content": ""},
{"nID": null, "index": null, "desc": "收款人全称", "content": ""},
{"nID": null, "index": null, "desc": "收款人账号", "content": ""},
{"nID": null, "index": null, "desc": "收款人开户银行", "content": ""},
{"nID": null, "index": null, "desc": "小写金额", "content": ""},
{"nID": null, "index": null, "desc": "大写金额", "content": ""},
{"nID": null, "index": null, "desc": "汇票到期日", "content": ""},
{"nID": null, "index": null, "desc": "承兑协议编号", "content": ""},
{"nID": null, "index": null, "desc": "付款行行号", "content": ""},
{"nID": null, "index": null, "desc": "付款行地址", "content": ""},
{"nID": null, "index": null, "desc": "密押", "content": ""},
{"nID": null, "index": null, "desc": "承兑汇票类型", "content": ""}
]
}
]
}