Tax ID validator: check tax numbers for Africa, India and emerging markets (KRA PIN, Ghana TIN, PAN, CPF/CNPJ and more)
tax_id_validateTax ID validation (TIN check) for 14 countries: Kenya KRA PIN, Ghana TIN and Ghana Card PIN, South Africa income tax number, Egypt, Morocco ICE, Algeria NIF, Tunisia MF, Senegal NINEA, Mozambique NUIT, Guinea NIFp, India PAN, Brazil CPF/CNPJ, Turkey VKN, Indonesia NPWP. Checks format and check digit, decodes holder type. Not a registry lookup; input not stored. For KYC, KYB, invoicing and onboarding. Returns JSON with input, country, countryName, type, typeName, normalized, valid, errors, decoded, checks. Read-only; invalid input is rejected before any charge. Price: $0.002 USDC per call (x402, Base mainnet), paid only when the call succeeds.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"country": "<country>",
"number": "<number>"
},
"name": "tax_id_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Optional: tin, pin, ghanacard, tn, ice, nif, mf, ninea, nuit, nifp, pan, cpf, cnpj, vkn or npwp (default: the country's main tax number, guessed from the input) | |
| number | Yes | The tax number; spaces, dashes, dots and slashes are ignored | |
| country | Yes | 2-letter ISO code: ZA, KE, GH, EG, MA, DZ, TN, SN, MZ, GN, IN, BR, TR or ID |