{"uid":"cap__qkEj46sypzMks3V7k70u","slug":"delx-commerce-luhn-validation-api-b1bad0c0","name":"Delx Commerce Luhn Validation API","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/luhn-valid?utm_source=zero.xyz","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_UAOzXaii1eyStsKUpAV4I","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 whether a numeric string passes the Luhn algorithm checksum, returning validity status and digit count","exampleAgentPrompt":"Can you check whether the number 4532015112830366 passes the Luhn checksum before I try to process it as a card number?","exampleUseCases":[{"title":"Pre-flight credit card format check","prompt":"Before I send this card number 4111111111111111 to the payment processor, can you verify it passes the Luhn checksum so I know it's not a typo?"},{"title":"User input validation in checkout flow","prompt":"A user just entered card number 1234567890123456 in our checkout form — does it pass Luhn validation, and how many digits does it have?"},{"title":"Sanitizing scraped card-like data","prompt":"I've got a list of numeric strings scraped from a form and I want to filter out the ones that fail the Luhn check — can you start by validating 79927398713?"}],"resultDescription":"A JSON object containing a boolean `valid` field indicating whether the number passes the Luhn algorithm, a `digits` integer with the count of digits in the input, and a `schema` string identifier (e.g. 'delx/util-luhn-valid/v1') for response versioning.","failureModes":["Non-numeric input or strings with spaces/dashes may fail or return invalid","Empty string input likely returns an error or false validity","Very short numbers (fewer than 2 digits) may not conform to standard Luhn expectations","Network or payment authentication failures (x402 payment not accepted) block the call entirely"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap ($0.001 USDC), no-signup Luhn checksum check for a single numeric string and want verifiable, pay-per-result delivery over Base or Solana via x402 — ideal for AI agents that need inline card validation without integrating a full payment SDK or standing up their own Luhn logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:59.935Z","isFirstParty":false,"canonicalSlug":"delx-commerce-luhn-validation-api-b1bad0c0"}