How to validate a CFDI (XML) step by step
To validate a CFDI, check in the XML the CFF requirements (arts. 29 and 29-A), such as RFC, use, tax regime, and supplements, and confirm its status in the SAT's official verifier. Reviewing it yourself does not replace official verification of the document.

How to validate a CFDI (XML) step by step
Reviewing a CFDI through its XML file lets you confirm that an invoice you receive or issue meets tax requirements before using it to claim a deduction or credit. The XML is the document with validity for tax purposes (the PDF is only a representation), so the review must be done using it. This educational, neutral guide explains which fields to examine and why final validation of the document's status is always done on the SAT's official portal.
The requirements a document must meet are set out in the Código Fiscal de la Federación (CFF), and the SAT publishes the catalog and technical documentation.
The essentials
- A CFDI must meet the requirements of articles 29 and 29-A of the CFF; the XML is the document to review (CFF).
- The catalogs, guides, and official documentation for CFDI 4.0 are published by the SAT (SAT).
- The document's actual status (active/canceled, issuer, recipient, amount, and folio) is confirmed through the SAT's official verifier (SAT).
- Reviewing it yourself does not replace official verification of the CFDI.
What it is and when it applies: CFDI 4.0, supplements, cancellation, or Carta Porte
A CFDI 4.0 is the current digital tax document that must be issued in accordance with Anexo 20 and the SAT's catalogs. In addition to the base document, certain transactions require supplements (for example, for payments, payroll, or Carta Porte), whose requirements are also published by the SAT. Validating an XML file applies when you receive an invoice and want to make sure it can be used to claim a deduction or credit, or when you issue one and want to confirm it was prepared correctly before sharing it.
Obligations, deadlines, or risks
Using a CFDI that does not meet the CFF's requirements, or one that has been canceled, may affect your deduction or credit. That is why it is advisable to review both the contents of the XML and its status with the SAT. The specific rules and deadlines (for example, for cancellation) are set out in the SAT regulations currently in force and should be checked there, since they may be updated; this guide does not reproduce annual deadlines or exceptions.
Recommended steps
- Open the XML file (not just the PDF) and find the issuer's and recipient's details.
- Check that the recipient's RFC, name, and tax regime match your tax status certificate.
- Review the CFDI use, the form and method of payment, and the amounts and taxes.
- Confirm that it includes the corresponding supplement if the transaction requires one.
- Validate the document's status in the SAT's official verifier using the fiscal folio.
- If there are errors in details you cannot correct yourself, ask the issuer to reissue the invoice.
Common mistakes
- Reviewing only the PDF instead of the XML, which is the document with validity for tax purposes.
- Failing to confirm the CFDI's status in the SAT's official verifier.
- Accepting a document with an incorrect CFDI use or recipient tax regime.
- Failing to check whether the transaction required a supplement.
Official sources
- Cámara de Diputados — CFF, arts. 29 and 29-A: requirements a CFDI must meet. Link
- SAT — Factura electrónica: catalogs, guides, and documentation for CFDI 4.0. Link
- SAT — Verificación de comprobantes fiscales digitales: verifies status, issuer, recipient, amount, and folio. Link
Disclaimer: This information is general and educational for Mexico. It does not replace personalized advice from an accountant, tax attorney, or specialist. Obligations, deadlines, rates, and effects may vary according to tax regime, activity, income, state, and individual circumstances.