Incorrect tax reference number or incorrect tax identification number for an incorrect taxpayer
The error message “Incorrect anagram” or “Incorrecttax identification number ” may appear when attempting to make any payment via the AEAT for self-assessments or settlements/debts paid by direct debit, card payment or Bizum.

It is important to check that the first few letters entered in the ‘Surname’ field – for individuals only – match the details on the census record for the tax identification number (NIF) provided.
You can check whether the details are correctly recorded in the AEAT (State Tax Administration Agency) register by accessing “Checking a third party’s tax identification number ( NIF) for registration purposes” (requires an electronic certificate, DNIe or Cl@ve).
If you have an electronic certificate or Cl@ve, you can also check this information on the tax labels.