Tax Identifier Validation
tin_validateValidates a tax identifier for 25+ countries: checksum where the algorithm is public, format-only where it is not. Country is required.
Onboarding forms collect a tax number from whatever country the customer is in and then store garbage because they only checked the length. This applies the published checksum (SIREN/SIRET Luhn, ABN mod-89, CPF/CNPJ, NIP, BSN 11-proef, NIF/NIE, OIB, IČO, AFM, TCKN/VKN, …) and refuses to guess the country: the same 9 digits are a well-formed identifier in more than one place. Where the checksum is not published (US EIN, UK UTR, DE Steuernummer, IN PAN) the answer is format + checksum: not-verified, not a fake pass. This does not ask any tax authority whether the number is issued.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tin | Yes | Tax identifier as written, with or without spaces and punctuation. | |
| country | Yes | ISO 3166-1 alpha-2 country that issued the identifier. Required. |