We say “it existed” because since 2008 it became a NIF . Although still on some sites and some people still call it CIF.
At some point the two registries coexisted in Spain, but the NIF (Fiscal Identity Number) was used only for the self-employed who had their own business, now it covers companies, that is, it works for individuals or individuals , for legal entities and for entities without personality.
Like the DNI and NIE, the NIF number is made up of nine characters: an initial letter, seven digits and an alphabetic character for the control. The seven-digit number is “separated” by two and five digits: the first two that identify the province and the other five that represent the provincial registry.
Companies that are Public Limited Companies will have the letter A at the beginning of their NIF, while companies with Limited Partnerships will have the letter B.
Examples of CIF or NIF