Classify a Spanish CIF/NIF as 'company' or 'person' from its AEAT shape.
What this tool does
Pure shape rules: leading A/B/D/E/F/H/G/V/U/N/W are entities, K/L/M foreign entities, X/Y/Z foreigners (person), 8 digits + letter is a DNI (person). Returns '' when the code is not a recognizable 9-char Spanish tax id. Does not validate the checksum (use check-cif-valid / check-nif-valid for that).
Input data
| Parameter | Required | Example | Description |
|---|---|---|---|
cif | Yes | B62084959 | Spanish CIF/NIF to classify. |
Output data
| Field | Description |
|---|---|
result | `company`, `person`, or empty when the code is not a recognizable Spanish tax id. |