Bank Card 2-Element Verification
Real-time verification of bank card number and cardholder name matching, returning consistent results to aid financial risk control and identity authentication.
50 coins/call
We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
Real-time verification of bank card number and cardholder name matching, returning consistent results to aid financial risk control and identity authentication.
50 coins/call
This API provides a two-factor (name, bank card number) consistency verification service for bank cards. By inputting the user's name and bank card number, the system real-time compares them with bank-reserved information, returning a verification result indicating whether they match. This helps developers quickly confirm the authenticity of user identity information.
name: Cardholder's real name (string)Includes ready-to-use Shell, Python, Go, Java, and PHP examples for direct integration.
{
"name": "张三",
"bankcard": "6228480402564890018"
}{
"code": "SUCCESS",
"message": "success",
"data": {
"result": "一致",
"desc": "姓名与银行卡号一致"
}
}The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| name | string | 张三 |
| bankcard | string | 6228480402564890018 |
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| code | string | SUCCESS |
| message | string | success |
| data | object | {...} |
| data.result | string | 一致 |
| data.desc | string | 姓名与银行卡号一致 |
bankcard: Bank card number to be verified (string)code: Status code, SUCCESS indicates a successful request.data.result: Verification conclusion. A value of "Match" indicates that the name and card number match.data.desc: Result description, such as "Name and bank card number are consistent."code is not SUCCESS to prevent business interruption due to network fluctuations or temporary upstream service exceptions.curl --request GET \
--url 'https://openapi.toolkk.com/v1/bankcard-check-2' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--data '{\n "name": "张三",\n "bankcard": "6228480402564890018"\n}'import os
import requests
url = "https://openapi.toolkk.com/v1/bankcard-check-2"
payload = {
"name": "张三",
"bankcard": "6228480402564890018"
}
headers = {
"Content-Type": "application/json",
"X-API-Key": os.getenv("TOOLKK_API_KEY", "YOUR_API_KEY"),
}
response = requests.get(url, headers=headers, params=payload, timeout=30)
response.raise_for_status()
print(response.json())package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
endpoint := "https://openapi.toolkk.com/v1/bankcard-check-2"
payload := []byte("{\n \"name\": \"张三\",\n \"bankcard\": \"6228480402564890018\"\n}")
req, err := http.NewRequest("GET", 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))
}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 \"name\": \"张三\",\n \"bankcard\": \"6228480402564890018\"\n}";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://openapi.toolkk.com/v1/bankcard-check-2"))
.method("GET", 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
$endpoint = 'https://openapi.toolkk.com/v1/bankcard-check-2';
$payload = "{\n \"name\": \"张三\",\n \"bankcard\": \"6228480402564890018\"\n}";
$ch = curl_init($endpoint);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
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;