{"uid":"cap_Xy_iogvkw_IRcp_nbtl6p","slug":"agent402-tools-card-validate-52bf650e","name":"agent402.tools Card Validate","description":"Validate a payment card number (Luhn checksum) and detect the brand. Numbers are not stored or logged.","url":"https://agent402.tools/api/card-validate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"number":{"type":"string","description":"Card number (spaces/dashes allowed)"}}},"responseSchema":{"type":"json","example":{"brand":"visa","valid":true,"length":16}},"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_RweimOsWl-TAW7qbt0UY4","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 the Luhn checksum algorithm and detects the card brand (e.g. Visa, Mastercard), without storing or logging the number.","exampleAgentPrompt":"Can you check whether the card number 4111 1111 1111 1111 is valid and tell me what brand it is?","exampleUseCases":null,"resultDescription":"Returns whether the card number passes the Luhn checksum (valid/invalid) and the detected card brand (e.g. Visa, Mastercard, Amex, Discover). No card data is stored or logged.","failureModes":["Missing or empty card number field returns an error","Non-numeric input that cannot be interpreted as a card number","Network or payment gateway failure returns a 402 or 5xx error","Ambiguous or unrecognized card brand returns null/unknown brand"],"whenToPreferThis":"Use this endpoint when you need a quick, privacy-safe Luhn checksum validation and card brand detection for a single card number without retaining any sensitive data. Prefer this over full payment processors when you only need client-side-style validation logic server-side, without initiating a charge.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:06.641Z","isFirstParty":false}