产品详情
API参数 云鉴_全国车辆交通违章记录_全国实时违章查询_违章详情_交通违章_新能源车大型货车违章 调用地址: http,https://weizhang.api.bdymkt.com/weizhang 请求方式: POST 支持格式: application/x-www-form-urlencoded 调用工具: 去调试 请求参数(Headers) 请求参数(Query) 请求参数(Body)
- 名称
- 类型
- 是否必须
- 示例值
- 描述
- platenumber
- string
- true
- 苏A98888
- 车牌号
- vin
- string
- true
- 1234567890
- 车架号
- enginenumber
- string
- true
- 1234567890
- 发动机号
- platetype
- string
- true
- 车牌类型 01:大型汽车, 02:小型汽车, 03:使馆汽车, 04:领馆汽车, 05:境外汽车, 06:外籍汽车, 07:普通摩托车, 08:轻便摩托车, 09:使馆摩托车, 10:领馆摩托车, 11:境外摩托车, 12:外籍摩托车, 13:低速车, 14:拖拉机, 15:挂车, 16:教练汽车, 17:教练摩托车, 20:临时入境汽车, 21:临时入境摩托车, 22:临时行驶车, 23:警用汽车, 24:警用摩托, 51:新能源大型车, 52:新能源小型车
- 车牌类型
<dependency>
<groupId>com.baidubce</groupId>
<artifactId>api-explorer-sdk</artifactId>
<version>1.0.0</version>
</dependency>
import com.baidubce.http.ApiExplorerClient;
import com.baidubce.http.AppSigner;
import com.baidubce.http.HttpMethodName;
import com.baidubce.model.ApiExplorerRequest;
import com.baidubce.model.ApiExplorerResponse;
// 云鉴_全国车辆交通违章记录查询_全国实时违章查询_违章详情-交通违章_支持新能源车及大型货车违章 Java示例代码
public class RequestDemo {
public static void main(String[] args) {
String path = "http://gwgp-gappqbrgacz.n.bdcloudapi.com/weizhang";
ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.POST, path);
request.setCredentials("您的 access key", "您的 secret key");
request.addHeaderParameter("Content-Type", "application/x-www-form-urlencoded");
ApiExplorerClient client = new ApiExplorerClient(new AppSigner());
try {
ApiExplorerResponse response = client.sendRequest(request);
// 返回结果格式为Json字符串
System.out.println(response.getResult());
} catch (Exception e) {
e.printStackTrace();
}
}
}
点击复制代码
正常返回示例 {
"jobid": "ZT20201231115526698741605",
"responsetime": "20201231115527073",
"errcode": "C0000",
"errmsg": "查询成功",
"result": {
"resultdata": [{
"date": "2020-05-01 09:38:00",//违章时间
"clbh": "5606ceafae4a5f98b89fd40d00******",//处理编号(在线处理时,传该编号)
"address": "西南路",//违章地点
"code": "1039",//违章代码
"city": "2102",//查询城市
"csmc": "辽宁大连",//违章所在城市名称
"platenumber": "辽BR****",//查询车牌号
"score": "0",//违章扣分
"money": "100",//违章罚款
"jkbh": "",//监控编号
"action": "不按规定停车",//违章行为
"jdsbh": "",//决定书编号
"department": "大连市公安局交通警察支队甘井子大队",//违章采集机关
"zxcl": "1" //在线处理,返回值:1:可以处理 2:不支持处理 为空或不存在结果时,默认为:不支持处理。
}]
},
"encresult": ""
}
//响应码释义:
C0000:查询成功(收费)
C0025:查询成功无结果
C0026:查询成功无结果(收费)
00030:车辆信息错误(收费)
C0031:地区暂未开通或维护
C0096:查询失败
00061:查询次数超限
00029:请求参数不标准
21005:该产品暂时无法使用
910RE:系统交易超时
91096:系统其他错误
失败返回示例 {
"jobid": "ZT20201230201630220401686",
"bizno": "000100150000598",
"requestsn": "1609330589453",
"responsetime": "20201230201630409",
"consumestate": "false",
"errcode": "C0031",
"errmsg": "地区暂未开通或维护",
"result": {},
"encresult": ""
}
错误码定义
