{"uid":"cap_pDyzSWjGN6a0Cwb9cMAu1","slug":"foundry-credit-card-number-validator-1d20e003","name":"Foundry Credit Card Number Validator","description":"Credit card number validator: Luhn checksum and card brand (Visa, Mastercard, Amex...). Format check only, never stored. Input: a card number.","url":"https://minty-sprout.onrender.com/v1/card-validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","maxLength":8000,"description":"A card number (12 to 19 digits)"}}},"responseSchema":{"type":"json","example":{"note":"Format check only; never stored or charged.","brand":"Visa","length":16,"masked":"424242******4242","valid_luhn":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_-aYV8Lr9MCxYFG3260-3K","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 via Luhn checksum algorithm and identifies the card brand (Visa, Mastercard, Amex, etc.) — format check only, data never stored.","exampleAgentPrompt":"Can you check if the card number 4242424242424242 is valid — specifically whether it passes the Luhn checksum and what brand it is?","exampleUseCases":[{"title":"E-commerce checkout form validation","prompt":"Before I submit this order, can you verify that the card number 5500005555555559 is a valid format and tell me what brand it is?"},{"title":"Fraud screening on user input","prompt":"A user just entered 378282246310005 as their card number — does it pass the Luhn check, and is it actually an Amex card?"},{"title":"Testing payment flows with dummy cards","prompt":"I'm testing my checkout page — can you validate 6011111111111117 and confirm it's a Discover card with a valid Luhn checksum?"}],"resultDescription":"Returns a JSON object indicating whether the card number passes the Luhn checksum (valid_luhn: boolean), the detected card brand (e.g. Visa, Mastercard, Amex), the card number length, and a masked version of the number (e.g. '424242******4242'). Also includes a note confirming the number is never stored or charged.","failureModes":["Card number too short or too long (outside 12–19 digits) — likely a 400 error or validation failure","Non-numeric characters in input causing a parse error","Unknown or unrecognized card brand returns null/unknown brand field","Luhn check fails for syntactically valid-length numbers — returns valid_luhn: false","Service unavailable on Render cold start — potential timeout or 503"],"whenToPreferThis":"Use this endpoint when you need a fast, stateless, privacy-safe format check on a credit card number — especially when you want both Luhn validation and brand detection in a single call without storing any card data. Prefer this over manual Luhn implementations when brand identification (Visa vs Mastercard vs Amex) is also needed. Not suitable for actual payment authorization or real-time card verification with issuers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:57:40.640Z","isFirstParty":false,"canonicalSlug":"foundry-credit-card-number-validator-1d20e003"}