Get a quote on WhatsApp in 2 min
Contact

Mexico City, Mexico
Available for remote and on-site projects.

Professional networks

LinkedIn · GitHub · Email
Applied engineering, measurable results.

Online store with CFDI 4.0 e-invoicing in WooCommerce

· Updated · 3 min read · Samuel Torres

Short answer

A WooCommerce store can issue CFDI 4.0 invoices (Mexico's electronic invoice) by connecting to an authorized stamping provider (PAC) through a plugin. There are two ways: customers invoice themselves from a page on your store, or you invoice from the order in the admin. Either way you need your digital seal certificate (CSD) and the tax data validated before stamping.

Why invoicing by hand costs you sales

In Mexico, many B2B purchases don't close without an invoice. If customers have to message you, wait and email you their details, some of them will buy from whoever invoices instantly. On top of that, typing tax IDs (RFC), tax regimes and CFDI usage codes by hand creates errors that have to be cancelled and reissued.

The two ways to invoice from WooCommerce

Self-invoicing: customers open a page on your store, enter their order number, fill in their tax details and download their PDF and XML. It's the option that leaves you the least work.

Invoicing from the order: you (or your team) issue the invoice from the order screen. More control, but more operational work.

Many stores combine both: self-invoicing for the public and manual invoicing for special cases.

What the system has to validate before stamping

The expensive mistake isn't failing to invoice: it's invoicing wrong. An invoice with the wrong data has to be cancelled and reissued, which costs your team time and your customer's trust. That's why the system should validate at least:

  • An RFC with a valid format.
  • Tax postal code, tax regime and CFDI usage against the SAT catalogs.
  • That the invoice amount matches what was actually charged.
  • That an order can't be invoiced twice.

Costs almost nobody mentions

The plugin may be free and invoicing still has a cost: the PAC charges per stamp, you need a valid CSD, and someone has to handle rejected invoices. Ask how much each stamp costs and who deals with errors before you choose a provider.

How I built it for Blanco Detalle

For Blanco Detalle I built a WooCommerce store with product personalization, tiered wholesale pricing, shipping through more than 150 couriers and CFDI invoicing. The store runs on about 50 active plugins, and that's where the lesson is: invoicing is connected to a stamping provider (PAC) through a plugin, with the tax data validated before each invoice is stamped.

Blanco Detalle's WooCommerce cart with live shipping calculation
Blanco Detalle's WooCommerce cart with live shipping calculation

Related: Blanco Detalle case · Online store service

FAQ

Can I issue CFDI 4.0 invoices from WooCommerce without using the SAT portal?

Yes. A plugin connected to a stamping provider generates the XML, stamps it and delivers the PDF and XML to the customer. You upload your digital seal certificate to the provider once and everything else happens from the store.

What do I need to get started?

A working WooCommerce store, your e.firma to request the CSD, an account with a stamping provider, and a decision on whether customers invoice themselves or you invoice from the order.

Does it work for wholesale sales?

Yes. What matters is that the invoiced price matches what was charged, volume discounts included, and that the system doesn't allow an order to be invoiced twice.

Samuel Torres Pichardo

Samuel Torres Pichardo · Software and Cloud Engineer · Mexico City
I run more than 23 sites in production.
About me · LinkedIn

Want something like this for your business?

Get a quote on WhatsApp in 2 min

Professional contact:

Mexico City, Mexico

Available for remote and on-site projects.
B.Eng. in Computing and Telecommunications Technologies

© 2026 Eng. Samuel Torres. Applied Engineering.