Validate a tax id
Checks a Spanish NIF/CIF/NIE against the AEAT census (id and name together) or an EU VAT number against VIES, exactly as invoice creation does just-in-time. Use it in checkout or onboarding forms to catch bad recipient data before issuing. Validation failures are outcomes, not errors: the endpoint answers 200 with valid: false. Rate limited per API key.
Autorizaciones
Cuerpo
The tax id and registered name to validate.
The tax id to validate against the census.
Respuesta
The validation outcome.
Outcome of a census validation. Validation failures are outcomes, not errors: the endpoint answers 200 with valid: false rather than a 4xx.
Stable, machine-readable reason validation failed, or null on success. Branch on this instead of parsing prose. This is an extensible enum: new values may be added in the future, so clients must tolerate values not listed here. Known values: unrecognized_format, invalid_format, not_registered_or_name_mismatch, vies_invalid, census_unavailable.
"not_registered_or_name_mismatch"