{"uid":"cap_QJM_dH5_t6umfXoOneOGp","slug":"fastx402-credit-card-luhn-validator-c792827c","name":"FastX402 Credit Card Luhn Validator","description":"200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/credit-card-luhn?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 (digits only, or with spaces/dashes)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"valid":{"type":"boolean"},"number":{"type":"string"},"scheme":{"type":"string"},"luhn_valid":{"type":"boolean"},"expected_length":{"type":"array","items":{"type":"integer"}}}}}}}},"responseSchema":{"type":"json","example":{"valid":true,"number":"4532015112830366","scheme":"Visa","luhn_valid":true,"expected_length":[13,16,19]}},"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_P_iIOABNepFQVClQVYFA_","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 credit card number using the Luhn algorithm and identifies the card scheme (Visa, Mastercard, etc.) and expected length","exampleAgentPrompt":"Can you check if this credit card number is valid and tell me what card network it belongs to: 4532015112830366?","exampleUseCases":[{"title":"Pre-payment card number check","prompt":"Before I submit this order, verify that the card number 5425233430109903 is valid and tell me if it's a Mastercard."},{"title":"E-commerce form validation","prompt":"A customer entered card number 4111 1111 1111 1111 in our checkout form — is it a real card number and which network is it on?"},{"title":"Fraud screening pipeline","prompt":"I have a suspicious card number 6011000990139424 from a transaction — run a Luhn check on it and tell me whether it's structurally valid and what card type it is."}],"resultDescription":"Returns a JSON object indicating whether the card number is valid overall, the normalized card number digits, the detected card scheme (e.g. Visa, Mastercard, Amex), whether it passes the Luhn algorithm check, and an array of expected valid lengths for that card scheme.","failureModes":["Missing 'number' query parameter returns an error","Non-numeric input (after stripping spaces/dashes) may return invalid result","Very short or very long numbers may fail scheme detection","Payment failure (402) if USDC balance is insufficient on Base or Solana"],"whenToPreferThis":"Use this endpoint when you need a lightweight, instant, no-account credit card number syntax and Luhn check with scheme identification, especially in agent pipelines where you want to validate card numbers before passing them to payment processors or flag potentially fraudulent inputs. Ideal for serverless/agent workflows that cannot maintain API keys.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:10:17.164Z","isFirstParty":false,"canonicalSlug":"fastx402-credit-card-luhn-validator-c792827c"}