{"question":"We're a small company in Spain and want an AI agent to issue our customer invoices through our invoicing software. What does the VERI*FACTU regulation require of the system that issues invoices, can the agent edit or delete an invoice record afterwards, and after the November 2026 change, when do we actually have to comply?","slug":"what-does-spains-verifactu-require-when-software-or-an-ai-agent-issues-your-invoices","url":"https://www.rightshold.com/answers/what-does-spains-verifactu-require-when-software-or-an-ai-agent-issues-your-invoices","short_answer":"VERI*FACTU is the common name for Royal Decree 1007/2023, the regulation on invoicing software (RRSIF), with technical specifications in Order HAC/1177/2024. It regulates the system that issues invoices, not who drives it, so an AI agent that issues invoices is, on our reading, part of your invoicing system. That system must generate a billing record at or just before each invoice, chain each record to the previous one with a hash, and keep records so that any change, hiding or deletion is detected: corrections have to be made with a further record, never by editing the original (article 8). It also needs an event log, and its producer must sign a responsible declaration (declaración responsable) for each version (article 13). The deadline moved again: Royal Decree-law 43/2026 of November 24, 2026, published in the BOE on November 25, ties it to the last phase of mandatory B2B e-invoicing, and the Tax Agency's note says users must have adapted systems before October 6, 2028. The previous dates (January 1 and July 1, 2027) no longer apply.","checklist":["Check whether you're in scope: corporate income tax payers, self-employed people and partnerships with business activity, and non-residents with a permanent establishment in Spain's common territory, even if they use software for only part of their invoicing (article 3.1). Businesses that keep their VAT books through SII are out of scope (article 3.3). The Basque Country and Navarre have their own rules.","Plan for the new deadline: before October 6, 2028 for users, per the Tax Agency's November 2026 note on Royal Decree-law 43/2026. Software producers still have nine months from the technical order's entry into force to offer adapted products.","Have the agent issue invoices only through a system whose producer gives a declaración responsable for the version you run, or through the Tax Agency's free invoicing app. If you build your own invoicing agent or script, you are its producer.","Don't give the agent any function that edits, hides or deletes an issued invoice record. Article 8 treats that as an alteration; corrections go through a new record, such as a rectifying invoice or a cancellation record.","Decide between the two modes: VERI*FACTU (the system sends every record to the Tax Agency as it's generated and is presumed compliant by design) or non-VERI*FACTU (records must also be electronically signed and kept with an event log available to inspectors). Choosing VERI*FACTU lasts at least until the end of that calendar year.","Make sure each invoice carries the QR code the system generates, so the customer can send its data to the Tax Agency for checking.","Keep a record of the agent's configuration changes and who approved them. The billing records show what was issued, not why the agent issued it."],"sections":[{"heading":"What VERI*FACTU is and who it applies to","points":["Royal Decree 1007/2023 of December 5, 2023 approves the regulation setting the requirements for computer systems and programs that support the invoicing processes of businesses and professionals (RRSIF), and Order HAC/1177/2024 of October 17, 2024 sets the technical, functional and content specifications. The Tax Agency's FAQ explains that VERI*FACTU, the name everyone uses, comes from one of the two types of compliant system the regulation allows.","Article 1 says the regulation applies to any computer system or program used by people carrying out economic activities to support the invoicing of their operations, and defines an invoicing system as the set of hardware and software used to issue invoices. Article 3.1 lists corporate income tax payers, personal income tax payers with economic activities, non-residents with a permanent establishment, and income attribution entities with economic activities, even if they use the system for only part of their activity. Article 3.2 brings in producers and sellers of the software. Article 3.3 excludes taxpayers who keep their VAT record books through the Immediate Supply of Information (SII).","The regulation doesn't mention AI. Because it regulates whatever software issues the invoice, our reading is that an agent issuing invoices is part of your invoicing system, and that a business which builds its own agent or script to issue invoices takes on the producer's obligations for it. The Tax Agency's FAQ lists developing your own adapted system as one of the options."]},{"heading":"What the system must do with every invoice record","points":["Article 8.1 requires the system to guarantee the integrity, conservation, accessibility, legibility, traceability and inalterability of billing records. Article 8.2.a says that once records are generated they can't be altered without the system detecting it and warning of it, and defines alteration as hiding or deleting a record, hiding or changing any of its data, or adding simulated or false records. Any correction or cancellation must be made with at least one further, later record, so the original data stays unaltered.","Article 8.2.b requires records to be chained so their trail can be checked in order of creation from first to last, with every record dated at the moment it's made; any function or mechanism that lets someone alter or hide the trail is a breach. Article 8.2.c requires conservation for the period in the General Tax Law and a secure export to external storage in a readable format. Article 8.3 requires an event log that automatically records certain interactions with the system as they happen.","Article 9 says the system must generate a registration record (registro de alta) automatically, at the same time as or just before each invoice is issued. Article 12 requires a hash on every registration and cancellation record and an electronic signature on them. The Tax Agency's FAQ adds that each record includes information from the previous record, which lets anyone check that none are missing, and that the invoice must carry a QR code the recipient can scan to send some of its data to the Tax Agency."]},{"heading":"VERI*FACTU mode, the declaración responsable and the penalties","points":["Article 16 says a system that sends every billing record to the Tax Agency continuously, securely and automatically as it's generated counts as a verifiable invoice issuing system (Sistema VERI*FACTU). It's presumed to meet article 8 by design and only needs to compute the hash, not sign the records. You opt in by starting to send records systematically, and the choice lasts at least until the end of the calendar year of the first submission. The Tax Agency's free invoicing app counts as a VERI*FACTU system.","Article 13 makes the software's producer certify, by a written declaración responsable, that the system complies with article 29.2.j of the General Tax Law, the regulation and its technical order. It must be visible in the system in each of its versions and given to the customer at purchase, and the customer or the Tax Agency can ask for it.","Article 201 bis of the General Tax Law makes it a serious infringement to produce or sell systems that allow double books, unrecorded transactions or altering recorded transactions, or that don't meet the integrity and inalterability specifications, with a fixed fine of 150,000 euros per financial year and per type of system (1,000 euros per system sold without the certificate). Holding a system that isn't properly certified, or whose certified devices were altered, is fined 50,000 euros per financial year."]},{"heading":"When you have to comply after the November 2026 change","points":["Royal Decree-law 15/2025 of December 2, 2025 had set the deadlines at January 1, 2027 for corporate income tax payers and July 1, 2027 for everyone else. Royal Decree-law 43/2026 of November 24, 2026 (BOE of November 25, 2026, in force November 26) rewrote the final provision of Royal Decree 1007/2023 so that all taxpayers in article 3.1 must have adapted systems when the period in final provision four, section 1.b, of Royal Decree 238/2026 runs out. That is the last phase of mandatory B2B e-invoicing, and the decree-law says the aim is to make the two dates coincide.","The Tax Agency's information note on the change, on its VERI*FACTU page updated November 25, 2026, says that under the newly approved period taxpayers must have their invoicing systems adapted before October 6, 2028. The rewritten provision keeps the rule that producers must offer adapted products within nine months of the technical order's entry into force.","The extra time doesn't change what a compliant system has to do. If you're choosing or building an invoicing agent now, it's simpler to build it to issue invoices only through a compliant system from the start than to retrofit chained records and correction-only workflows later."]}],"checks":[],"ask_rightshold":{"start":"https://www.rightshold.com/start?ref=seo","mcp_endpoint":"https://www.rightshold.com/mcp","ask":"Our invoicing agent's configuration changed: it now issues invoices through our VERI*FACTU-mode invoicing system instead of a spreadsheet template, and our finance lead approved it. Record the change with the versions involved and a hash of the new configuration so we have a dated entry outside the invoicing system.","mcp_call":{"tool":"record_action","arguments":{"action_type":"invoicing.agent_config_change","outcome":"success","occurred_at":"2026-11-25T15:00:00Z","client_event_id":"invoicing-agent:verifactu-switch-2026-11-25","summary":"Invoicing agent v1.4 now issues invoices only through the invoicing system in VERI*FACTU mode (producer declaración responsable on file for version 5.2); spreadsheet template retired; corrections via rectifying invoices only; approved by role FIN-1","action_sha256":"<sha256 of the exported agent configuration>"}},"also":["Needs your API key (or accept_terms:true once to open a free account; the key comes back once). It returns a ledger-committed receipt of what you submitted and when, kept outside both the agent and your invoicing system.","It doesn't create, sign or send billing records and isn't a VERI*FACTU system. It proves the entry was recorded, not that the change was made as described. Keep tax IDs, names and invoice contents out of summary; the hash ties the receipt to the exact configuration file."],"scope":"Rightshold isn't an invoicing system, doesn't send records to the Spanish Tax Agency and doesn't check whether your software meets the RRSIF. Article references are to Royal Decree 1007/2023 as consolidated in the BOE, Royal Decree-law 43/2026 and article 201 bis of the General Tax Law, all read in Spanish on November 25, 2026; the English wording and the application to AI agents are ours, since the regulation doesn't mention AI. This covers Spain's common territory only. Not tax or legal advice; ask an asesor fiscal about your setup."},"sources":[{"title":"BOE: Royal Decree 1007/2023 (RRSIF), consolidated text","url":"https://www.boe.es/buscar/act.php?id=BOE-A-2023-24840"},{"title":"BOE: Royal Decree-law 43/2026 of November 24, 2026 (final provision one amends Royal Decree 1007/2023)","url":"https://www.boe.es/buscar/doc.php?id=BOE-A-2026-24701"},{"title":"BOE: Royal Decree-law 15/2025 of December 2, 2025 (previous deadlines)","url":"https://www.boe.es/buscar/doc.php?id=BOE-A-2025-24446"},{"title":"BOE: Order HAC/1177/2024 (technical specifications)","url":"https://www.boe.es/buscar/act.php?id=BOE-A-2024-22138"},{"title":"BOE: General Tax Law 58/2003, article 201 bis","url":"https://www.boe.es/buscar/act.php?id=BOE-A-2003-23186"},{"title":"Agencia Tributaria: Sistemas Informáticos de Facturación (SIF) y VERI*FACTU","url":"https://sede.agenciatributaria.gob.es/Sede/iva/sistemas-informaticos-facturacion-verifactu.html"},{"title":"Agencia Tributaria: Nota informativa, ampliación del plazo de adaptación de los SIF","url":"https://sede.agenciatributaria.gob.es/Sede/iva/sistemas-informaticos-facturacion-verifactu/nota-informativa-ampliacion-plazo-adaptacion-facturacion.html"},{"title":"Agencia Tributaria: Preguntas frecuentes sobre SIF y VERI*FACTU","url":"https://sede.agenciatributaria.gob.es/Sede/iva/sistemas-informaticos-facturacion-verifactu/preguntas-frecuentes.html"}],"related":[{"title":"What Germany's GoBD require when an AI agent posts entries","url":"https://www.rightshold.com/answers/what-does-germanys-gobd-require-when-software-or-an-ai-agent-posts-bookkeeping-entries"},{"title":"What France's FEC and entry validation rules require","url":"https://www.rightshold.com/answers/what-do-frances-fec-and-entry-validation-rules-require-when-software-or-an-ai-agent-posts-your-accounting-entries"},{"title":"What Making Tax Digital for VAT requires of software","url":"https://www.rightshold.com/answers/what-does-making-tax-digital-for-vat-require-when-software-or-an-ai-agent-keeps-your-vat-records"},{"title":"What sales suppression zapper software is","url":"https://www.rightshold.com/answers/what-is-sales-suppression-zapper-software-and-how-do-you-prove-your-pos-sales-records-werent-altered"}],"computed_from":"Curated guidance; license verdicts computed from Rightshold's license profiles at render time. Not legal advice.","updated":"2026-11-25"}