{"uid":"cap_Dg8p35dwAr5FDUy_qa--_","slug":"luhn-check-card-brand-detector-22f5edd7","name":"Luhn Check & Card Brand Detector","description":"Validate a number by the Luhn checksum and detect the card brand.","url":"https://api.24klabs.ai/api/v1/luhn-check","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"number":{"type":"string"}}},"responseSchema":{"type":"json","example":{"brand":"Visa","valid":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0IiwaSWbvJWRLkpsUE0Nl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a number against the Luhn checksum algorithm and identifies the payment card brand (Visa, Mastercard, Amex, etc.).","exampleAgentPrompt":"Check if the card number 4532015112830366 is valid and tell me what brand it is — run a Luhn checksum on it.","exampleUseCases":[{"title":"Pre-charge card number validation","prompt":"Before I try to charge this customer, can you verify that the card number 5425233430109903 passes the Luhn check and tell me what brand it is?"},{"title":"Form input validation for checkout","prompt":"A user just typed 378282246310005 into our checkout form — is it a valid card number and what type of card is it?"},{"title":"Detect card brand for routing","prompt":"I have the card number 6011111111111117 and need to know if it's valid and what network it belongs to so I can route it to the right processor."}],"resultDescription":"Returns whether the card number passes the Luhn checksum (true/false) and the detected card brand (e.g. Visa, Mastercard, American Express, Discover, etc.).","failureModes":["Invalid or missing card number in request body returns an error","Non-numeric characters in the card number may cause a parse error","Very short or empty strings may fail validation with an error response","Unknown card prefixes may return null or unknown for brand even if Luhn passes"],"whenToPreferThis":"Use this endpoint when you need a fast, lightweight structural validation of a payment card number — confirming it's not a random or mistyped string via Luhn checksum — and simultaneously want to identify the card brand without calling a full payment processor. Ideal for form validation, fraud screening, or routing logic before any actual payment transaction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:51:05.919Z","isFirstParty":false}