{"uid":"cap_o7IdgCLvsvoc4diG_sbDF","slug":"toll402-guatemalan-cui-validator-db35041e","name":"Toll402 Guatemalan CUI Validator","description":"Offline validator for a Guatemalan CUI (Código Único de Identificación), the 13-digit national ID number. Parses the 13 digits into an 8-digit correlative, a 1-digit check digit, a 2-digit department code and a 2-digit municipality code, recomputes the check digit using the published weighted mod-11 formula (weights 2-9 over the 8 correlative digits, mod 11, 10→0) and compares it, returning validity plus the parsed components.","url":"https://toll402.dev/v1/t/cui_gt_validate","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["cui"],"properties":{"cui":{"type":"string","description":"13-digit CUI, digits only or with dashes"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_Hlnf9XENEV98VlFB4KtWN","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":"Offline validates a 13-digit Guatemalan national ID (CUI) by parsing its components and verifying the check digit using the official weighted mod-11 formula.","exampleAgentPrompt":"Can you check if this Guatemalan CUI number is valid: 2845692630101?","exampleUseCases":[{"title":"KYC identity check for Guatemalan users","prompt":"I need to verify that this Guatemalan national ID is legitimate before onboarding the user — can you validate CUI 1234567890123 and tell me if the check digit is correct?"},{"title":"Form input validation for Guatemala ID field","prompt":"A user entered 2845692630101 as their Guatemalan CUI on our sign-up form — can you check if it's a valid ID and also tell me what department and municipality it belongs to?"},{"title":"Bulk data cleanup for Guatemalan records","prompt":"We have a CUI number in our database — 3001234560805 — and I need to know if it passes the official mod-11 check and what its parsed components are."}],"resultDescription":"Returns a validity boolean plus the parsed components of the CUI: the 8-digit correlative, the 1-digit check digit, the 2-digit department code, and the 2-digit municipality code, along with whether the recomputed check digit matches the input.","failureModes":["Input not 13 digits after stripping formatting — returns invalid","Non-numeric characters in unexpected positions — returns parse error","Check digit mismatch — returns invalid with computed vs provided digits","Missing required 'cui' field in request body — returns validation error","Payment not processed (x402) — returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need to validate Guatemalan CUI national ID numbers without an external government API call — it runs entirely offline using the official weighted mod-11 algorithm and also returns parsed geographic components (department and municipality codes), making it suitable for KYC pipelines, form validation, and data quality checks on Guatemalan user records.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:46:35.082Z","isFirstParty":false}