提交查询
https://api.ihuyi.com/ocr/vrc/Submit.json
| 参数名称 | 参数值描述 | 示例 | 类型 | 必填 |
| Content-Type | 内容类型,固定值 | application/x-www-form-urlencoded | string | 是 |
| 参数名称 | 参数值描述 | 示例 | 类型 | 必填 |
| account | APIID(用户中心【认证核验】-【OCR识别】-【产品总览】查看) | xxxxxxxx | string | 是 |
| password | 1、APIKEY(用户中心【认证核验】-【OCR识别】-【产品总览】查看) 2、动态密码(生成动态密码方式请看该文档末尾的说明) |
xxxxxxxxx | string | 是 |
| img_file | 图片文件(img_file、img_url二选一传递,小于1MB,支持jpg、png、bmp) | file | 否 | |
| img_url | 图片url(img_file、img_url二选一传递,小于1MB,支持jpg、png、bmp) | string | 否 | |
| time | Unix时间戳(10位整型数字,当使用动态密码方式时为必填) | 1623643787 | string | 否 |
| 参数名称 | 参数值描述 | 示例 | 类型 | 必返 |
| code | 返回值为2时,表示提交成功 | 2|1 | int | 是 |
| msg | 提交结果描述 | 提交成功|提交失败 | string | 是 |
| idcardid | 当提交成功后,此字段为流水号,否则为0或空 | 16236437872836|0 | string | |
| result | 识别结果 | object | ||
| info | 数据 | object | ||
| info_Positive | 正页识别信息 | object | ||
| carNumber | 车牌号码 | 沪GMB9** | string | |
| carType | 车辆类型 | 小型轿车 | string | |
| owner | 所有人 | 张三 | string | |
| use_Property | 使用性质 | 非营运 | string | |
| model | 品牌型号 | 别克牌SG11111111 | string | |
| vin | 车架号 | LSGKE54A7JW181031 | string | |
| engine | 发动机号 | 181111104 | string | |
| register_date | 注册日期 | 2018-01-01 | string | |
| issue_date | 发证日期 | 2018-01-01 | string | |
| address | 住址 | 上海市XXXXXXX13号 | string | |
| info_negative | 副页识别信息 | object | ||
| recordId | 档案编号 | 5201111**** | string | |
| passengers | 核定载人数 | string | ||
| cross_weight | 总质量 | 1675KG | string | |
| curb_weight | 整备质量 | string | ||
| load_weight | 核定载质量 | string | ||
| towing_capacity | 准牵引总质量 | string | ||
| overall_dimension | 外廓尺寸 | 8980X2495X3200MM | string | |
| note | 备注 | string | ||
| inspection_record | 检验记录 | 检验有效期至2020年03月贵G(02)汽油 | string | |
| barcode | 条形码编号 | *5261111119597* | string |
| code | msg |
| 0 | 未知错误 |
| 1 | 提交失败 |
| 2 | 提交成功 |
| 400 | 非法ip访问 |
| 401 | 帐号不能为空 |
| 402 | 密码不能为空 |
| 403 | 应用不存在 |
| 405 | API ID 或 API KEY 不正确 |
| 4050 | 账号被冻结 |
| 40501 | 动态密码已过期 |
| 40502 | 动态密码校验失败 |
| 40505 | 没有签定合同 |
| 4051 | 剩余条数不足 |
| 4052 | 访问 ip 与备案 ip 不符 |
| 4086 | 通道无效 |
| 4010 | 通道错误 |
| 4201 | 查询无结果 |
| 4202 | 请求报文解析错误 |
| 4203 | 请求报文错误 |
| 4204 | 请求报文格式有误 |
| 4205 | 用户验证失败 |
| 4206 | 查询参数错误 |
| 4207 | 调用接口失败 |
| 4208 | 手机号码错误 |
| 4209 | 请求报文格式错误 |
| 4210 | 发送的报文不能为空 |
| 4301 | img_file、img_url不能同时为空 |
| 4302 | 上传图片大小必须控制在5KB-1MB之间 |
| 4303 | 上传图片格式不正确,只支持bmp,jpg,jpeg,png |
| 4304 | 上传图片失败 |
https://api.ihuyi.com/ocr/vrc/Submit.json?account=xxxxxxxx&password=xxxxxxxxx&img_file=&img_url=&time=1623643787
示例(成功)
<?xml version="1.0" encoding="utf-8"?><SubmitResult><code>2</code><msg>提交成功</msg><idcardid>16236437872836</idcardid><result><info><info_Positive><carNumber>沪GMB9**</carNumber><carType>小型轿车</carType><owner>张三</owner><use_Property>非营运</use_Property><model>别克牌SG11111111</model><vin>LSGKE54A7JW181031</vin><engine>181111104</engine><register_date>2018-01-01</register_date><issue_date>2018-01-01</issue_date><address>上海市XXXXXXX13号</address></info_Positive><info_negative><recordId>5201111****</recordId><passengers></passengers><cross_weight>1675KG</cross_weight><curb_weight></curb_weight><load_weight></load_weight><towing_capacity></towing_capacity><overall_dimension>8980X2495X3200MM</overall_dimension><note></note><inspection_record>检验有效期至2020年03月贵G(02)汽油</inspection_record><barcode>*5261111119597*</barcode></info_negative></info></result></SubmitResult>
{ "code":
2
, "msg":
"提交成功"
, "idcardid":
"16236437872836"
, "result":
{ "info":
{ "info_Positive":
{ "carNumber":
"沪GMB9**"
, "carType":
"小型轿车"
, "owner":
"张三"
, "use_Property":
"非营运"
, "model":
"别克牌SG11111111"
, "vin":
"LSGKE54A7JW181031"
, "engine":
"181111104"
, "register_date":
"2018-01-01"
, "issue_date":
"2018-01-01"
, "address":
"上海市XXXXXXX13号"
}
, "info_negative":
{ "recordId":
"5201111****"
, "passengers":
""
, "cross_weight":
"1675KG"
, "curb_weight":
""
, "load_weight":
""
, "towing_capacity":
""
, "overall_dimension":
"8980X2495X3200MM"
, "note":
""
, "inspection_record":
"检验有效期至2020年03月贵G(02)汽油"
, "barcode":
"*5261111119597*"
}
}
}
}
示例(失败)
<?xml version="1.0" encoding="utf-8"?><SubmitResult><code>1</code><msg>提交失败</msg></SubmitResult> {"code":1,"msg":"提交失败"}
$account = 'xxxxxxxx';
$password = 'xxxxxxxxx';
$app = 'vrc'; //固定值
$time = '1623643787';
$password=md5($account.$password.$app.$time);
$password=md5('xxxxxxxxxxxxxxxxxvrc1623643787');
//注意:所有字符编码统一为UTF-8
国内专业互联网团队
21年行业经验
7x24小时售后支持
丰富的行业经验
Copyright © 2004-2025 上海思锐信息技术有限公司 All rights reserved. 沪ICP备07035915号-15 电信增值业务许可证:B2-20160082
服务热线:
4008 808 898
服务热线(工作时间):
4008 808 898
业务咨询(非工作时间):
售后咨询(非工作时间):