Skip to content

Blog

SAT Electronic Invoicing: A Complete Guide for Businesses

June 18, 2026 · Invoicing · SAT · CFDI

What Is Electronic Invoicing in Mexico?

Electronic invoicing in Mexico is the official system through which taxpayers document their commercial and fiscal transactions in digital form, with full legal validity recognized by the Servicio de Administración Tributaria (SAT) — Mexico's federal tax authority. It is not simply a matter of sending a PDF by email; Mexico's electronic invoice has a precise technical format, a mandatory certification process, and end-to-end traceability that the SAT can query in real time.

The format underpinning electronic invoicing is the CFDI (Comprobante Fiscal Digital por Internet). If you are not yet familiar with that term, we recommend reading What Is a CFDI and What Is It For? first, where we explain its structure and the stamping process in detail.

The SAT as the System's Core

The SAT defines the rules: the XML schemas, the controlled catalogs (product and service codes, units of measure, tax regimes, countries, currencies), the current CFDI version, and the legal provisions that govern when and how each type of receipt must be issued.

The SAT also maintains a centralized record of every stamped CFDI in Mexico, allowing it to cross-reference data between issuers and recipients, detect discrepancies, and conduct audits with a precision that would be impossible with paper documents.

e.firma (FIEL) vs. CSD: Key Differences

Many taxpayers conflate two distinct digital credentials:

  • e.firma (formerly FIEL — Firma Electrónica Avanzada): The taxpayer's personal or corporate digital identity with the SAT. It is used to access the SAT portal, file tax returns, carry out official proceedings, and in some contexts sign contracts. It carries the same legal weight as a handwritten signature.
  • CSD (Certificado de Sello Digital): This credential is specific to issuing CFDIs. It is derived from the e.firma but has its own independent purpose and expiry. Each RFC (tax ID) can hold multiple active CSDs simultaneously — useful for companies with several invoice series or issuance points.

In practice, to issue electronic invoices a business needs an active e.firma and at least one valid CSD.

How to Issue an Electronic Invoice: Three Paths

1. The SAT's Free Portal

The SAT provides a free online tool for generating CFDIs. It is suitable for taxpayers with very low volumes — for example, sole proprietors with few transactions. Its limitations are clear: fully manual, no integration with internal systems, basic functionality, and dependence on portal uptime.

2. A PAC's Portal or Desktop Software

Proveedores Autorizados de Certificación (PACs) are companies certified by the SAT to stamp CFDIs. Most offer their own web portal and/or desktop application with friendlier interfaces than the SAT tool, volume-based stamp plans, and technical support. This is a valid option for mid-volume businesses that can tolerate some manual operation.

3. API Integration

For high-volume businesses or those requiring full automation, the most efficient path is connecting internal systems (ERP, e-commerce platform, subscription billing, etc.) directly to a PAC's API. In this model:

  • The CFDI is generated automatically from data already present in the system (order, contract, received payment).
  • Stamping happens in seconds, without human intervention.
  • The XML and PDF are stored and delivered to the recipient programmatically.
  • Errors are handled with retry logic and automated alerts.

This architecture eliminates duplicate data entry, reduces human error, and scales without friction.

CFDI Validation and Cancellation

Any recipient can validate a CFDI by looking up its UUID (folio fiscal) on the SAT portal to confirm the stamp is authentic and the document has not been cancelled.

Cancellation is a formal process that, since CFDI 4.0, generally requires the recipient's acceptance. The issuer submits a cancellation request; the recipient has a defined period to accept or reject it; if there is no response, the SAT applies specific rules based on the amount and document type. This has significant implications for billing and collections workflows.

Cancellations must also specify a cancellation reason using a SAT catalog code — for example: data entry error, transaction did not occur, or replacement by another CFDI.

Key Complements: Complemento de Pago and Carta Porte

Two complements that many businesses need to understand:

  • Complemento de Pago (Payment Receipt — REP): When invoicing on credit (net-30, net-60, net-90, etc.), the income CFDI is issued at the time of the transaction with a payment method of "PPD" (deferred or installment payment). Each time the customer pays — in full or in part — a separate Payment CFDI with the Complemento de Pago must be issued. This is a legal requirement and directly determines when the recipient can credit the VAT on their tax return.
  • Carta Porte: A mandatory complement for federal road freight transport in Mexico. It must be included in the transfer CFDI or the income CFDI (when the carrier charges freight) and contains data about the vehicle, driver, origin, destination, and the goods being transported. Proper issuance is a legal requirement for vehicles to move freely on federal highways.

ERP and Systems Integration

One of the most strategic decisions for any business invoicing at scale is how to integrate CFDI issuance with its internal systems. Key considerations include:

  • Master data mapping: The SAT's product/service code catalog (ClaveProdServ) must map correctly to your internal items or services. Incorrect mapping can result in rejected stamps or fiscal inconsistencies.
  • CSD lifecycle management: CSDs have a limited validity period. A robust integration must alert teams ahead of expiry and support seamless rotation without disrupting invoicing operations.
  • Error handling and retries: PAC APIs can return errors due to network issues, validation failures, or service outages. The integration must include controlled retry logic and failure logging for audit purposes.
  • CFDI storage and retrieval: Tax law establishes document retention periods. A well-designed system stores stamped XMLs, links them to accounting records, and allows fast retrieval.
  • Automated complements: If the business operates on credit, automatically generating Payment CFDIs from the ERP's collections records dramatically reduces manual work in the finance department.

Practical Considerations Before You Integrate

Before embarking on an electronic invoicing integration project, businesses should assess:

  • Volume projections: The expected number of CFDIs per month determines the right tier with your PAC and the complexity of the integration.
  • Document types needed: A company that sells on credit needs the Complemento de Pago; a logistics company needs Carta Porte; a manufacturer exporting goods needs the foreign trade complement. Scope must be defined upfront.
  • Existing system capabilities: Some ERPs have native PAC connectors; others require custom middleware. Understanding what your current system can and cannot do shapes the architecture decision.
  • Tax compliance review: Integrating electronic invoicing is a good moment to review your product/service catalog codes, your customers' RFC data, and your tax regime classifications — errors in these will surface immediately when CFDI 4.0 strict validation rejects them.

Closing Thoughts

Electronic invoicing in Mexico is far more than digitizing a document. It is a structured fiscal ecosystem with precise rules, specific credentials, certified third-party providers, and sector-specific complements. For businesses operating at medium or high volume, approaching electronic invoicing with a well-designed integration is not optional — it is an operational and compliance necessity.


AISDC designs and implements custom electronic invoicing integrations: API connections to factura.com and other PACs, CSD management, automated Complemento de Pago and Carta Porte logic, and ERP connectors tailored to your systems. If you want to eliminate manual invoicing work and automate your CFDI 4.0 pipeline end-to-end, visit our CFDI invoicing integration services and tell us about your use case.

Need help with this at your company? AISDC builds the custom solution for you.

Talk to AISDC