Skip to content
Fourohtwo

toll402.dev/v1/t/cui_gt_validate

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 validi

BaseAnswering
POSThttps://toll402.dev/v1/t/cui_gt_validate

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://toll402.dev/v1/t/cui_gt_validate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"cui":"1234567890101"}),
});
console.log(await res.json());

Example input

{
  "cui": "1234567890101"
}

More from Toll402