提交查询
https://api.ihuyi.com/veh/vehmod/Submit.json
| 参数名称 | 参数值描述 | 示例 | 类型 | 必填 |
| Content-Type | 内容类型,固定值 | application/x-www-form-urlencoded | string | 是 |
| 参数名称 | 参数值描述 | 示例 | 类型 | 必填 |
| account | APIID(用户中心【认证核验】-【车辆与道路运输信息验证】-【产品总览】查看) | xxxxxxxx | string | 是 |
| password | 1、APIKEY(用户中心【认证核验】-【车辆与道路运输信息验证】-【产品总览】查看) 2、动态密码(生成动态密码方式请看该文档末尾的说明) |
xxxxxxxxx | string | 是 |
| car_no | 车牌号或车架号 | 沪***** | string | 是 |
| car_type | 车辆类型-car_no为车牌号时传入(01:大型汽车;02:小型汽车;51:新能源大型车;52:新能源小型车;03:使馆汽车;04:领馆汽车;05:境外汽车;06:外籍汽车;07:普通摩托车;08:轻便摩托车;09:使馆摩托车;10:领馆摩托车;11:境外摩托车;12:外籍摩托车;13:低速车;14:拖拉机;15:挂车;16:教练汽车;17:教练摩托车;20:临时入境汽车;21:临时入境摩托车;22:临时行驶车;23:警用汽车;24:警用摩托车;25:原农机号牌;26:香港入出境车;27:澳门入出境车;99:其他)不填默认为普通乘用车 02 | 02 | string | 否 |
| time | Unix时间戳(10位整型数字,当使用动态密码方式时为必填) | 1623643787 | string | 否 |
| 参数名称 | 参数值描述 | 示例 | 类型 | 必返 |
| code | 返回值为2时,表示提交成功 | 2|1 | int | 是 |
| msg | 提交结果描述 | 提交成功|提交失败 | string | 是 |
| idcardid | 当提交成功后,此字段为流水号,否则为0或空 | 16236437872836|0 | string | |
| result | 认证结果 | object | ||
| lists[] | 数据列表 | array | ||
| styleName | 款型名称 | 2017款 1.6L MT 豪华型 | string | |
| vehiclemodel | 车辆型号 | SX4250XC3 | int | |
| band | 品牌 | 陕汽 | int |
| code | msg |
| 0 | 未知错误 |
| 1 | 提交失败 |
| 2 | 提交成功 |
| 400 | 非法ip访问 |
| 401 | 帐号不能为空 |
| 402 | 密码不能为空 |
| 403 | 应用不存在 |
| 405 | API ID 或 API KEY 不正确 |
| 406 | 车牌号码不能为空 |
| 4050 | 账号被冻结 |
| 40501 | 动态密码已过期 |
| 40502 | 动态密码校验失败 |
| 40505 | 没有签定合同 |
| 4051 | 剩余条数不足 |
| 4052 | 访问 ip 与备案 ip 不符 |
| 406 | vin车架号不能为空 |
| 4086 | 通道无效 |
| 4010 | 通道错误 |
| 4201 | 查询无结果 |
| 4202 | 参数错误 |
| 4203 | 系统异常 |
https://api.ihuyi.com/veh/vehmod/Submit.json?account=xxxxxxxx&password=xxxxxxxxx&car_no=沪*****&car_type=02&time=1623643787
示例(成功)
<?xml version="1.0" encoding="utf-8"?><SubmitResult><code>2</code><msg>提交成功</msg><idcardid>16236437872836</idcardid><result><lists><list><styleName>2017款 1.6L MT 豪华型</styleName><vehiclemodel>SX4250XC3</vehiclemodel><band>陕汽</band></list><list><styleName>2017款 1.6L MT 豪华型</styleName><vehiclemodel>SX4250XC3</vehiclemodel><band>陕汽</band></list><list><styleName>2017款 1.6L MT 豪华型</styleName><vehiclemodel>SX4250XC3</vehiclemodel><band>陕汽</band></list></lists></result></SubmitResult>
{ "code":
2
, "msg":
"提交成功"
, "idcardid":
"16236437872836"
, "result":
{ "lists":
[ { "styleName":
"2017款 1.6L MT 豪华型"
, "vehiclemodel":
"SX4250XC3"
, "band":
"陕汽"
}
, { "styleName":
"2017款 1.6L MT 豪华型"
, "vehiclemodel":
"SX4250XC3"
, "band":
"陕汽"
}
, { "styleName":
"2017款 1.6L MT 豪华型"
, "vehiclemodel":
"SX4250XC3"
, "band":
"陕汽"
}
]
}
}
示例(失败)
<?xml version="1.0" encoding="utf-8"?><SubmitResult><code>1</code><msg>提交失败</msg></SubmitResult> {"code":1,"msg":"提交失败"}
$account = 'xxxxxxxx';
$password = 'xxxxxxxxx';
$app = 'vehmod'; //固定值
$time = '1623643787';
$password=md5($account.$password.$app.$time);
$password=md5('xxxxxxxxxxxxxxxxxvehmod1623643787');
//注意:所有字符编码统一为UTF-8
在线咨询
150,000家
企业客户
21年
行业经验
2V1
2对1客户支持