通过POST、 GET 方式进行提交,数据编码采用utf-8格式,支持24小时全天提交。
https://api.ihuyi.com/idcard/idcardstatus/Submit.json
| 参数名称 | 参数值描述 | 示例 | 类型 | 必填 |
| Content-Type | 内容类型,固定值 | application/x-www-form-urlencoded | string | 是 |
| 参数名称 | 参数值描述 | 示例 | 类型 | 必填 |
| account | APIID(用户中心【认证核验】-【身份信息验证】-【产品总览】查看) | xxxxxxxx | string | 是 |
| password | 1、APIKEY(用户中心【认证核验】-【身份信息验证】-【产品总览】查看) 2、动态密码(生成动态密码方式请看该文档末尾的说明) |
xxxxxxxxx | string | 是 |
| name | 身份证姓名 | 张三 | string | 是 |
| id_card_no | 身份证号码 | 40122111****** | string | 是 |
| begin_date | 有效起始日期,格式:20050712 | 20050712 | string | 是 |
| end_date | 有效截止日期,格式:20050712 (长期有效身份证填 8 个 0) | 20050712 | string | 是 |
| time | Unix时间戳(10位整型数字,当使用动态密码方式时为必填) | 1623643787 | string | 否 |
| 参数名称 | 参数值描述 | 示例 | 类型 | 必返 |
| code | 返回值为2时,表示提交成功 | 2|1 | int | 是 |
| msg | 提交结果描述 | 提交成功|提交失败 | string | 是 |
| idcardid | 当提交成功后,此字段为流水号,否则为0或空 | 16236437872836|0 | string | 否 |
| result | 认证结果 | object | 否 | |
| status | 状态码 1:身份四要素信息不一致 2:查询成功 | 2 | string | |
| info | 详情 | object | ||
| desc | 结果描述 | 查询成功 | string | |
| isLosted | 证件是否挂失(1 挂失、0非挂失) | 0 | string | |
| isNewest | 证件是否最新(1 最新、0非最新) | 1 | string | |
| isExpired | 证件是否过期(1 过期、0非过期) | 0 | string | |
| hjzt | 户籍状态(0 有效、1 有效(户籍迁出,但未迁入)、2 无效(死亡、失踪、迁出、服 兵役、出国境定居、消除重复登记人口、冻结户口、重载注销等) | 0 | string |
| code | msg |
| 0 | 未知错误 |
| 1 | 提交失败 |
| 2 | 提交成功 |
| 400 | 非法ip访问 |
| 401 | 帐号不能为空 |
| 402 | 密码不能为空 |
| 403 | 应用不存在 |
| 404 | 姓名不能为空 |
| 4041 | 姓名格式不正确(2-10个中文汉字) |
| 406 | 身份证号码不能为空 |
| 4061 | 身份证格式不正确 |
| 405 | API ID 或 API KEY 不正确 |
| 4050 | 账号被冻结 |
| 40501 | 动态密码已过期 |
| 40502 | 动态密码校验失败 |
| 40505 | 没有签定合同 |
| 4051 | 剩余条数不足 |
| 4052 | 访问 ip 与备案 ip 不符 |
| 4086 | 通道无效 |
| 4010 | 通道错误 |
https://api.ihuyi.com/idcard/idcardstatus/Submit.json?account=xxxxxxxx&password=xxxxxxxxx&name=张三&id_card_no=40122111******&begin_date=20050712&end_date=20050712&time=1623643787
示例(成功)
<?xml version="1.0" encoding="utf-8"?><SubmitResult><code>2</code><msg>提交成功</msg><idcardid>16236437872836</idcardid><result><status>2</status><info><desc>查询成功</desc><isLosted>0</isLosted><isNewest>1</isNewest><isExpired>0</isExpired><hjzt>0</hjzt></info></result></SubmitResult>
{ "code":
2
, "msg":
"提交成功"
, "idcardid":
"16236437872836"
, "result":
{ "status":
"2"
, "info":
{ "desc":
"查询成功"
, "isLosted":
"0"
, "isNewest":
"1"
, "isExpired":
"0"
, "hjzt":
"0"
}
}
}
示例(失败)
<?xml version="1.0" encoding="utf-8"?><SubmitResult><code>1</code><msg>提交失败</msg></SubmitResult> {"code":1,"msg":"提交失败"}
$account = 'xxxxxxxx';
$password = 'xxxxxxxxx';
$app = 'idcardstatus'; //固定值
$name = '张三';
$id_card_no = '40122111******';
$time = '1623643787';
$password=md5($account.$password.$app.$name.$id_card_no.$time);
$password=md5('xxxxxxxxxxxxxxxxxidcardstatus张三40122111******1623643787');
//注意:所有字符编码统一为UTF-8
在线咨询
150,000家
企业客户
21年
行业经验
2V1
2对1客户支持