This is a small toolset that verifies the correction of the three Spanish national documents: Número de Identificación Fiscal (NIF), Número de Identificación de Extranjeros (NIE) and Código de Identificación Fiscal (CIF).
If you need to check that a valid document number of the specified ones is inserted in your systems correctly, you can use one of the four validations available. With a simple input (string that contains the number and letters) and output (a boolean that indicates if it's correct) you'll know if you're doing it right!
The toolset consists in four activities and it's planned to be growing:
All Documents: receives a document as input with the letters and validates if it works and tells you which one of the three recognized is correct or INVALID
CIF Validation: For companies
NIE Validation: For foreigners living in Spain
NIF Validation: For Spaniards