# Toll402 Guatemalan CUI Validator

> Toll402 Guatemalan CUI Validator is a paid API for AI agents from toll402.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

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.

## Facts

- Endpoint: POST https://toll402.dev/v1/t/cui_gt_validate
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toll402-guatemalan-cui-validator-db35041e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o7IdgCLvsvoc4diG_sbDF

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability toll402-guatemalan-cui-validator-db35041e -d '<json body>'
```

Example prompt: Can you check if this Guatemalan CUI number is valid: 2845692630101?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toll402-guatemalan-cui-validator-db35041e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toll402.dev](https://www.zero.xyz/host/toll402.dev/llms.txt)
