呼叫價格
250 匠幣/次
快速接入
保持統一返回結構,直接透過服務端發起請求即可接入。
POST
https://openapi.toolkk.com/v1/bank-info-indentifycURL 示例
curl --request POST \
--url 'https://openapi.toolkk.com/v1/bank-info-indentify' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--data '{\n "bankcard": ""\n}'Python 示例
import os
import requests
url = "https://openapi.toolkk.com/v1/bank-info-indentify"
payload = {
"bankcard": ""
}
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/bank-info-indentify"
payload := []byte("{\n \"bankcard\": \"\"\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 \"bankcard\": \"\"\n}";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://openapi.toolkk.com/v1/bank-info-indentify"))
.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/bank-info-indentify';
$payload = "{\n \"bankcard\": \"\"\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;響應示例
{
"msg": "成功",
"success": true,
"code": 200,
"data": {
"result": "1",
"orderNo": "202511282209035161761",
"resultMsg": "Ⅰ类"
}
}範例用於理解回傳結構,實際結果以介面回傳為準。
- 鑑權方式
- 請求頭傳入 X-API-Key
- 預設限流
- 60 次/分鐘
- 超時時間
- 5000 ms
接入建議
服務端呼叫時,將 API Key 放在 X-API-Key 請求頭中。
建議按 response code 與業務欄位雙重判斷呼叫結果。
高頻呼叫場景請結合速率限制與重試策略使用。
請求欄位
從伺服器發起請求,並在 X-API-Key 標頭中傳入金鑰。
請求欄位
欄位來自介面結構定義。未提供的說明和範例會標為未標註。
| 欄位路徑 | 型別 | 必填 | 說明 | 示例值 |
|---|---|---|---|---|
| bankcard | string | 是 | 未標註 | 未標註 |
請求示例
{
"bankcard": ""
}- 鑑權方式
- 請求頭傳入 X-API-Key
- 預設限流
- 60 次/分鐘
- 超時時間
- 5000 ms
響應欄位
範例用於理解回傳結構,實際結果以介面回傳為準。
響應欄位
欄位來自介面結構定義。未提供的說明和範例會標為未標註。
| 欄位路徑 | 型別 | 必填 | 說明 | 示例值 |
|---|---|---|---|---|
| msg | string | 否 | 未標註 | 成功 |
| success | boolean | 否 | 未標註 | true |
| code | number | 否 | 未標註 | 200 |
| data | object | 否 | 未標註 | 未標註 |
| data.result | string | 否 | 未標註 | 1 |
| data.orderNo | string | 否 | 未標註 | 202511282209035161761 |
| data.resultMsg | string | 否 | 未標註 | Ⅰ类 |
響應示例
{
"msg": "成功",
"success": true,
"code": 200,
"data": {
"result": "1",
"orderNo": "202511282209035161761",
"resultMsg": "Ⅰ类"
}
}介面簡介
介面功能、應用情境、使用限制與常見問題。
介面簡介
本介面提供銀聯卡賬戶型別識別服務。透過傳入銀行卡號,系統返回該卡片對應的賬戶層級(如Ⅰ類、Ⅱ類或Ⅲ類戶),幫助開發者區分全功能賬戶與限制功能賬戶。
適用場景
- 金融風控:在開戶或轉賬前校驗賬戶許可權,防範違規交易。
- 業務分流:根據賬戶型別引導使用者進行不同額度的充值或支付操作。
- 資料清洗:完善使用者畫像,標記有效的高許可權銀行賬戶。
請求與返回說明
- 請求方式:POST
- 核心引數:
bankcard(字串,必填),需傳入待查詢的銀聯卡號。 - 返回結果:JSON格式。
success為true時,data.resultMsg欄位包含具體型別描述(例如“Ⅰ類”),data.result為型別程式碼。
接入建議
- 請確保傳入的卡號格式正確且為銀聯標準卡號。