{"uid":"cap_09Lh0NlUay84DhAf-8Cyx","slug":"luhn-algorithm-validator-0cfbcfe0","name":"Luhn Algorithm Validator","description":"Validates a credit card or IMEI number against the Luhn checksum algorithm.","url":"https://dt0ur.online/api/utility/luhn-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"number":{"type":"string","description":"Numeric string (spaces/dashes allowed)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Waqzlh2TcFwEhnlfmGIca","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a numeric string (credit card number or IMEI) against the Luhn checksum algorithm to determine if it is structurally valid.","exampleAgentPrompt":"Can you check if the credit card number 4532 0151 1283 0366 passes the Luhn checksum — I need to know if it's structurally valid before I process anything.","exampleUseCases":[{"title":"Pre-charge card number sanity check","prompt":"Before I try to charge this card, can you run a Luhn check on 4111 1111 1111 1111 to make sure the number is at least structurally valid?"},{"title":"IMEI validity check for device onboarding","prompt":"I'm registering a new device with IMEI 490154203237518 — can you validate that number against the Luhn algorithm before I add it to the system?"},{"title":"User input validation in payment form","prompt":"A customer just entered the card number 1234-5678-9012-3456 — does it pass the Luhn checksum, or should I prompt them to re-enter it?"}],"resultDescription":"Returns a pass/fail result indicating whether the provided numeric string satisfies the Luhn (mod-10) checksum algorithm, confirming the number is structurally valid (not necessarily active or real, just correctly formed).","failureModes":["Non-numeric input or unsupported characters may cause a validation error","Empty string or missing 'number' field returns an error response","Extremely short or malformed strings may return invalid without a checksum computation","Network timeout if the service is unavailable"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap, offline-style structural check of a credit card or IMEI number before hitting a live payment network or carrier API. It is ideal for pre-validating user input in forms, filtering out obviously invalid numbers early in a pipeline, or verifying IMEI numbers during device registration workflows. Prefer this over full payment authorization when you only need to confirm the number is well-formed, not that it is active or funded.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:33:30.868Z","isFirstParty":false,"canonicalSlug":"luhn-algorithm-validator-0cfbcfe0"}