cif_es_validate $0.001 per call
Offline validator for a Spanish CIF (Código de Identificación Fiscal, tax ID for legal entities). Parses the entity-type letter, 7 digits and control character, applies AEAT's weighted alternating-sum algorithm (doubling digits at odd positions and summing their digits, summing digits at even positions directly, mod 10) to compute the expected control digit/letter, and checks it against the actual control character given the entity-type letter's required control kind (digit, letter, or either).
For AI agents: call cif_es_validate
POST https://toll402.dev/v1/t/cif_es_validate
{
"cif": "A58818501"
}Answers 402 with x402 payment requirements; pay with any x402 client (@x402/fetch, x402 for Python, toll402-client, toll402-mcp) or send a prepaid-credits key as x-toll402-key (https://toll402.dev/credits). Paid per call via x402 (USDC on Base) or with a prepaid-credits key (x-toll402-key, card at /credits); charged only on success. Start at /llms.txt or connect the MCP server:
npx -y toll402-mcp · remote https://toll402.dev/mcp.Input schema
{
"type": "object",
"properties": {
"cif": {
"type": "string",
"description": "Spanish CIF, e.g. A58818501"
}
},
"required": [
"cif"
]
}
MCP
{"mcpServers":{"toll402":{"command":"npx","args":["-y","toll402-mcp"],"env":{"TOLL402_WALLET_KEY":"0x..."}}}}