产品详情
API参数 失信被执行人v4 调用地址: http,https://xinshusxrlistv4.api.bdymkt.com/ws/repository/sxrListv4 请求方式: POST 支持格式: application/json;charset=UTF-8 调用工具: 去调试 请求参数(Headers) 请求参数(Query)
- 名称
- 类型
- 是否必须
- 示例值
- 描述
- apikey
- string
- true
- 43019BA4CD381E936D2479EADAC9D9E2
- 授权字符串,我司提供
- sign
- string
- true
- null
- 填写“9adhs年月日”的32位md5加密值(“年月日”指调用api的日期)。 举例:如果是2021年5月6日调用api =>得到 9adhs20210506 => 进行md5加密 => 得到的32位加密值就是 sign
- entityName
- string
- true
- null
- 主体名称,必填
- entityId
- string
- false
- null
- 主体代码,当失信人被执行人类型为个人时,该字段必填
- btype
- string
- true
- null
- 必填,失信人被执行人类型,1-个人、2-企业/机构
- related
- string
- true
- null
- 必填,是否关联案件查询,0:否、1:是
<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;
// 失信被执行人v4 Java示例代码
public class RequestDemo {
public static void main(String[] args) {
String path = "http://api.xinshucredit.com/ws/repository/sxrListv4";
ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.POST, path);
request.setCredentials("您的 access key", "您的 secret key");
request.addHeaderParameter("Content-Type", "application/json;charset=UTF-8");
request.addQueryParameter("apikey", "");
request.addQueryParameter("sign", "");
request.addQueryParameter("entityName", "");
request.addQueryParameter("entityId", "");
request.addQueryParameter("btype", "");
request.addQueryParameter("related", "");
ApiExplorerClient client = new ApiExplorerClient(new AppSigner());
try {
ApiExplorerResponse response = client.sendRequest(request);
// 返回结果格式为Json字符串
System.out.println(response.getResult());
} catch (Exception e) {
e.printStackTrace();
}
}
}
点击复制代码
正常返回示例 {
"orderNo": "201904171431243120974",
"data": [
{
"entityName": "简*斌",
"entityId": "5102241972****149X",
"caseCode": "(2018)渝0105执05916号",
"age": "45",
"sex": "男性",
"bussinessEntity": "",
"courtName": "重庆市江北区人民法院",
"areaName": "重庆",
"partyTypeName": "自然人",
"gistId": "(2017)渝0105民初16269号",
"regDate": "2018-08-17",
"gistUnit": "重庆市江北区人民法院",
"duty": "(2017)渝0105民初16269号",
"performance": "全部未履行",
"performedPart": "暂无",
"unPerformPart": "暂无",
"disruptTypeName": "违反财产报告制度",
"publishDate": "2018-12-06",
"relateType": "失信被执行人",
"status": "已下架"
}
],
"rc": "0000",
"msg": "查询成功"
}
失败返回示例 {
"rc": "1000",
"msg": "apikey校验失败"
}
错误码定义 - code
- message
- status
- 描述
- 1000
- apikey校验失败
- 200
- apikey校验失败
- 1001
- apikey暂停使用
- 200
- apikey暂停使用
- 1002
- sign校验失败
- 200
- sign校验失败
- 1003
- 未配置资源访问权限
- 200
- 未配置资源访问权限
- 1004
- 无该资源访问权限
- 200
- 无该资源访问权限
- 1005
- 未授权的IP地址
- 200
- 未授权的IP地址
- 2000
- 参数{}设置错误:{...具体错误信息...}
- 200
- 参数{}设置错误:{...具体错误信息...}
- 3000
- 未配置查询次数
- 200
- 未配置查询次数
- 3001
- 可用查询次数为0
- 200
- 可用查询次数为0
- 3002
- 未配置资源池
- 200
- 未配置资源池
- 3003
- 资源池可用次数为0
- 200
- 资源池可用次数为0
- 6000
- 请求失败,已达到最大并发请求数
- 200
- 请求失败,已达到最大并发请求数
- 6001
- 请求失败,已达到最大并发请求数
- 200
- 请求失败,已达到最大并发请求数
- 9999
- 查询失败,服务端异常
- 200
- 查询失败,服务端异常
