This guide is dated November 1, 2026, when the changes took effect. The editorial review and Tario tests described here took place on November 6.
Hacienda updated the annexes and structures for electronic documents. The version remains 4.4. The November 1, 2026 change adds reference codes and clarifies how certain transactions should be recorded. Tario incorporates these changes into its validation, reports and XML. Here is what changes and which cases still need review.
A correction needs the right reason
Reference codes 13 and 14 identify cancellation or amount correction due to a material error; code 15 identifies its replacement. Their effects belong to the original document's period. Ordinary codes 01, 02 and 06 affect the note's period, with code 07 used for an ordinary replacement. An older invoice does not automatically imply a material error.
A return agreed in November for goods sold in October may be a new commercial event rather than an error in October's invoice. Keep the supporting evidence and review the classification with your accountant. Tario must not silently reopen a closed month or rewrite a filed declaration.
Rejected documents, receipts and exports
Reference code 16 identifies replacement of a rejected document; code 17 identifies payment application in an Electronic Payment Receipt. Reference document types 19 and 20 identify an Export Invoice and an Electronic Payment Receipt respectively. These are separate catalogues, not changes to the type codes of the documents being issued.
Keep each document's key and Hacienda response. Check the current submission before trying again after a rejection or timeout. In Tario, saving a draft, submitting it and receiving acceptance are separate events.
Identification and VAT refunds
The update accommodates alphanumeric corporate IDs as announced by the National Registry and clarifies special phone-number exceptions. Use the registered identifier; do not add letters to an existing ID or invent missing details.
VAT refunds for eligible health services taxed at 4% depend on payment methods and the sale's contents. A mixed payment does not automatically refund all VAT. Tario calculates the applicable proportion for eligible lines and caps the refund at the corresponding tax.
Verified cases and remaining limits
Hacienda's test environment accepted notes using codes 13 and 14, a replacement invoice using code 15, a note referencing an export invoice, and an invoice with an informational reference to a payment receipt. We also verified automatic receipts after recording payments and health-service VAT refunds with card and mixed payments. These are specific test results, not a general Hacienda certification.
Code 16 remains unverified: staging reported that the reference could not be found even though querying the source confirmed its rejection. Tario also blocks ordinary sales notes against a REP and POS card payments for health services requiring a VAT refund. Those workflows need dedicated handling. For health-service invoices with a refund, use the invoice editor rather than POS.
Before issuing
- Check the issuer's registered identification, economic activity and location.
- For a correction, select the original document and the actual reason. Review the affected period.
- For eligible health services, check CABYS, tariff and payment allocation.
- After submitting, check Hacienda's response and retain the signed XML and supporting records.
The same checks apply to AI-assisted drafts and MCP operations. An assistant must not invent a fiscal reason or treat a confirmation message as proof of acceptance. Review corrections to filed periods with your accountant.