{"uid":"cap_QP8rr287hgvax_YNSm8bv","slug":"moneytools-card-number-luhn-validator-b14402fe","name":"MoneyTools Card Number Luhn Validator","description":"Card number checksum (Luhn): Luhn checksum, brand (Visa, Mastercard, Amex, JCB, UnionPay...) and length check; returns only a masked number. Never stored. Free tier 10/day; then $0.001 via x402 (HTTP 402 + PAYMENT-REQUIRED) or X-API-Key credits. Not charged on failure. $0.001 USDC per call via x402 on Base. Run by MoneyTools.","url":"https://tools.moneytools.dev/v1/card-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"number":{"type":"string","examples":["4242 4242 4242 4242"],"description":"card number (test numbers recommended)"}}},"responseSchema":{"type":"json"},"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_ajghlPk6tXvuY7oZ6qKK1","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 payment card number using Luhn checksum, identifies the card brand (Visa, Mastercard, Amex, etc.), and checks length correctness, returning only a masked number.","exampleAgentPrompt":"Can you check if the card number 4242 4242 4242 4242 is valid — tell me if it passes the Luhn check, what brand it is, and show me the masked version?","exampleUseCases":[{"title":"Pre-submission card validation in checkout","prompt":"Before we charge the user, check if the card number 5500 0000 0000 0004 is valid — does it pass Luhn, what brand is it, and can you mask it for display?"},{"title":"Testing payment integration with fake cards","prompt":"I'm testing my payment flow — can you run a Luhn check on 3714 496353 98431 and tell me if it's a valid Amex number and what the masked version looks like?"},{"title":"Flagging invalid card entries in a support queue","prompt":"A customer submitted 1234 5678 9012 3456 as their card number — can you validate it with a Luhn check and tell me if it could be a real card and what brand it might be?"}],"resultDescription":"Returns whether the card number passes the Luhn checksum, the detected card brand (e.g. Visa, Mastercard, Amex, JCB, UnionPay), whether the length is correct for that brand, and a masked version of the card number. The raw number is never stored.","failureModes":["Invalid or malformed card number string returns a failure without charge","Non-numeric input or missing number field causes a 400-level error","Free tier exhausted (10/day) with no API key triggers HTTP 402 Payment Required via x402 protocol","Ambiguous card number that doesn't match any known brand may return unknown brand"],"whenToPreferThis":"Use this endpoint when you need a lightweight, privacy-safe card number check that doesn't store data and returns a masked result — ideal for pre-validation before submitting to a payment processor, testing card inputs, or flagging bad data in a user form. Prefer this over building your own Luhn implementation when you also need brand detection and length validation in one call. The x402 micropayment model makes it cost-effective for low-volume or on-demand use without subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-05T12:43:23.649Z","isFirstParty":false,"canonicalSlug":"moneytools-card-number-luhn-validator-b14402fe"}