{
"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'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the CardCheck API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime.
Card number validation API: Luhn checksum, network detection for 9 networks, length verification and a flag for published sample card numbers. Masked output only, no database lookups.
No. CardCheck validates format only — Luhn checksum, recognised network, issued length. Whether an account exists, has funds, or is blocked is known only to the issuer.
A fixed built-in list of the classic published gateway test numbers (the Stripe/Adyen fixtures such as 4242…). It is a fixture list, not an exhaustive detector of every published test number — a test number that is not on the list will not be flagged.
No. Responses carry only the masked number, the 6-digit BIN and the last 4 digits. Numbers are processed in memory only.
Nine: Visa, Mastercard (including the 2221–2720 two-series), American Express, Discover, Diners Club, JCB, UnionPay, Mir and Maestro — from the published IIN prefix ranges, including subtleties like Discover's 622126–622925 range inside the UnionPay 62 block.
Every answer is computed locally on the edge network — no upstream calls, no database — so latency is a single edge round-trip.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund