{"uid":"cap_e-LDNJ29Gv7fGEGrJrsKL","slug":"crypto-math-check-digits-4ae85252","name":"Crypto Math Check Digits","description":"Generate or validate Luhn and ISO 7064 mod 97-10 (IBAN style) check digits from the string you supply.","url":"https://crypto-math.x402tookit.com/check-digits?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"],"type":"string"},"queryParams":{"type":"object","required":["scheme","value"],"properties":{"value":{"type":"string","description":"luhn: digits; mod97-10: digits and letters; iban: country code + BBAN to generate, or a full IBAN to validate. Use sample numbers only"},"action":{"type":"string","description":"generate (default; value has no check digits yet) or validate (value includes them)"},"scheme":{"type":"string","description":"luhn, mod97-10 or iban"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"iban":{"type":["null","string"]},"scheme":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"ibanLength":{"type":["null","number"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"checkDigits":{"type":["null","string"]},"countryCode":{"type":["null","string"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rGvFSMADCPcwQ4oWrsYK5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generate or validate Luhn and ISO 7064 mod 97-10 (IBAN-style) check digits for a given numeric or alphanumeric string.","exampleAgentPrompt":"Can you generate the Luhn check digit for the number 7992739871 — use the Luhn scheme and the generate action?","exampleUseCases":[{"title":"IBAN generation for a new bank account","prompt":"I have a UK bank account with BBAN 20000055779141 — can you generate the full IBAN check digits using the iban scheme so I have a valid GB IBAN?"},{"title":"Credit card Luhn validation","prompt":"Can you validate whether 4532015112830366 passes the Luhn check? Use the validate action with the luhn scheme."},{"title":"Mod 97-10 check digit generation for internal IDs","prompt":"I need to add ISO 7064 mod 97-10 check digits to the alphanumeric string ABC1234567 — can you generate them using the mod97-10 scheme?"}],"resultDescription":"Returns a JSON object containing the computed or validated check digits, the scheme used, a human-readable summary, a verdict (for validation), reasons explaining the result, the IBAN string (if applicable), country code, expected IBAN length, and a disclaimer. For generation, check digits are returned as a string; for validation, a pass/fail verdict with explanatory reasons is provided.","failureModes":["Missing required 'value' or 'scheme' query parameters returns an error","Providing letters in a Luhn scheme input (which only accepts digits) causes a validation error","Invalid country code for IBAN scheme returns an error about unsupported country","Providing an already-complete number when action=generate may produce incorrect results","Non-alphanumeric characters in mod97-10 input may cause a parsing error","Providing a malformed IBAN for validation may return a verdict of invalid with reasons"],"whenToPreferThis":"Choose this endpoint when you need deterministic, standards-compliant generation or validation of check digits using Luhn or ISO 7064 mod 97-10 algorithms — including IBAN construction and verification. Prefer it over general-purpose math endpoints when the specific use case involves financial account numbers, credit card numbers, or any identifier that uses these two widely adopted check digit standards.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T00:30:24.254Z","isFirstParty":false,"canonicalSlug":"crypto-math-check-digits-4ae85252"}