{"title":"Enable embedded VERI\\FACTU mode in Spain","url":"https://jonas-paprotka.de/docs/localfunctionality/spain/enable-real-time-invoice-reporting/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/localfunctionality/spain/enable-real-time-invoice-reporting, MicrosoftDocs/dynamics365smb-docs at 46907ac (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/localfunctionality/spain/enable-real-time-invoice-reporting","source":{"name":"Business Central application docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-docs","commit":"46907ace177f8d31deba47a2fdb57c3336e66252","date":"2026-11-19"},"checked":"2026-11-19","description":"Set up embedded VERIFACTU reporting in Business Central, configure certificate authentication, and review invoice submissions and QR codes for Spain.","date":"2026-10-20","meta":{"topic":"how-to"},"outline":[{"level":1,"title":"Enable embedded VERI*FACTU mode in Spain","slug":"enable-embedded-verifactu-mode-in-spain","at":0,"chars":8061},{"level":2,"title":"Prepare company and certificate information","slug":"prepare-company-and-certificate-information","at":1526,"chars":916},{"level":2,"title":"Set up VERI*FACTU","slug":"set-up-verifactu","at":2442,"chars":599},{"level":2,"title":"Set up the e-document service format","slug":"set-up-the-e-document-service-format","at":3041,"chars":683},{"level":2,"title":"Set up workflows","slug":"set-up-workflows","at":3724,"chars":861},{"level":2,"title":"Set up the document sending profile","slug":"set-up-the-document-sending-profile","at":4585,"chars":586},{"level":2,"title":"Set up sales report selection","slug":"set-up-sales-report-selection","at":5171,"chars":378},{"level":2,"title":"Set up the customer","slug":"set-up-the-customer","at":5549,"chars":374},{"level":2,"title":"Example scenario - Set up sales invoice for customers and post it","slug":"example-scenario---set-up-sales-invoice-for-customers-and-post-it","at":5923,"chars":1904},{"level":2,"title":"Related information","slug":"related-information","at":7827,"chars":234}],"text":"# Enable embedded VERI*FACTU mode in Spain\nUse embedded VERI*FACTU to report invoice records directly to the Spanish Tax Agency (AEAT) through the E-Documents framework. Business Central generates chained hashes and QR codes, and uses a certificate to authenticate the connection to AEAT.\nThe use of VERI*FACTU is part of the Spanish regulatory framework, where companies must adopt a compliant e-invoicing approach. Depending on company size and applicable regulations, businesses can choose between SII and VERI*FACTU. However, both modes can't be used simultaneously.\nWhile compliance is mandatory, each company determines which approach, SII or VERI*FACTU, best applies to its situation. Learn more about integrating VERI*FACTU with external services in VERI*FACTU with external service integration<verifactu-setup>.\nEnable embedded VERI*FACTU on the Verifactu Setup page. If SII is already enabled, Business Central asks you to disable it before you continue.\nAfter you configure the service, workflow, and document sending profile, posting a sales invoice for a customer whose profile uses that workflow creates an e-document. The workflow exports and sends the invoice records to AEAT. Enabling Verifactu Setup alone doesn't submit every posted invoice.\nBusiness Central generates the QR code during export, before it receives the AEAT response. The code contains an AEAT validation URL and invoice details. A QR code doesn't prove that AEAT accepted the submission. Check the e-document's clearance status separately.\n## Prepare company and certificate information\nThe certificate authenticates requests to AEAT. Prepare the following company and certificate information:\n1. Use an account with the SUPER permission set when creating a new certificate.\n1. On the Company information page, perform the following actions:\n  Enter the VAT Registration No. from the qualified electronic certificate issued to you by the tax authorities. For example, 99999910G.\n  Enter the company Name as mentioned in the certificate. For example, CERTIFICADO PRUEBAS.\n  Enter the Post Code and City.\n1. Complete the other company information required for your invoices.\n1. On the Post Codes page, set the Time Zone for the company's post code and city. Business Central checks this combination when you enable VERI*FACTU.\n1. For the example in this article, use today's posting date. The Spanish Tax Authorities don't accept a date higher than today's.\n## Set up VERI*FACTU\n1. Select Search (Alt+Q) in the upper-right corner, enter Verifactu Setup, and then select the related link. The Verifactu Setup page displays.\n1. In the Certificate Code field, open the lookup and select a valid certificate. Make sure its password is available and the certificate hasn't expired.\n1. Select the Enabled toggle.\n ![Screenshot that shows the Verifactu Setup page.]\n> NOTE\n> Assigning a certificate can also enable the setup. When prompted, confirm that you want to disable SII and provide consent. If you decline either confirmation, VERI*FACTU remains disabled.\n## Set up the e-document service format\n1. Select Search (Alt+Q) in the upper-right corner, enter E-Document Services, and then select the related link. The E-Document Services page displays.\n1. Select New to create a new e-document service setup.\n1. Fill up the following fields:\n  In the Code field, enter VERIFACTU.\n  In the Description field, enter VERIFACTU.\n  In the Document Format field, enter Verifactu.\n  In the Service Integration field, enter Verifactu Service.\n   ![Screenshot that shows the e-document service page.]\n> TIP\n> Go to Configure documents to export and select E-Document Service Supported Source Document Types to check the allowed documents for Verifactu.\n## Set up workflows\n1. Select Search (Alt+Q) in the upper-right corner, enter Workflows, and then select the related link. The Workflows page displays.\n1. If you're replacing an existing e-document workflow, disable that workflow.\n1. Create a new workflow for Verifactu by filling in the following fields:\n  In the Code field, enter VERIFACTU.\n  In the Description field, enter VERIFACTU.\n  In the Category field, enter EDOC.\n1. On the lines, enter the following text in these fields:\n  In When Event, enter E-Document Created.\n  In Then Response, enter Export E-Document using setup: VERIFACTU\n  In When Event, enter E-Document has been exported\n  In Then Response, enter Send E-Document using service: VERIFACTU (indented)\n ![Screenshot that shows the workflow page with the values.]\n1. Enable the workflow after you configure its steps and response options.\n## Set up the document sending profile\n1. Select Search (Alt+Q) in the upper-right corner, enter Document Sending Profiles, and then select the related link. The Document Sending Profiles page displays.\n1. Fill up the following fields:\n  In the Code field, enter VERIFACTU.\n  In the Description field, enter Verifactu.\n  In Sending Options, enter values in these fields as follows:\n    In the Electronic Document field, enter E-Document Workflow.\n    In the E-Document Workflow field, enter VERIFACTU.\n ![Screenshot that shows the document sending profile for Verifactu.]\n1. Select OK.\n## Set up sales report selection\nIf it isn't set up already, perform the following steps:\n1. Select Search (Alt+Q) in the upper-right corner, enter Report Selection - Sales, and then select the related link. The Report Selection - Sales page displays.\n1. Ensure for the Usage - Invoice, the report ID 1306 is selected.\n ![Screenshot that shows the report selection sales page.]\n## Set up the customer\n1. Select Search (Alt+Q) in the upper-right corner, enter Customers, and then select the related link. The Customers page displays.\n1. Select a customer. For example, 50000 (Relecloud).\n1. In the Document Sending Profile drop-down, select VERIFACTU.\n ![Screenshot that shows the customer card with Verifactu selected as the document sending profile.]\n## Example scenario - Set up sales invoice for customers and post it\nThe following example creates and posts a sales invoice for Relecloud. The customer's document sending profile uses the VERI*FACTU workflow configured above.\n1. Select Search (Alt+Q) in the upper-right corner, enter Sales Invoices, and then select the related link.\n1. Choose New, and select Relecloud as the customer.\n1. In the Posting Date field, enter today's date.\n1. Add a line Item, with Quantity as 5 and amount as 1000 + VAT.\n ![Screenshot that shows the sales invoice for the customer.]\n1. Post the sales invoice.\n1. Wait for the e-document workflow to finish exporting the invoice before you print its QR code.\n1. Select Search (Alt+Q) in the upper-right corner, enter Posted Sales Invoices, and then select the related link. The Posted Sales Invoices page displays.\n ![Screenshot that shows the posted sales invoice for the customer.]\n1. Select Print/Send > Print. The Sales Invoice window displays.\n1. In the Report Layout drop-down, select the Standard Sales Invoice - E-Document (Word) layout and select OK.\n You can select Preview to visualize the document and the E-Doc QR Code generated for Verifactu.\n1. On the Posted Sales Invoices page, on the ribbon, select Related > E-Document > Open.\n The E-Document Card page for the processed sales invoice for Relecloud displays with the clearance information.\n On the E-Document Card page, select Document Logs to see the invoice processing status. An AEAT submission status of Correcto sets the e-document service status to Cleared. Other submission statuses set it to Not Cleared.\n ![Screenshot that shows the e-document logs for the processed invoices.]\nSelect Search (Alt+Q) in the upper-right corner, enter Verifactu Documents, and then select the related link to view submission details. The page shows the source document, hash, submission ID, and submission status.\n## Related information\n VERI*FACTU with external service integration<verifactu-setup>\n spain-local-functionality\nFind free e-learning modules for Business Central here<https://learn.microsoft.com/training/dynamics365/business-central>"}