呼叫價格
40 匠幣/次
快速接入
保持統一返回結構,直接透過服務端發起請求即可接入。
https://openapi.toolkk.com/v1/enterprise-two-validate-detailcURL 示例
curl --request POST \
--url 'https://openapi.toolkk.com/v1/enterprise-two-validate-detail' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--data '{\n "enterpriseName": "阿里巴巴(中国)有限公司",\n "enterpriseNo": "91330100799655058B"\n}'Python 示例
import os
import requests
url = "https://openapi.toolkk.com/v1/enterprise-two-validate-detail"
payload = {
"enterpriseName": "阿里巴巴(中国)有限公司",
"enterpriseNo": "91330100799655058B"
}
headers = {
"Content-Type": "application/json",
"X-API-Key": os.getenv("TOOLKK_API_KEY", "YOUR_API_KEY"),
}
response = requests.request("POST", url, headers=headers, json=payload, timeout=30)
response.raise_for_status()
print(response.json())Go 示例
package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
endpoint := "https://openapi.toolkk.com/v1/enterprise-two-validate-detail"
payload := []byte("{\n \"enterpriseName\": \"阿里巴巴(中国)有限公司\",\n \"enterpriseNo\": \"91330100799655058B\"\n}")
req, err := http.NewRequest("POST", endpoint, bytes.NewBuffer(payload))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-API-Key", "YOUR_API_KEY")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
if err != nil {
panic(err)
}
fmt.Println(string(body))
}Java 示例
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class ToolkkExample {
public static void main(String[] args) throws Exception {
String payload = "{\n \"enterpriseName\": \"阿里巴巴(中国)有限公司\",\n \"enterpriseNo\": \"91330100799655058B\"\n}";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://openapi.toolkk.com/v1/enterprise-two-validate-detail"))
.method("POST", HttpRequest.BodyPublishers.ofString(payload))
.header("Content-Type", "application/json")
.header("X-API-Key", "YOUR_API_KEY")
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}PHP 示例
<?php
$endpoint = 'https://openapi.toolkk.com/v1/enterprise-two-validate-detail';
$payload = "{\n \"enterpriseName\": \"阿里巴巴(中国)有限公司\",\n \"enterpriseNo\": \"91330100799655058B\"\n}";
$ch = curl_init($endpoint);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
'X-API-Key: YOUR_API_KEY',
],
CURLOPT_POSTFIELDS => $payload,
]);
$response = curl_exec($ch);
if ($response === false) {
throw new RuntimeException(curl_error($ch));
}
curl_close($ch);
echo $response;響應示例
{
"code": "SUCCESS",
"message": "success",
"data": {
"result": "一致",
"desc": "企业名称与统一社会信用代码一致"
}
}範例用於理解回傳結構,實際結果以介面回傳為準。
- 鑑權方式
- 請求頭傳入 X-API-Key
- 預設限流
- 600 次/分鐘
- 超時時間
- 5000 ms
服務端呼叫時,將 API Key 放在 X-API-Key 請求頭中。
建議按 response code 與業務欄位雙重判斷呼叫結果。
高頻呼叫場景請結合速率限制與重試策略使用。
請求欄位
從伺服器發起請求,並在 X-API-Key 標頭中傳入金鑰。
請求欄位
以下欄位根據示例 JSON 自動提取,僅作接入參考。
| 欄位路徑 | 型別 | 必填 | 說明 | 示例值 |
|---|---|---|---|---|
| enterpriseName | string | 未標註 | 未標註 | 阿里巴巴(中国)有限公司 |
| enterpriseNo | string | 未標註 | 未標註 | 91330100799655058B |
請求示例
{
"enterpriseName": "阿里巴巴(中国)有限公司",
"enterpriseNo": "91330100799655058B"
}- 鑑權方式
- 請求頭傳入 X-API-Key
- 預設限流
- 600 次/分鐘
- 超時時間
- 5000 ms
響應欄位
範例用於理解回傳結構,實際結果以介面回傳為準。
響應欄位
以下欄位根據示例 JSON 自動提取,僅作接入參考。
| 欄位路徑 | 型別 | 必填 | 說明 | 示例值 |
|---|---|---|---|---|
| code | string | 未標註 | 未標註 | SUCCESS |
| message | string | 未標註 | 未標註 | success |
| data | object | 未標註 | 未標註 | {...} |
| data.result | string | 未標註 | 未標註 | 一致 |
| data.desc | string | 未標註 | 未標註 | 企业名称与统一社会信用代码一致 |
響應示例
{
"code": "SUCCESS",
"message": "success",
"data": {
"result": "一致",
"desc": "企业名称与统一社会信用代码一致"
}
}$.code == 200 介面簡介
介面功能、應用情境、使用限制與常見問題。
功能介紹
企業二要素核驗API旨在透過比對用戶提交的企業統一社會信用代碼與企業名稱,核實企業資訊的真實性與一致性。本介面能夠快速、準確地驗證企業核心身份資訊是否匹配,有效防範虛假企業資訊帶來的風險。它利用權威數據源進行即時比對,確保核驗結果的可靠性與時效性。適用於各類需要對企業身份進行確認的業務場景,幫助企業合規經營,降低業務風險。
應用場景
- 金融風控: 銀行、P2P平台在為企業提供貸款、融資服務前,核驗企業身份,防止欺詐。
- 供應鏈管理: 供應商入駐平台時,核驗供應商的企業資質,確保交易安全。
- 合約簽署: 線上簽署電子合約時,核驗合約簽署方企業資訊的真實性。
- 政務服務: 各級政府部門在辦理企業相關業務時,進行企業資訊核驗,提高辦事效率和準確性。
- 商務合作: 建立新的合作夥伴關係時,驗證合作企業的合法性與真實性。