Mexico CFDI and Contabilidad Electronica (eAccounting) – The Basics Explained

Scott Lewin
August 23, 2016

CFDI, which stands for Comprobantes Fiscal Digital por Internet, is the electronic billing schema defined by the Mexican federal tax code. It has been mandated for companies doing business in Mexico since 2011. The goal of CFDI is added visibility into companies’ tax liabilities, so that the government can ensure it is receiving accurate payments, and it has paid off. Audits based on the legislation resulted in a 34% increase in VAT collected in a single quarter.

Below are the basics you need to understand CFDI in Mexico:

  1. Obtain a Registro Federal del Contribuyente RFC (Mexican Tax ID).
  2. With the RFC, apply for FIEL (Firma Electronica Avanzada). It is based on PKI (Public Key Infrastructure) to identify and verify the information about a taxpayer before the SAT (Mexican Tax Authorities).
  3. With the FIEL, apply for CSD (Certificado Sello Digital) to be used with CFDI process flows.
  4. Have a solution provider capable of mapping your proprietary invoices into XML v3.2 defined by Anexo 20 (the SAT is currently working on CFDI v3.3) of the Mexican tax code Miscelania Fiscal. This is by far the most underestimated issue with CFDI invoices, as no customer accounting system is configured the same. Additionally, your customer specific requests can also create an integration nightmare to force your data into the government standard (not just once, but across all the different variations you have in your business and all the different variations requested by your customers).
  5. Identify what required data is missing in your ERP – for example there are some data elements that are required by the Mexico tax authority but are not captured in SAP. Understand what is missing and determine how you will provide this information to the government.
  6. Apply a digital signature known as a sello with the CSD.
  7. Validate the XML syntax to obtain the “Timbre Fiscal” or government seal.
  8. You must store the “Timbre Fiscal” in your back-end accounting system.
  9. You must print out the invoice, which now includes the “Timbre Fiscal.” Place a copy on the truck at the time of shipping – similar to the Brazil Nota Fiscal model.
  10. By law, you must make the signed XML available to your end customers.
  11. Most companies will send the signed XML invoice and the PDF rendering to the customer via email, but other channels exist, such as B2B communications or uploading to a customer portal.
  12. These invoices must be stored for a minimum of five years.
  13. If you have to change the invoice, you must first cancel the original invoice with the government and generate a new one; otherwise, you will still be on the hook for the older invoice’s tax implications.
  14. Note: Large customers can make the process more complex by requesting “Addenda” information. An Addenda is a specific space within the government XML where you can put specific information. For example a company like Wal-Mart might want the supplier to put the PO # in the Addenda, so it can expedite the payables process. The government does not care about this information, but customer requirements can make the entire process much more complex when a customer requests a lot of additional information on the PDF printout that is specific to them.
  15. As a buyer, when you receive the XML invoice, the laws state that you need to validate that the XML is authentic and registered with the SAT and then archive this XML for five years. It will be the fundamental document if there is an audit.
  16. Understand that this process will evolve over time, so have a strong change management strategy and process in place.

In addition to electronic invoicing, the SAT mandated electronic accounting in 2015, requiring companies to submit their chart of accounts, trail balances and journal entries.

Below are the basics you need to understand electronic accounting in Mexico:

  1. Chart of accounts is sent once and then again every time it is modified. This requires a process of mapping your chart of accounts in SAP with the SAT specifications.
  2. Trial balance is sent monthly, no later than the third day after the second month. It must be sent at the main account level and seconadary account level. This is an extraction for each single account by period showing initial balance, account movement and final balance.
  3. Journal entries (Polizas) are mandatory and must be submitted upon the government’s request or if you request a tax refund or compensation back.
  4. All of the information is submitted through buzon tributario and each document must be signed with your company’s electronic signature (FIEL). Click here to understand the hidden issues in mexico electronic accounts reports.
  5. All of the UUIDs (unique identifying codes) need to be included for all fiscal transations in gastos (expense reports) and nomina (payroll). This is the most difficult part of electronic accounting because these transactions can have many XMLs associated with a single SAP document.

The Mexican government has created an environment in which everything is tied to an XML and UUID – every purchase, every credit/debit note, every journal entry and every VAT report. If any link in the chain is missing, or if there is any error at any point, an electronic audit is inevitable. Built-in matching and validations ensure that any missing links and errors are identified and addressed before they become an audit risk.

To leran more about Mexico’s e-Invoicnig and eAccounting requirements download Mexico CFDI e-Invoicing 101.

Editor’s Note: This post was originally published in June of 2013 and had been completely revamped and updated to provide the most accurate and timely informantion for our readers.  

Sign up for Email Updates

Stay up to date with the latest tax and compliance updates that may impact your business.

Author

Scott Lewin

Gain timely insight and important up to the minute information about the current legislative changes in Latin America, including Brazil Nota Fiscal, Mexico CFDI, Argentina AFIP and Chile DTE. Learn how these changes affect your operations, your finances and also your Information Technology teams.
Share this post

Hungary - Insurance Premium Tax
EMEA IPT
July 8, 2024
Hungary Insurance Premium Tax (IPT): An Overview

Regarding calculating Insurance Premium Tax (IPT), Hungary is the only country in the EU where the regime uses the so-called sliding scale rate model.

Understanding-IPT-Prepayments-in-Hungary
EMEA IPT
September 20, 2022
Understanding IPT Prepayments in Hungary

Update: 17 April 2025 by Edit Buliczka New IPT Prepayment Rules in Hungary Starting in 2025, new prepayment rules will apply to the Extra Profit Tax on Insurance Premium Tax (EPTIPT). The current structure of two prepayments—due in May and November—will be replaced by a single prepayment, which must be made by 10 December 2025. […]

France’s E-Invoicing Revolution
E-Invoicing Compliance EMEA
November 19, 2025
France’s E-Invoicing Revolution: Gwenaëlle Bernier on Digital Transformation, Compliance, and the Future of Tax

Gwenaëlle Bernier – Partner & Avocate Associée G56, Tax Technology & Transformation at EY As France’s ambitious e-invoicing mandate approaches, Gwenaëlle Bernier – speaker at the Tax Compliance Summit Sovos Always On: Paris (19 Nov.) – shares expert insights on how digital transformation is reshaping tax compliance and operational performance. This interview dives into the real-world […]

France e-invoicing
E-Invoicing Compliance EMEA North America
November 11, 2025
France’s E-Invoicing Reform: Building Bridges Between Business, Technology, and Regulation – An Interview with Cyrille Sautereau

Cyrille Sautereau – President FNFE-MPE & CEO Admarel Conseil  Ahead of the Tax Compliance Summit Sovos Always On: Paris on 19th November, we asked Cyrille Sautereau, Chair of the AFNOR “Electronic Invoice” Commission and President of the National Forum for Electronic Invoicing and Public eProcurement (FNFE-MPE), to discuss the evolving landscape of e-invoicing reform in France, the challenges of […]

EMEA Tax Compliance
November 5, 2025
KSeF 2.0: Preparing for Poland’s New E-Invoicing Landscape

Poland’s KSeF (National E-Invoicing System) is a Continuous Transaction Control (CTC) model for real-time visibility, becoming mandatory in phases starting February 2026.

KSeF 2.0 FAQs
EMEA Tax Compliance
November 5, 2025
KSeF 2.0 Frequently Asked Questions

Sovos’ team of regulatory tax experts answer some of the most frequently asked questions about KSEF 2.0, an upcoming update to Poland’s national electronic invoicing system.

ViDA e-invoicing
North America VAT & Fiscal Reporting
July 18, 2025
ViDA E-Invoicing and Digital Reporting Requirements: What Businesses Need to Know

VAT in the Digital Age (ViDA) is one of the most significant regulation changes to EU VAT in recent years. Changes to requirements became effective on 12 March 2025 with the official adoption of the package, with further rules coming into effect in 2030. This blog discusses the changes impacting businesses, including Digital Reporting Requirements, […]