Edit

Enable embedded VERI*FACTU mode in Spain

VERI*FACTU is Spain’s new mandatory e-invoicing standard, requiring businesses to report invoices in real time to the Spanish Tax Agency (AEAT) using digital signatures, hash chaining, and QR code verification for authenticity and traceability. This feature enables Spanish companies to submit invoices automatically to AEAT, embed official QR codes, and maintain legal audit trails, helping prevent fraud and streamline auditing.

Users can activate VERI*FACTU mode by using a dedicated toggle, which ensures full compliance with Spanish e-invoicing regulations and prevents SII mode from being enabled at the same time.

Once the setup for VERI*FACTU is complete, any invoices posted (Posted Sales Invoice) in Business Central are automatically sent to the AEAT for clearance through the E-Document framework.

After the invoice is successfully validated, the system incorporates the official QR code issued by the AEAT directly onto the invoice layout, allowing users to print or email invoices that are legally compliant and easily verifiable by customers.

Enable digital signing

To enable digital signing, perform the following steps:

  1. Create yourself as a SUPER user.

  2. On the Company information page, perform the following actions:

    • Enter the VAT Registration No. from the qualified electronic certificate issued to you by the tax authorities. For example, 99999910G.
    • Enter the company Name as mentioned in the certificate. For example, CERTIFICADO PRUEBAS.
    • Enter the Post Code.
  3. Fill up the fields in the Payments tab. This tab shouldn’t be blank.

  4. On the Post Codes page, set the Time Zone for the post code.

  5. Go to My Settings and set the Working Date to today’s date and set the Region as Spanish (Spain, International Sort). The Spanish Tax Authorities don't accept a date higher than today’s.

Set up VERI*FACTU

  1. Choose the Tell Me feature icon, enter Verifactu Setup, and then select the related link. The Verifactu Setup page displays.

  2. Upload your certificate in the Certificate Code field.

  3. Select the Enabled toggle.

    Screenshot that shows the Verifactu Setup page.

Set up the e-document service format

  1. Choose the Tell Me feature icon, enter E-Document Services, and then select the related link. The E-Document Services page displays.

  2. Select New to create a new e-document service setup.

  3. Fill up the following fields:

    • In the Code field, enter VERIFACTU.
    • In the Description field, enter VERIFACTU.
    • In the Document Format field, enter Verifactu.
    • In the Service Integration field, enter Verifactu Service.

    Screenshot that shows the e-document service page.

Tip

Go to Configure documents to export and select E-Document Service Supported Source Document Types to check the allowed documents for Verifactu.

Set up Workflows

  1. Choose the Tell Me feature icon, enter Workflows, and then select the related link. The Workflows page displays.

  2. On the Workflows page, switch off the current one for e-documents.

  3. Create a new e-document for Verifactu by filling up the following fields:

    • In the Code field, enter VERIFACTU.
    • In the Description field, enter VERIFACTU.
    • In the Category field, enter EDOC.
    • Select the Enabled toggle.
  4. On the lines, enter the following text in these fields:

    • In When Event, enter E-Document Created.
    • In Then Response, enter Export E-Document using setup: VERIFACTU
    • In When Event, enter E-Document has been exported
    • In Then Response, enter Send E-Document using service: VERIFACTU (indented)

    Screenshot that shows the workflow page with the values.

Set up the Document Sending Profile

  1. Choose the Tell Me feature icon, enter Document Sending Profiles, and then select the related link. The Document Sending Profiles page displays.

  2. Fill up the following fields:

    • In the Code field, enter VERIFACTU.
    • In the Description field, enter Verifactu.
    • In Sending Options, enter values in these fields as follows:
      • In the Electronic Document field, enter E-Document Workflow.
      • In the E-Document Workflow field, enter VERIFACTU.

    Screenshot that shows the document sending profile for Verifactu.

  3. Select OK.

Set up Report Selection - Sales

If it's not set up already, perform the following steps:

  1. Choose the Tell Me feature icon, enter Report Selection - Sales, and then select the related link. The Report Selection - Sales page displays.

  2. Ensure for the Usage - Invoice, the report ID 1306 is selected.

    Screenshot that shows the report selection sales page.

Set up/update the Customer

  1. Choose the Tell Me feature icon, enter Customers, and then select the related link. The Customers page displays.

  2. Select a customer. For example, 50000 (Relecloud).

  3. In the Document Sending Profile drop-down, select VERIFACTU.

    Screenshot that shows the customer card with Verifactu selected as the document sending profile.

Example scenario - Set up sales invoice for customers and post it

The following steps are based on a use case scenario where a sales invoice is created for the customer Relecloud and then posted, which triggers the VERI*FACTU process to send the invoice to AEAT and generate the QR code.

  1. Choose the Tell Me feature icon, enter Sales Invoices, and then select the related link. The Sales Invoice page displays.

  2. In the Posting Date field, enter TODAY.

  3. Add a line Item, with Quantity as 5 and amount as 1000 + VAT.

    Screenshot that shows the sales invoice for the customer.

  4. Post the sales invoice.

  5. Choose the Tell Me feature icon, enter Posted Sales Invoices, and then select the related link. The Posted Sales Invoices page displays.

    Screenshot that shows the posted sales invoice for the customer.

  6. Select Print/Send > Print. The Sales Invoice window displays.

  7. In the Report Layout drop-down, select the Standard Sales Invoice - E-Document (Word) layout and select OK.

    Screenshot that shows the report layouts.

    You can select Preview to visualize the document and the E-Doc QR Code generated for Verifactu.

  8. On the Posted Sales Invoices page, on the ribbon, select Related > E-Document > Open.

    Screenshot that shows the E-Document Card page.

    The E-Document Card page for the processed sales invoice for Relecloud displays with the clearance information.

    Screenshot that shows the E-Document page for the processed sales invoice for Relecloud.

    On the E-Document Card page, select Document Logs to see the invoice processing status. In this case, the status is cleared, and AEAT accepts the document.

    Screenshot that shows the e-document logs for the processed invoices.

To view the submission status of the Verifactu document, choose the Tell Me feature icon, enter Verifactu Document, and then select the related link. The Verifactu Document page displays with the submission status.

Screenshot that shows the Verifactu document page with the submission status.