{"uid":"cap_H_f7cVkaU-c2P83YYzW0f","slug":"delx-luhn-valid-42acd5b7","name":"Delx Luhn Valid","description":"Luhn check for digit strings (cards/IDs). Call when you reject obviously invalid card-shaped numbers before payment UI. Returns valid boolean and digit count for $0.001 USDC via x402 on Base. Checksum only—not issuer, funds, or PAN storage. No network, no keys, no retention. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/luhn-valid","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"number":{"type":"string","description":"Input field: number."}}},"responseSchema":{"type":"json","example":{"valid":true,"digits":16,"schema":"delx/util-luhn-valid/v1"}},"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_XJWW8VcCy7tkte4zn1yVF","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 digit string (e.g. a credit card number) using the Luhn checksum algorithm, returning whether it passes and its digit count.","exampleAgentPrompt":"Before I send this to the payment processor, run a Luhn check on the card number 4532015112830366 and tell me if it's valid.","exampleUseCases":[{"title":"Pre-payment card number screening","prompt":"I want to validate the card number 4111111111111111 with a Luhn check before we show the payment confirmation screen — is it valid?"},{"title":"Filter bad card entries in a form","prompt":"The user just typed '1234567890123456' as their card number — run a Luhn checksum on it so we can reject it client-side before even attempting to charge them."},{"title":"Verify loyalty card or ID number","prompt":"Can you do a Luhn validity check on this loyalty card ID '79927398713' and tell me if it passes the checksum and how many digits it has?"}],"resultDescription":"Returns a JSON object with a boolean indicating whether the digit string passes the Luhn checksum, and an integer representing the number of digits in the input string. No issuer lookup, no network verification, no PAN storage — purely an algorithmic checksum result.","failureModes":["Non-digit characters in input may cause validation failure or error response","Empty string input may return invalid or error","Input with spaces or dashes (unstripped) may fail — caller should normalize first","Network or payment authorization failure for the $0.001 USDC x402 fee could block the call"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap, stateless pre-flight check to reject obviously invalid card-shaped digit strings before submitting them to a payment processor or identity system. It is not a substitute for real card authorization or issuer validation — it only confirms the Luhn checksum. Ideal for agents that want to avoid wasting expensive payment API calls on malformed card numbers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:57:27.267Z","isFirstParty":false}