{"uid":"cap_CT6E78E0DdcboFsi-GNpn","slug":"luhn-checksum-validator-6969c828","name":"Luhn Checksum Validator","description":"Pay-per-call tools for AI agents: web search + content, documents, live market data, and multi-chain wallet/gas reads. Mainnet test from $0.000001 USDC on Base. Pay-per-call tools for AI agents in USDC on Base (x402/MPP): search, pdf, web-read, extract, summarize, fact-check, translate, jobs, discover. See GET /capabilities.","url":"https://x402.agentindex.world/validate/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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","title":"LuhnInput","required":["number"],"properties":{"number":{"type":"string","title":"Number","pattern":"^[0-9][0-9\\s-]*[0-9]$"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"LuhnOutput","required":["valid"],"properties":{"valid":{"type":"boolean","title":"Valid"}}}}}}},"responseSchema":{"type":"json","example":{"valid":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oIP96gpR9n9xhE5yVtM1n","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates whether a numeric string passes the Luhn (mod 10) checksum algorithm used by most payment card numbers.","exampleAgentPrompt":"Can you check if the card number 4532015112830366 passes the Luhn checksum — I want to know if it's a valid card number before I try to process a payment with it?","exampleUseCases":[{"title":"Pre-payment card number check","prompt":"Before I charge this customer, can you verify that the card number 4111 1111 1111 1111 passes the Luhn checksum so I know it's at least structurally valid?"},{"title":"Validate user-entered card at checkout","prompt":"A user just typed in card number 1234-5678-9012-3456 on our checkout form — can you run it through the Luhn algorithm and tell me if it's valid?"},{"title":"Fraud screening for batch of card numbers","prompt":"I have a suspicious card number 4916338506082832 that someone submitted — can you do a Luhn check on it to see if it even has a valid checksum?"}],"resultDescription":"A pass/fail result indicating whether the provided numeric string satisfies the Luhn (mod 10) checksum condition, confirming the number is structurally consistent with a real payment card number.","failureModes":["Non-numeric characters other than spaces or hyphens cause a validation error","Number too short or a single digit fails the pattern constraint","Empty string or missing number parameter returns an error","Numbers with letters or special symbols are rejected by the input schema"],"whenToPreferThis":"Use this endpoint when you need a fast, lightweight structural check on a payment card number before attempting a real transaction. It is ideal for pre-validation in checkout flows, fraud detection pipelines, or any scenario where you want to filter out obviously invalid card numbers without running a full authorization. It does not verify the card exists or has funds — it only checks the checksum.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T20:46:47.521Z","isFirstParty":false,"canonicalSlug":"luhn-checksum-validator-6969c828"}