Self-invoicing in Mexico: the data the SAT requires
RFC, name as on the Constancia, postal code, tax regime and CFDI use: the five details self-invoicing needs, why they fail and what to do for foreign buyers.
In short
To invoice a purchase with CFDI 4.0, Mexico's electronic invoice, the store needs five details from the customer: RFC (tax ID), name or business name, the postal code of their tax address, tax regime and CFDI use. The RFC must be registered with the SAT, the name and postal code must match that RFC, and the CFDI use has to be allowed for the tax regime; if something doesn't comply, the invoice can't be stamped. The safest approach is to copy them from the Constancia de Situación Fiscal (tax status certificate). A foreign buyer without a Mexican RFC uses the generic RFC XEXX010101000.
A self-invoicing portal (portal de autofacturación) asks your customer for their tax details so their invoice can be issued. If one of them doesn't match what the SAT, Mexico's tax authority, has on record for their RFC (tax ID), the invoice can't be stamped and your customer is left without it.
This guide explains the five recipient details CFDI 4.0 requires, what each one is checked against, what to do with foreign customers and with sales that are already in your global invoice (factura global), and what to ask of a portal.
The five details CFDI 4.0 requires
| Detail | What the SAT's filling guide requires |
|---|---|
| RFC | 13 characters for an individual (persona física) and 12 for a legal entity (persona moral). Except for the generic RFCs, it must be on the SAT's list of registered, non-canceled RFCs (l_RFC) |
| Name or business name (razón social) | The one registered with the RFC, in the order first name(s), first surname, second surname; it must match the RFC entered |
| Postal code | The one of the tax address (domicilio fiscal), linked to the RFC entered |
| Tax regime (régimen fiscal) | The current code of their regime, from the c_RegimenFiscal catalog |
| CFDI use (uso del CFDI) | The code for how they'll use the invoice, from the c_UsoCFDI catalog; it has to be allowed for their tax regime |
Rule 2.7.1.29 of the Resolución Miscelánea Fiscal (RMF, the SAT's yearly tax rules) for 2026 confirms the last two: the use is stated with the c_UsoCFDI catalog code, together with the code of the regime the recipient pays taxes under.
- Copy the details from the Constancia de Situación Fiscal. It's the SAT document with the registered details of an RFC: name, postal code of the tax address and tax regime.
- The name, exactly as registered. In the current guide, the examples are in capital letters and the legal-entity example has no corporate-form suffix (no "S A de C V"): "LA VILLA ESP0".
- The tax postal code, not the shipping one. The SAT's guide (appendix 7, question 18) requires the postal code of the recipient's tax address even if they have branches.
- A use their regime allows. The c_UsoCFDI catalog states which regimes can use each code. If your customer doesn't know which one applies, they should ask their accountant.
What happens if a detail doesn't match
The PAC, the SAT-authorized provider that stamps the invoice, checks these rules when stamping. If a detail doesn't comply, the invoice isn't stamped and it has to be corrected. The most common causes:
- RFC: a typo, or an RFC that isn't registered or has been canceled.
- Name: with the corporate-form suffix, with abbreviations that differ from the registration or with the first name and surnames in another order.
- Postal code: the delivery address or a branch instead of the tax address.
- Tax regime: a different one from the one on their Constancia.
- CFDI use: a code their regime doesn't allow.
If the invoice was already stamped with a wrong detail, it isn't corrected: it's replaced. According to the SAT, the store first issues the invoice with the correct details, related to the previous one with relationship type 04, "Sustitución de los CFDI previos" (replacement of previous CFDIs), and then cancels the original with reason 01. For a wrong CFDI use, the SAT's guide (appendix 7, question 1) also says to cancel and replace.
Customers abroad
A customer who lives abroad and isn't registered with the RFC is invoiced with the generic RFC XEXX010101000 (rule 2.7.1.23 of the 2026 RMF). With that RFC, the SAT's guide requires tax regime 616, "Sin obligaciones fiscales" (no tax obligations), and CFDI use S01, "Sin efectos fiscales" (no tax effects).
The guide also requires the customer's country of tax residence and tax registration number when the invoice includes the foreign trade supplement (complemento de comercio exterior). If you ship the order outside Mexico, check with your accountant whether your invoice needs it.
Canceling an invoice issued to a resident abroad doesn't require their acceptance (rule 2.7.1.35).
If the sale is already in your global invoice
If your customer didn't ask for an invoice when they bought, their sale went into your global invoice, made out to the general public. To issue theirs, the SAT says to cancel the global invoice with reason 04, issue it again without that sale and, finally, issue the customer's invoice. We explain it step by step in cancel a global invoice with reason 04.
Your store's deadline and the legal limit
The deadline you announce for requesting an invoice (30 days, the end of the month) is your store's policy. The legal limit is something else: taking a sale out of the global invoice requires canceling it, and article 29-A of the Código Fiscal de la Federación (the Federal Tax Code) only allows canceling until the month in which the annual tax return is due for the year in which you issued it. Set your deadline within that limit; we explain it in CFDI 4.0 global invoice on Shopify.
How a self-invoicing portal works
It's a page where your customer requests their invoice without writing to you:
- They find their order, with a link from their email or with the order number and another detail.
- They enter their five details.
- The system builds the CFDI and a PAC stamps it.
- Your customer downloads the XML and the PDF.
Rule 2.7.1.33 of the 2026 RMF allows, by prior agreement with your customer, making their CFDI available on a web page or portal, for download only.
What to ask of a portal:
- That it filters the options. Only the regimes for the type of taxpayer and only the CFDI uses allowed for the chosen regime.
- That it says which detail failed. And that your customer can correct it without entering everything again.
- That it accepts foreign customers with the generic RFC XEXX010101000.
- That it handles sales that are already in the global invoice with reason 04, and tells you what it does if that global invoice already has credit notes.
- That it doesn't invoice what another tool already invoices. For example, your Mercado Libre sales if its Facturador (Mercado Libre's invoicing tool) invoices them (how to invoice your Mercado Libre sales).
- That it gets the payment form right. For example, whether a card payment was by credit or debit card.
- That it lets you set the deadline for requesting an invoice.
Steps for the buyer
- Have your Constancia de Situación Fiscal at hand. It shows your name, your postal code and your tax regime as the SAT has them on record.
- Open the store's portal. With the link in your order email or with your order number.
- Copy your details exactly. RFC, name or business name, postal code and tax regime, without adding or removing anything.
- Choose the CFDI use. The one that matches how you'll use the invoice and that your regime allows; if in doubt, ask your accountant.
- Check before sending. One extra character in the RFC or a wrong postal code is enough for the invoice not to be stamped.
- Download the XML and the PDF. Keep both.
Steps for the store
- Ask for the five details in your portal. RFC, name or business name, postal code, tax regime and CFDI use.
- Check the format before stamping. A 12- or 13-character RFC, a five-digit postal code and a CFDI use the regime allows.
- Put the link in your order emails. That way your customer doesn't have to look for it.
- Publish your deadline for requesting an invoice. And set it within the limit for canceling your global invoice.
- Serve foreign customers with XEXX010101000. With tax regime 616 and CFDI use S01.
- Take sales out of the global invoice when customers ask for an invoice later. With reason 04.
Frequently asked questions
What do I do if the SAT rejects my name even though I typed it correctly?
Compare it letter by letter with your Constancia de Situación Fiscal: it must match the one registered with your RFC, in the order first name(s), first surname, second surname. If it's a legal entity, drop the corporate-form suffix: the SAT guide's example doesn't include it.
Is the postal code the one of my tax address or my shipping address?
The one of your tax address, as it appears on your Constancia. The SAT's guide asks for it that way even if you have branches.
Can I ask for an invoice if I live outside Mexico?
Yes. If you don't have a Mexican RFC, the store uses the generic RFC for foreigners, XEXX010101000, with tax regime 616 and CFDI use S01.
Can an invoice that was already stamped be corrected?
It isn't corrected: it's replaced. The store issues a new invoice with your correct details and cancels the previous one with reason 01.
This article is for information only and doesn't replace advice from your accountant (contador).
About Toldo
Toldo is a Shopify app we build; it's rolling out in stages with a small group of founding partners. Its self-invoicing portal asks for these five details, shows only the regimes for the type of taxpayer and the CFDI uses allowed for the regime and, if a detail doesn't match the SAT's records, tells your customer which one to check so they can correct it. It also accepts the generic RFC for foreigners and, if the sale was already in your global invoice, takes it out with reason 04, unless that global invoice already has credit notes. The deadline to request an invoice is 30 days after payment, or the number you choose up to 365, and it never goes past the end of March of the following year (Self-invoicing portal). A PAC (a stamping provider authorized by the SAT) stamps your invoices with your own CSD (digital seal certificate); Toldo is not a PAC. It charges a flat monthly price, with no per-sale commission. During the rollout, we turn on each feature in stages. If you sell on Mercado Libre and Shopify, you can apply as a founding partner.
Mercado Libre and Shopify are trademarks of their respective owners. Toldo is an independent app; it isn't affiliated with or endorsed by them.
Sources
Accessed on November 16, 2026, unless another date is given.
- SAT, Anexo 20, Guide to filling out CFDIs (Guía de llenado de los comprobantes fiscales digitales por Internet), revision of January 16, 2026 (Receptor node and appendix 7, questions 1 and 18), read in the copy archived by the Internet Archive on October 31, 2026: https://web.archive.org/web/20261031191642/http://omawww.sat.gob.mx/tramitesyservicios/Paginas/documentos/Anexo_20_Guia_de_llenado_CFDI.pdf
- Resolución Miscelánea Fiscal for 2026, rules 2.7.1.23, 2.7.1.29, 2.7.1.33 and 2.7.1.35 (Diario Oficial de la Federación, DOF, December 28, 2025): https://dof.gob.mx/nota_detalle.php?codigo=5777217&fecha=28/12/2025
- SAT, 2026 cancellation FAQ and scenarios (accessed on November 15, 2026): https://sat.gob.mx/minisitio/Factura/documentos/PreguntasFrecuentes_CancelacionFactura25082026.pdf
- Decree amending the Federal Tax Code, article 29-A (DOF, November 7, 2025): https://dof.gob.mx/nota_detalle.php?codigo=5772358&fecha=07/11/2025