請(qǐng)求支持 POST 和 GET 兩種方法,字符編碼為 utf-8 ,支持全天24小時(shí)發(fā)送。
https://api.ihuyi.com/idcard/entcert/Submit.json
| 參數(shù)名稱 | 參數(shù)值描述 | 示例 | 類型 | 必填 |
| Content-Type | 內(nèi)容類型,固定值 | application/x-www-form-urlencoded | string | 是 |
| 參數(shù)名稱 | 參數(shù)值描述 | 示例 | 類型 | 必填 |
| account | APIID(用戶中心【認(rèn)證核驗(yàn)】-【企業(yè)信息驗(yàn)證】-【產(chǎn)品總覽】查看) | xxxxxxxx | string | 是 |
| password | 1、APIKEY(用戶中心【認(rèn)證核驗(yàn)】-【企業(yè)信息驗(yàn)證】-【產(chǎn)品總覽】查看) 2、動(dòng)態(tài)密碼(生成動(dòng)態(tài)密碼方式請(qǐng)看該文檔末尾的說明) |
xxxxxxxxx | string | 是 |
| ent_name | 企業(yè)名稱 | 上海************有限公司 | string | 否 |
| ent_code | 社會(huì)信用代碼 | 913****** | string | 否 |
| organization_code | 組織機(jī)構(gòu)代碼 | 403925****** | string | 否 |
| reg_no | 注冊(cè)號(hào) | 403925****** | string | 否 |
| license_name_list | 證書類型列表(參考附件《證書類型》),多個(gè)用英文逗號(hào)分隔 | 1 | string | 否 |
| have_history | 是否包含歷史資質(zhì)證書(1-包含;0-不包含;默認(rèn)包含)。歷史資質(zhì)證書指過期、注銷等狀態(tài)的證 | 1 | string | 否 |
| page_index | 頁碼,默認(rèn)第一頁 | 1 | string | 否 |
| page_size | 每頁條數(shù)(默認(rèn)50條,最大50條) | 50 | string | 否 |
| time | Unix時(shí)間戳(10位整型數(shù)字,當(dāng)使用動(dòng)態(tài)密碼方式時(shí)為必填) | 1623643787 | string | 否 |
| 參數(shù)名稱 | 參數(shù)值描述 | 示例 | 類型 | 必返 |
| code | 返回值為2時(shí),表示提交成功 | 2|1 | int | |
| msg | 提交結(jié)果描述 | 查詢成功|查詢失敗 | string | |
| idcardid | 當(dāng)提交成功后,此字段為流水號(hào),否則為0或空 | 16236437872836|0 | string | |
| result | 認(rèn)證結(jié)果 | object | ||
| total | 總數(shù) | 1 | string | |
| lists[] | 數(shù)據(jù)列表 | array | ||
| licenseName | 證書名稱 | 科技型中小企業(yè) | string | |
| licenseNumber | 證書編號(hào) | 2023310116080**** | string | |
| isHistory | 是否歷史(0-否;1-是) | 1 | string | |
| startDate | 發(fā)證日期 | 2023-04-21 | string | |
| endDate | 有效期至 | 2023-12-31 | string | |
| licenseState | 證書狀態(tài) | 過期 | string | |
| licenseDetail | 證書詳情 | array | ||
| title | 證書詳情,并返回字段中文標(biāo)題 | 公司名稱 | string | |
| content | 證書詳情,并返回字段值 | 上海*****有限公司 | string |
| code | msg |
| 0 | 未知錯(cuò)誤 |
| 1 | 提交失敗 |
| 2 | 提交成功 |
| 400 | 非法ip訪問 |
| 401 | 帳號(hào)不能為空 |
| 402 | 密碼不能為空 |
| 403 | 應(yīng)用不存在 |
| 404 | 姓名不能為空 |
| 4041 | 姓名格式不正確(2-10個(gè)中文漢字) |
| 406 | 企業(yè)名稱、統(tǒng)代、組織機(jī)構(gòu)代碼、工商注冊(cè)號(hào)四選一 |
| 407 | 每頁條數(shù)最大50 |
| 4061 | 身份證格式不正確 |
| 405 | API ID 或 API KEY 不正確 |
| 4050 | 賬號(hào)被凍結(jié) |
| 40501 | 動(dòng)態(tài)密碼已過期 |
| 40502 | 動(dòng)態(tài)密碼校驗(yàn)失敗 |
| 40505 | 沒有簽定合同 |
| 4051 | 剩余條數(shù)不足 |
| 4052 | 訪問 ip 與備案 ip 不符 |
| 4086 | 通道無效 |
| 4010 | 通道錯(cuò)誤 |
https://api.ihuyi.com/idcard/entcert/Submit.json?account=xxxxxxxx&password=xxxxxxxxx&ent_name=上海************有限公司&ent_code=913******&organization_code=403925******®_no=403925******&license_name_list=1&have_history=1&page_index=1&page_size=50&time=1623643787
示例(成功)
<?xml version="1.0" encoding="utf-8"?><SubmitResult><code>2</code><msg>查詢成功</msg><idcardid>16236437872836</idcardid><result><total>1</total><lists><list><licenseName>科技型中小企業(yè)</licenseName><licenseNumber>2023310116080****</licenseNumber><isHistory>1</isHistory><startDate>2023-04-21</startDate><endDate>2023-12-31</endDate><licenseState>過期</licenseState><licenseDetail><title>公司名稱</title><content>上海*****有限公司</content></licenseDetail></list><list><licenseName>科技型中小企業(yè)</licenseName><licenseNumber>2023310116080****</licenseNumber><isHistory>1</isHistory><startDate>2023-04-21</startDate><endDate>2023-12-31</endDate><licenseState>過期</licenseState><licenseDetail><title>公司名稱</title><content>上海*****有限公司</content></licenseDetail></list><list><licenseName>科技型中小企業(yè)</licenseName><licenseNumber>2023310116080****</licenseNumber><isHistory>1</isHistory><startDate>2023-04-21</startDate><endDate>2023-12-31</endDate><licenseState>過期</licenseState><licenseDetail><title>公司名稱</title><content>上海*****有限公司</content></licenseDetail></list></lists></result></SubmitResult> {"code":2,"msg":"查詢成功","idcardid":"16236437872836","result":{"total":1,"lists":[{"licenseName":"科技型中小企業(yè)","licenseNumber":"2023310116080****","isHistory":"1","startDate":"2023-04-21","endDate":"2023-12-31","licenseState":"過期","licenseDetail":[{"licenseName":"科技型中小企業(yè)","licenseNumber":"2023310116080****","isHistory":"1","startDate":"2023-04-21","endDate":"2023-12-31","licenseState":"過期","licenseDetail":""},{"licenseName":"科技型中小企業(yè)","licenseNumber":"2023310116080****","isHistory":"1","startDate":"2023-04-21","endDate":"2023-12-31","licenseState":"過期","licenseDetail":""},{"licenseName":"科技型中小企業(yè)","licenseNumber":"2023310116080****","isHistory":"1","startDate":"2023-04-21","endDate":"2023-12-31","licenseState":"過期","licenseDetail":""},]},{"licenseName":"科技型中小企業(yè)","licenseNumber":"2023310116080****","isHistory":"1","startDate":"2023-04-21","endDate":"2023-12-31","licenseState":"過期","licenseDetail":[{"licenseName":"科技型中小企業(yè)","licenseNumber":"2023310116080****","isHistory":"1","startDate":"2023-04-21","endDate":"2023-12-31","licenseState":"過期","licenseDetail":""},{"licenseName":"科技型中小企業(yè)","licenseNumber":"2023310116080****","isHistory":"1","startDate":"2023-04-21","endDate":"2023-12-31","licenseState":"過期","licenseDetail":""},{"licenseName":"科技型中小企業(yè)","licenseNumber":"2023310116080****","isHistory":"1","startDate":"2023-04-21","endDate":"2023-12-31","licenseState":"過期","licenseDetail":""},]},{"licenseName":"科技型中小企業(yè)","licenseNumber":"2023310116080****","isHistory":"1","startDate":"2023-04-21","endDate":"2023-12-31","licenseState":"過期","licenseDetail":[{"licenseName":"科技型中小企業(yè)","licenseNumber":"2023310116080****","isHistory":"1","startDate":"2023-04-21","endDate":"2023-12-31","licenseState":"過期","licenseDetail":""},{"licenseName":"科技型中小企業(yè)","licenseNumber":"2023310116080****","isHistory":"1","startDate":"2023-04-21","endDate":"2023-12-31","licenseState":"過期","licenseDetail":""},{"licenseName":"科技型中小企業(yè)","licenseNumber":"2023310116080****","isHistory":"1","startDate":"2023-04-21","endDate":"2023-12-31","licenseState":"過期","licenseDetail":""},]}]}}
示例(失?。?/p>
<?xml version="1.0" encoding="utf-8"?><SubmitResult><code>1</code><msg>查詢失敗</msg></SubmitResult> {"code":1,"msg":"查詢失敗"}
$account = 'xxxxxxxx';
$password = 'xxxxxxxxx';
$app = 'entcert'; //固定值
$ent_name = '上海************有限公司';
$ent_code = '913******';
$time = '1623643787';
$password=md5($account.$password.$app.$ent_name.$ent_code.$time);
$password=md5('xxxxxxxxxxxxxxxxxentcert上海************有限公司913******1623643787');
//注意:所有字符編碼統(tǒng)一為UTF-8
國內(nèi)專業(yè)互聯(lián)網(wǎng)團(tuán)隊(duì)
21年行業(yè)經(jīng)驗(yàn)
7x24小時(shí)售后支持
豐富的行業(yè)經(jīng)驗(yàn)
互 億 無 線 官 方 微 信 號(hào)
Copyright ? 2004-2025 上海思銳信息技術(shù)有限公司 All rights reserved. 滬ICP備07035915號(hào)-15 電信增值業(yè)務(wù)許可證:B2-20160082
服務(wù)熱線:
4008 808 898
服務(wù)熱線(工作時(shí)間):
4008 808 898
業(yè)務(wù)咨詢(非工作時(shí)間):
售后咨詢(非工作時(shí)間):
驗(yàn)證碼已發(fā)送到您的手機(jī),請(qǐng)查收!
輸入驗(yàn)證碼后,點(diǎn)擊“開通體驗(yàn)賬戶”按鈕可立即開通體驗(yàn)賬戶。