{
"number": "424242••••••4242",
"bin": "424242",
"last4": "4242",
"length": 16,
"valid": true,
"possible": true,
"checks": {
"luhn": true,
"length": true,
"networkKnown": true
},
"network": "Visa",
"networkId": "visa",
"expectedLengths": [
13,
16,
19
],
"testCard": true
}
curl --location --request GET 'https://zylalabs.com/api/14775/cardcheck+api/38278/validate+card?number=4242424242424242' --header 'Authorization: Bearer YOUR_API_KEY'
{
"number": "424242••••••4242",
"bin": "424242",
"last4": "4242",
"length": 16,
"valid": true,
"possible": true,
"checks": {
"luhn": true,
"length": true,
"networkKnown": true
},
"network": "Visa",
"networkId": "visa",
"expectedLengths": [
13,
16,
19
],
"testCard": true
}
curl --location --request POST 'https://zylalabs.com/api/14775/cardcheck+api/38283/validate+card+via+post' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"number": "4242424242424242"}'
{
"results": [
{
"number": "424242••••••4242",
"bin": "424242",
"last4": "4242",
"length": 16,
"valid": true,
"possible": true,
"checks": {
"luhn": true,
"length": true,
"networkKnown": true
},
"network": "Visa",
"networkId": "visa",
"expectedLengths": [
13,
16,
19
],
"testCard": true
},
{
"number": "555555••••••4444",
"bin": "555555",
"last4": "4444",
"length": 16,
"valid": true,
"possible": true,
"checks": {
"luhn": true,
"length": true,
"networkKnown": true
},
"network": "Mastercard",
"networkId": "mastercard",
"expectedLengths": [
16
],
"testCard": true
}
],
"summary": {
"total": 2,
"valid": 2,
"invalid": 0
}
}
curl --location --request POST 'https://zylalabs.com/api/14775/cardcheck+api/38284/validate+card+batch' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"numbers": ["4242424242424242", "5555555555554444"]}'
{
"count": 9,
"networks": [
{
"id": "visa",
"name": "Visa",
"lengths": [
13,
16,
19
],
"prefixes": "4"
},
{
"id": "mastercard",
"name": "Mastercard",
"lengths": [
16
],
"prefixes": "51-55, 2221-2720"
},
{
"id": "amex",
"name": "American Express",
"lengths": [
15
],
"prefixes": "34, 37"
},
{
"id": "discover",
"name": "Discover",
"lengths": [
16,
19
],
"prefixes": "6011, 622126-622925, 624000-626999, 628200-628899, 65"
},
{
"id": "diners",
"name": "Diners Club",
"lengths": [
14
],
"prefixes": "300-305, 36, 38, 39"
},
{
"id": "jcb",
"name": "JCB",
"lengths": [
16,
17,
18,
19
],
"prefixes": "3528-3589"
},
{
"id": "unionpay",
"name": "UnionPay",
"lengths": [
16,
17,
18,
19
],
"prefixes": "62"
},
{
"id": "mir",
"name": "Mir",
"lengths": [
16,
17,
18,
19
],
"prefixes": "2200-2204"
},
{
"id": "maestro",
"name": "Maestro",
"lengths": [
12,
13,
14,
15,
16,
17,
18,
19
],
"prefixes": "5018, 5020, 5038, 5893, 6304, 6759, 6761-6763"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/14775/cardcheck+api/38285/list+networks' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 卡片检查 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
卡片检查仅验证格式 - Luhn 校验和、已识别的网络、发行长度。账户是否存在、是否有资金或被封锁,只有发行者知道
一个固定的内置经典发布网关测试编号列表(如Stripe/Adyen的4224等) 这是一份道具列表,并不是每个发布测试编号的详尽检测器 — 不在列表上的测试编号不会被标记
不 响应仅携带掩码号码 6位数字BIN和最后4位数字 数据仅在内存中处理
九:Visa、Mastercard(包括2221–2720两个系列)、美国运通、发现、Diners Club、JCB、银联、Mir和Maestro——来自已发布的IIN前缀范围,包括一些细节,例如发现的622126–622925范围在银联62区块内
每个答案都是在边缘网络上本地计算的——没有上游调用,没有数据库——所以延迟是一次边缘往返