Skip to content

Settings

Open Add-ons > Manage add-ons > Mexico CFDI 4.0 e-Invoicing > Settings.

Setting Default Description
Enable On When off, no new work is started. Jobs of work that is already under way are still processed.
Marketplace owner mode On On: every order is processed with the marketplace owner’s PAC account. Off: each vendor connects their own account and issuer data.
Debug log Off Also stores every HTTP call with masked request and response. Secrets are never stored.
Log retention (days) 90 Older log entries are removed by the cron run.
Issue the CFDI when the order status becomes Processed Orders that carry the customer’s RFC get their individual CFDI at this status. Others wait for the global invoice.
Create the credit note when the order status becomes none Creates the Egreso of the order’s CFDI at this status (for example Refunded). Empty = never automatically.
Series (Serie) WEB Printed before the folio. The folio is the document number of the add-on.
Time zone of the issuer America/Mexico_City The CFDI date is written in this zone. The PAC and the SAT reject dates older than 72 hours.
Setting Default Description
IVA treatment of products without their own 16% 16%, 8% (frontera norte), 0%, exempt or not subject.
Catalogue prices include IVA On On: the price the customer pays includes IVA and the CFDI breaks it down. Off: IVA is added on top of the prices.
Default product / service key 01010101 ClaveProdServ for products without a key of their own or in their category.
Default unit key H87 ClaveUnidad (pieza).
Shipping product / service key 78102203 ClaveProdServ of the shipping line. Check it with your accountant.

Per product (tab Add-ons of the product page) and per category you can set ClaveProdServ (8 digits), ClaveUnidad, the IVA treatment and an optional IEPS rate. A product uses its own keys, then those of its category (or the nearest parent with keys), then the defaults above. Only the format of ClaveProdServ is checked here; your PAC validates it against the complete SAT catalogue.

Setting Default Description
Payment method (MetodoPago) PUE PUE = paid in one payment. PPD = deferred (the payment form is then 99; the payment complement is not part of this version).
Default payment form (FormaPago) 03 Used when the mapping below has no line for the payment method of the order.
Payment methods to payment forms empty One line per CS-Cart payment method: payment id = form, e.g. 12=04 (credit card), 14=03 (transfer).
Setting Default Description
Create global invoices automatically Off When on, the cron run invoices the closed period.
Orders for the global invoice have the status Complete Only orders with this status are included.
Global invoice period Monthly Daily, weekly, every 15 days, monthly or every two months. Keep one period during the fiscal year.
Setting Default Description
Attach the XML to the order e-mails On The stamped XML is attached to the order e-mails CS-Cart sends to the customer.
Show the CFDI on the customer order page On The customer sees the folio and can view and download the CFDI.

Credentials are not ordinary settings: they are entered on the Connection page and stored encrypted (AES-256-GCM, key derived from your store’s own secret). They are never shown again; leave a secret field empty to keep the saved value.

Field Description
Mode Test uses the test credentials and the sandbox of your PAC; Live uses the live credentials.
PAC Facturama or Facturapi: your own account with that provider.
User / password (Facturama) The portal user and password of the account.
Secret key (Facturapi) Entered in the password field; the first field may stay empty.
Issuer RFC, legal name, tax regime, expedition postal code Must match the fiscal profile and CSD in your PAC account.

The queue runs from cron. Use either the command line or the secret web address shown in the Cron section of the settings:

  • php /path/to/store/admin.php --dispatch=kv_cfdi_mexico.cron
  • https://your-store.example/index.php?dispatch=kv_cfdi_mexico.cron&key=<secret>

The same run creates the global invoice of the closed period (when enabled).

  • Log lists every call and job with filters (level, action, text, dates) and a CSV export.
  • Jobs lists the queue. A job that fails is retried after 5 minutes, 15 minutes, 1 hour, 3 hours and 12 hours, then marked “Gave up”; use Retry to queue it again.

In the vendor panel a vendor sees only their own records. With the marketplace owner mode off the vendor also gets the Connection tab for their own PAC account and issuer data.