本文檔主要提供給互億平臺的用戶對接接口的使用說明,開發(fā)者可以利用互億無線提供的 HTTP 接口,調(diào)用互億無線的實名認(rèn)證服務(wù)。
GET / POST
1、采用HTTPS協(xié)議提交請求
2、通過MD5動態(tài)簽名方式加密
登錄用戶中心,進(jìn)入【實名認(rèn)證】模塊,在【產(chǎn)品總覽】頁面右側(cè),如下圖所示:
通過POST、 GET 方式進(jìn)行提交,數(shù)據(jù)編碼采用utf-8格式,24小時全天提交。
內(nèi)容格式為:Content-Type: application/x-www-form-urlencoded
https://api.ihuyi.com/idcard/entmark/Submit.json
| 參數(shù)名稱 | 參數(shù)值描述 | 必填 |
| account | APIID(用戶中心【實名認(rèn)證】-【產(chǎn)品總覽】查看) | 是 |
| password | 1、APIKEY(用戶中心【實名認(rèn)證】-【產(chǎn)品總覽】查看) 2、動態(tài)密碼(生成動態(tài)密碼方式請看該文檔末尾的說明) |
是 |
| ent_name | 企業(yè)名稱。企業(yè)名稱 、統(tǒng)代、組織機構(gòu)代碼、工商注冊號四選一 | 否 |
| ent_code | 社會信用代碼。企業(yè)名稱、統(tǒng)代、組織機構(gòu)代碼、工商注冊號四選一 | 否 |
| organization_code | 組織機構(gòu)代碼。企業(yè)名稱、統(tǒng)代、組織機構(gòu)代碼、工商注冊號四選一 | 否 |
| reg_no | 注冊號。企業(yè)名稱、統(tǒng)代、組織機構(gòu)代碼、工商注冊號四選一 | 否 |
| begin_date | 申請開始日(格式y(tǒng)yyy-MM-DD,如2025-01-01) | 否 |
| end_date | 申請結(jié)束日(格式y(tǒng)yyy-MM-DD,如2025-01-01) | 否 |
| int_category | 國際分類代碼(參考附件商標(biāo)國際分類,如1、2...) | 否 |
| application_number | 申請/注冊號 | 否 |
| page_index | 頁碼,默認(rèn)第一頁 | 否 |
| page_size | 每頁條數(shù)(默認(rèn)20條,最大20條) | 否 |
| time | Unix時間戳(10位整型數(shù)字,當(dāng)使用動態(tài)密碼方式時為必填) | 否 |
用戶通過http 或 https提交請求到服務(wù)器后,服務(wù)器會返回一串json格式的字符串,SubmitResult結(jié)構(gòu)說明如下:
| 參數(shù)名稱 | 類型 | 描述 |
| code | int | 返回值為2時,表示提交成功 |
| idcardid | string | 當(dāng)提交成功后,此字段為流水號,否則為0 |
| msg | string | 提交結(jié)果描述 |
| result | object | 查詢結(jié)果 |
| result.total | string | 總數(shù) |
| result.list+ | array | 列表 |
| applicationNumber | string | 申請?zhí)?/td> |
| applicant | string | 申請人名稱 |
| internationalCategory | string | 國際分類 |
| isHistory | string | 是否歷史 |
| applicationDate | string | 申請日期 |
| applicationYear | string | 申請注冊年份 |
| trademarkName | string | 商標(biāo)名稱 |
| applicantEn | string | 申請人名稱(英文) |
| applicantAddressCn | string | 申請人地址(中文) |
| applicantAddressEn | string | 申請人地址(英文) |
| agencyEntity | string | 代理機構(gòu) |
| agencyEntityId | string | 代理機構(gòu)ID |
| agencyEntityType | string | 代理機構(gòu)類型 |
| isShared | string | 是否共有商標(biāo) |
| applicantShare | string | 共有申請人 |
| applicantShareId | string | 共有申請人ID |
| firstAuditNumber | string | 初審公告期號 |
| firstAuditDate | string | 初審公告日期 |
| regPublishNumber | string | 注冊公告期號 |
| regPublishDate | string | 注冊公告日期 |
| trademarkType | string | 商標(biāo)類型 |
| trademarkTypeTag | string | 商標(biāo)類型標(biāo)識 |
| exclusivePeriod | string | 專用權(quán)期限 |
| startDate | string | 開始時間 |
| endDate | string | 結(jié)束時間 |
| trademarkForm | string | 商標(biāo)形式 |
| internationalRegDate | string | 國際注冊日期 |
| appointDate | string | 后期指定日期 |
| priorityDate | string | 優(yōu)先權(quán)日期 |
| trademarkStatus | string | 商標(biāo)狀態(tài) |
| nowStatus | string | 當(dāng)前狀態(tài) |
| isStereoscopic | string | 是否立體商標(biāo) |
| geographySign | string | 地理標(biāo)志信息 |
| colorTag | string | 顏色標(biāo)志 |
| product | string | 商標(biāo)商品(productName:商品名稱;productType:商品 類似群;isOverrule:是否駁回) |
| flow | string | 商標(biāo)流程(businessName:業(yè)務(wù)名稱;stepName:環(huán)節(jié)名稱;processDate:日期;processConclusion:結(jié)果) |
| announce | string | 商標(biāo)公告(announcementNumber:公告期號;publishDate:公告日期;announcementType:公告類型;announcementContent:公告內(nèi)容;announcementImg:原始公告圖片;transferor:商標(biāo)轉(zhuǎn)讓人;assignee:商標(biāo)受讓人) |
示例(成功)
{
"code": 2,
"msg": "提交成功",
"idcardid": "25071713393242455",
"result": {
"total": 25,
"list": [
{
"isStereoscopic": "0",
"applicationNumber": "81477709",
"endDate": "2035-06-13",
"applicationYear": "2024",
"regPublishDate": "2025-06-14",
"trademarkType": "一般",
"geographySign": "",
"trademarkTypeTag": "0",
"appointDate": "",
"applicantAddressEn": "",
"applicantAddressCn": "上海市金山區(qū)亭林鎮(zhèn)寺平南路16號444室",
"agencyEntity": "鄭州凱派爾知識產(chǎn)權(quán)代理有限公司",
"trademarkStatus": "注冊公告",
"trademarkName": "圖形",
"exclusivePeriod": "2025年06月14日至2035年06月13日",
"flow": "[{"applicationNumber":"81477709","businessName":"商標(biāo)注冊申請","internationalCategory":"20","processConclusion":"結(jié)束","processDate":"2024-10-19","stepName":"申請收文"},{"applicationNumber":"81477709","businessName":"商標(biāo)注冊申請","internationalCategory":"20","processConclusion":"結(jié)束","processDate":"2024-11-08","stepName":"等待受理通知書發(fā)文"}]",
"product": "[{"applicationNumber":"81477709","internationalCategory":"20","isOverrule":"0","productName":"非金屬梯凳","productType":"2003"}]",
"applicantShare": "",
"agencyEntityId": "195164394",
"trademarkForm": "",
"applicantEn": "",
"nowStatus": "",
"announce": "[{"announcementContent":"2025-06-13 商標(biāo)注冊公告(一) 第1939期","announcementImg":"https://sbggwj.sbj.cnipa.gov.cn:9443/tmann/group3/M00/AC/EF/CgoDIWhKTKuAdImoAAF6CTMR73U098.pdf","announcementNumber":"1939","announcementType":"商標(biāo)注冊公告(一)","applicationNumber":"81477709","assignee":"","internationalCategory":"20","publishDate":"2025-06-13","transferor":""}]",
"regPublishNumber": "1939",
"applicant": "上海思銳信息技術(shù)有限公司",
"agencyEntityType": "0",
"firstAuditNumber": "1927",
"colorTag": "",
"internationalRegDate": "",
"applicantShareId": "",
"priorityDate": "",
"firstAuditDate": "2025-03-13",
"internationalCategory": "20",
"isHistory": "0",
"isShared": "0",
"startDate": "2025-06-14",
"applicationDate": "2024-10-19"
}
]
}
}
示例(失?。?/p>
{
"code": 405,
"msg": "用戶名或密碼不正確",
"idcardid": "0"
}
| code | msg |
| 0 | 未知錯誤 |
| 1 | 提交失敗 |
| 2 | 提交成功 |
| 400 | 非法ip訪問 |
| 401 | 帳號不能為空 |
| 402 | 密碼不能為空 |
| 403 | 應(yīng)用不存在 |
| 407 | 手機號不能為空 |
| 4071 | 手機格式不正確 |
| 408 | 查詢無結(jié)果 |
| 405 | API ID或API KEY不正確 |
| 4050 | 賬號被凍結(jié) |
| 40501 | 動態(tài)密碼已過期 |
| 40502 | 動態(tài)密碼校驗失敗 |
| 40505 | 沒有簽定合同 |
| 4051 | 剩余條數(shù)不足 |
| 4052 | 訪問ip與備案ip不符 |
| 4086 | 通道無效 |
| 4010 | 通道錯誤 |
https://api.ihuyi.com/idcard/entmark/Submit.json?account=APIID&password=APIKEY&ent_name=企業(yè)名稱time=time
通過接口可以方便的查詢你的賬戶剩余條數(shù)。
內(nèi)容格式為:Content-Type: application/x-www-form-urlencoded
https://api.ihuyi.com/idcard/entmark/GetNum.json
| 參數(shù)名稱 | 參數(shù)值描述 | 必填 |
| account | APIID(用戶中心【實名認(rèn)證】-【產(chǎn)品總覽】查看) | 是 |
| password | 1、APIKEY(用戶中心【實名認(rèn)證】-【產(chǎn)品總覽】查看) 2、動態(tài)密碼(生成動態(tài)密碼方式請看該文檔末尾的說明) |
是 |
| time | Unix時間戳(10位整型數(shù)字,當(dāng)使用動態(tài)密碼方式時為必填) | 否 |
用戶通過http 或 https提交請求到服務(wù)器后,服務(wù)器會返回一串json格式的字符串,GetNumResult結(jié)構(gòu)說明如下:
| 參數(shù)名稱 | 類型 | 描述 |
| code | int | 狀態(tài)返回值 |
| msg | string | 查詢結(jié)果描述 |
| num | string | 剩余數(shù)量 |
示例(成功)
{"code":2,"msg":"查詢成功","num":123}
示例(失?。?/p>
{"code":405,"msg":"用戶名或密碼不正確","num":0}
| code | msg |
| 2 | 查詢成功 |
| 400 | 非法ip訪問 |
| 401 | 帳號不能為空 |
| 402 | 密碼不能為空 |
| 403 | 應(yīng)用不存在 |
| 405 | API ID或API KEY不正確 |
| 406 | 企業(yè)名稱、統(tǒng)代、組織機構(gòu)代碼、工商注冊號四選一 |
| 407 | 每頁條數(shù)最大20 |
| 4050 | 賬號被凍結(jié) |
| 40501 | 動態(tài)密碼已過期 |
| 40502 | 動態(tài)密碼校驗失敗 |
| 4052 | 訪問ip與備案ip不符 |
https://api.ihuyi.com/idcard/entmark/GetNum.json?account=APIID&password=APIKEY
$time = time(); $password = md5($account.$apikey.$app.$ent_name.$ent_code.$time);
示例:
APIID: test APIKEY:1q784322b****** app:entmark //固定值 ent_name:上海** ent_code:123** time:1651544941 結(jié)果:$password=md5("test1q784322b******entmark上海**123**1651544941");
注意:所以字符編碼統(tǒng)一為UTF-8
$time = time(); $password = md5($account.$apikey.$app.$time);
示例:
APIID: test APIKEY:1q784322ba1****** app:entmark //固定值 time:1651544941 結(jié)果:$password=md5("test1q784322ba1******entmark1651544941");
Unix時間戳參考地址:http://tool.chinaz.com/Tools/unixtime.aspx
| 語言 | 代碼 |
| JAVA | String date = new java.text.SimpleDateFormat("dd/MM/yyyy HH:mm:ss").format(new java.util.Date(Unix timestamp *1000)) |
| Linux | date -d @Unix timestamp |
| C | strptime(datetime, "%Y-%m-%d %H:%M:%S", &tm_time); unixtime = mktime(&tm_time); |
| C++ | std::time_t t = std::time(0); |
| DELPHI | uses DateUtils; DateTimeToUnix(Now) |
| GO | import "time" cur := time.Now() timestamp := cur.UnixNano() / 1000000 |
| Perl | 先 my $time = Unix timestamp 然后 my ($sec, $min, $hour, $day, $month, $year) = (localtime($time))[0,1,2,3,4,5,6] |
| PHP | date("r", Unix timestamp) |
| Node.js | var date = new Date( time * 1000 ); var time = date.getTime()/1000; |
| Python | 先 import time 然后 time.gmtime(Unix timestamp) |
| Ruby | Time.at(Unix timestamp) |
| SHELL | date +%s //UNIX 的時間戳; |
| VBScript / ASP | DateAdd("s", Unix timestamp, "01/01/1970 00:00:00") |
| VB6 | DateDiff("s", "1970-1-1 0:0:0", ToUnixTime) |
| 易語言 | 時間_到時間戳() |