Updated on 18 September 2026

Configure the Anti-Fraud Law tax codes

Get the tax regime and operation type that VeriFactu requires for each transaction ready in advance.

This article explains how to correctly configure the tax codes required by the Spanish Anti-Fraud Law (Ley Antifraude) to generate the records submitted to VeriFactu.

Important: The tax codes will not be mandatory until the law comes into force. However, it is advisable to have the configuration ready.

1

Purpose

Each transaction must include:

  • Its tax regime.
  • Its operation type.

The configuration is designed so that the tax advisor fills in the data, which lets the user invoice simply and automatically.

2

Company tax settings

  • Go to Configuración > Empresa > Datos fiscales (Settings > Company > Tax details).
  • In the “Configuración Fiscal” (Tax settings) section, select the tax regime from the drop-down list.
  • — Examples: IVA General (general VAT), IVA Criterio de Caja (cash-basis VAT), IVA Simplificado (simplified VAT), II.CC., Agencias de Viaje (travel agencies), etc.
  • Choose the regime that best fits the company.
  • — Example: Criterio de Caja (cash basis)
3

Tax settings

  • When you add a tax, an advanced panel appears with two drop-down lists:
  • — Tax regime (by default it inherits the one set at company level, but it can be changed).
  • — Operation type, with these codes:
  • — S Operations subject to VAT (IVA) or II.CC.
  • — N Operations not subject to tax.
  • — E Exempt operations.
  • Before saving the tax, change its name so that you can easily identify its configuration.
  • Repeat this process for all the taxes you will use when invoicing.

If the company has complex scenarios, it is advisable not to create too many preconfigured taxes.
In those cases, the drop-down lists can be left empty (you lose some automation, but you gain flexibility).

4

Withholding settings

  • If the company issues invoices with withholding:
  • — Tick the corresponding checkbox.
  • — Enter the percentage.
  • — Specify whether it is a withholding on professional fees or on rentals.
5

Tax settings for customers

  • The same advanced panel appears on the customer record.
  • It also includes a help drop-down list, useful for cases such as:
  • — Intra-EU customers.
  • — Exports of goods or services.
  • This help drop-down list changes the default values in the advanced panel, but it does not generate additional codes.

If the user prefers, they can ignore this help drop-down list and customize the values directly.

6

Tax settings for items

  • As with customers, the advanced panel is shown.
  • Configuration is only required if the item's tax type is VAT (IVA) or II.CC. at zero.
  • The help drop-down list works the same way as for customers.
7

Settings on delivery note lines

Here the drop-down lists CANNOT be left empty.

  • The tax codes on the lines are generated automatically:
  • — They inherit the tax settings of the customer and of the item.
  • — If both match, they are applied directly.
  • — If there is a conflict, the user must fill in the values manually.
  • Taxable bases are grouped by tax type.
  • If a tax combination requires a specific legal text:
  • — It is filled in automatically if there is only one possible option.
  • — If there are several, the user can select or edit one from the drop-down list.

Summary

Company✅❌✅
Taxes✅❌✅
Customers✅✅✅ (recommended)
Items✅✅ (if VAT is 0)Only if applicable
Delivery note lines✅❌✅ (required)