{"uid":"cap_0g0IwKMtDes42QedhHSlW","slug":"credit-card-number-validator-luhn-brand-iin-a6258364","name":"Credit Card Number Validator (Luhn + Brand + IIN)","description":"Luhn check plus card brand and length from IIN ranges (Visa, Mastercard, Amex...). Test numbers only; output is masked.","url":"https://bank-validators.x402tookit.com/card-check?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["number"],"properties":{"number":{"type":"string","description":"Card number, TEST numbers only (e.g. 4242 4242 4242 4242); never a real card"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"brand":{"type":["null","string"]},"digits":{"type":["null","number"]},"masked":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"]},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"luhnValid":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"typicalLengths":{"type":["array","null"],"items":{"type":"number"}},"lengthMatchesBrand":{"type":["boolean","null"]},"isPublishedTestNumber":{"type":["boolean","null"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QVuL2EoKN8E_x-GQptgJ9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a test credit card number via Luhn checksum, identifies the card brand (Visa, Mastercard, Amex, etc.) from IIN ranges, and checks length validity — returning masked output only.","exampleAgentPrompt":"Can you validate the test card number 4242424242424242 — check if it passes the Luhn checksum, what brand it is, and whether the length is right for that card type?","exampleUseCases":[{"title":"E-commerce checkout form validation","prompt":"Before we submit the order, can you check if 5500005555555559 passes the Luhn check and confirm what card brand it is and whether the number length matches?"},{"title":"Test suite card number verification","prompt":"I'm building a payments integration and need to confirm that 378282246310005 is a valid Amex test number — does it pass the Luhn check and is the digit count right for Amex?"},{"title":"Fraud-prevention training data labeling","prompt":"Run a quick Luhn and brand check on 6011111111111117 and tell me the verdict — is it a valid Discover card format and is it a known published test number?"}],"resultDescription":"Returns a JSON object with: luhnValid (boolean), brand name (e.g. 'Visa'), typicalLengths array for the brand, lengthMatchesBrand (boolean), masked card string, verdict summary, whether it is a published test number, the IIN source, a disclaimer, and any degraded/not-checked flags.","failureModes":["Missing 'number' query parameter returns an error","Real card numbers rejected or flagged — endpoint is for test numbers only","Unknown IIN prefix returns null brand and null length data","Non-numeric input or malformed string may return validation failure","Upstream IIN registry degraded returns degraded:true with partial results"],"whenToPreferThis":"Choose this endpoint when you need to validate the structural integrity of a credit/debit card number during testing or development — specifically when you want Luhn checksum, brand identification from IIN ranges, and length validation in a single call. Prefer it over generic Luhn libraries when brand-level IIN classification and masked output are required. Not suitable for real card numbers or live card authentication.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:32:55.608Z","isFirstParty":false,"canonicalSlug":"credit-card-number-validator-luhn-brand-iin-a6258364"}