I believe analogy with US tax numbers is like this:
CDI (Clave de Identificación) - ITIN (Individual Taxpayer Identification Number). Used when you do not work in the country, but need to pay taxes for some reason (real estate, open bank account, investments).
CUIL (Clave Único de...