Keeping invoices seems simple until the SAT (Mexico's tax authority) asks for a document from years ago or a computer fails. This guide explains in plain language how long to keep your CFDI (Mexico's electronic invoices) and your accounting records, which documents you should never throw away, and how to back them up so you don't lose them.
The general rule: 5 years, but not from the invoice date
Article 30 of the Código Fiscal de la Federación (CFF, Mexico's federal tax code), in the text in force since 2022, requires you to keep your accounting records and their supporting documents for five years. The clock does not start on the invoice date. It starts on the date the related tax return was filed, or should have been filed.
For example, if your 2026 annual return is filed in March 2027, the five years would run to about March 2032. Confirm the exact dates for your situation with your accountant, because the CFF is amended often.
If you are not required to keep formal accounting, you still have to keep the documents related to your tax obligations at your registered address, available to the authorities.
When the deadline is extended, and what you keep for good
The five-year period starts later in two cases:
- Effects that last several years. One example is a tax loss used over several years. In that case, the five years count from the return for the last year with that effect.
- Appeals or lawsuits. If you are in a dispute with the authorities, the period counts from the date the final ruling becomes firm.
Some documents must also be kept for as long as the company exists:
- The founding documents (acta constitutiva).
- Joint-venture contracts (asociación en participación).
- Records of capital increases or decreases, mergers and spin-offs. This includes, for example, bank statements when capital was paid in cash and appraisals when it was paid in assets.
- Dividend certificates.
- Documents for certain adjustments under the income-tax law (Articles 22 and 23) and for agreements under double-taxation treaties.
- Your monthly and annual federal tax returns. In other words, the tax returns themselves are kept permanently. Many people don't expect this one.
Companies with audited financial statements (dictamen) may keep part of their records on microfilm, optical disc or other SAT-approved media. Those copies have the same value as the originals. There is also a six-year period for certain information, but it applies to financial institutions and not to most small businesses.
Electronic accounting: what you send to the SAT
The SAT page Envía tu Contabilidad Electrónica explains that you prepare a chart of accounts (the list of your accounting accounts) and send a trial balance (a summary of account balances) every month. Both must be sent at least at two levels: the main account and the first-level subaccount. The chart of accounts goes with the first trial balance and again whenever it changes.
Files are sent through the Buzón Tributario (the SAT's online mailbox) or through the SAT portal. Taxpayers who use the SAT's Mis cuentas app are exempt. The details of this obligation are in the annual tax rules (Resolución Miscelánea Fiscal, or RMF), whose numbering changes every year. Ask your accountant to check the current version and its deadlines. Keep your own copy of the files you send and their acceptance receipts.
Your CFDI: download them and check them
The SAT lets you view the invoices you have issued and received, and bulk-download their XML files and metadata (summary data about each invoice). What you download is the XML file, so keep the XML of every invoice, not just the PDF. A practical habit is to download them every month and file them in folders by RFC (tax ID), year and month.
Before you pay or deduct an invoice you received, check it with the SAT's CFDI checker. You enter the folio fiscal (UUID, the invoice's unique ID), the issuer's RFC and the receiver's RFC, and the checker tells you whether the invoice is valid or cancelled.
Don't rely on the SAT portal or your accountant as your only archive. Always keep your own copy.
How to back up without the headache
CISA, the US cybersecurity agency, publishes a backup guide for small and medium businesses that applies well here. A backup is a secure copy of your critical data, kept separate from your main systems. CISA names financial and payroll data explicitly. Its main recommendations are:
- The 3-2-1 rule: keep three copies, on two different types of storage (for example, a hard drive and the cloud), with one copy away from the business.
- Automatic, regular backups: backups should run on their own, without depending on someone remembering.
- At least seven days back: be able to restore versions from at least a week earlier.
- Protected copies: use physical security, encryption (encoding that makes data unreadable without a key) and one copy kept offline.
- Tested copies: run test restores, train your staff and write the procedure down.
The offline copy matters for a specific reason. CISA cites Verizon's 2025 Data Breach Investigations Report, which found ransomware (malware that locks your files and demands payment) in 44% of breaches. A backup that is always connected can be locked along with everything else. Without backups, CISA warns, recovery can take weeks or months, and it may be impossible.
INCIBE, Spain's national cybersecurity institute, offers an example backup rotation:
- Daily incremental copies, which save only what changed.
- A full copy every week.
- Full copies kept for a month.
- The last copy of each month kept for a year.
INCIBE also recommends keeping a log of your copies, the storage media and who has access, and destroying old media securely. This is a useful example, not a legal requirement in Mexico.
Quick checklist for your business
- Agree with your accountant on which documents you keep for five years and which you keep permanently.
- Download the XML files of issued and received invoices every month.
- Check received invoices before paying or deducting them.
- File your chart of accounts, trial balances and their receipts.
- Apply the 3-2-1 rule, with one encrypted copy kept offline.
- Test a restore regularly, for example every three months.
- Before deleting any document, confirm the deadline with your accountant.
- Review changes to the CFF and the RMF every year.
At NodOpera we help small and medium businesses across Mexico, remotely or on-site, set up automatic backups that follow the 3-2-1 rule, test restores and organize their accounting information. We also implement Odoo as an ERP so your operations run in one system. If you'd like to review how you back up your invoices and accounting records today, get in touch and we'll go through it together.
NextSeparate guest Wi-Fi from your business network: why and how