Fiscal Compliance

Fiscal Compliance

The Compliance Challenge in Mexican Retail

Issuing a CFDI in Mexico is not simply a matter of generating an invoice. SAT applies strict validation rules to every CFDI submitted for stamping. If the customer's RFC does not match SAT records exactly, or if even one line item is missing its SAT product key, the CFDI submission is rejected — the sale may be complete in the POS, but legally no valid receipt exists.


Quote
For retail operators, compliance failures surface immediately at the point of transaction rather than at audit time. In a high-volume environment, even a small percentage of failed CFDI generations creates a significant compliance backlog.


iVendNext Mexico Localization addresses this by enforcing SAT validation rules before any CFDI data is sent to FacturaAPI. Missing or invalid fields are caught and flagged at submission time, with clear error messages that tell staff exactly what needs to be corrected.



Customer RFC and Fiscal Data Validation

A CFDI Ingreso or Egreso must carry accurate information about the invoice recipient. Under CFDI 4.0 rules, the following customer fields must be present and correctly formatted before a CFDI can be generated:


  • RFC (Registro Federal de Contribuyentes) — the customer's tax identification number

  • Legal Name — the registered name as it appears with SAT

  • Tax System (Régimen Fiscal) — the customer's applicable SAT tax regime code

  • Fiscal ZIP Code — the postal code associated with the customer's registered fiscal address


If any of these fields are missing on the customer record at the time of POS Invoice submission, iVendNext blocks the CFDI generation attempt and displays a clear error message identifying which field is incomplete. The invoice cannot be submitted until the issue is resolved.



Notes
This validation happens before any call is made to FacturaAPI. It prevents wasted API calls and eliminates the scenario where an invoice is submitted, the stamp fails silently, and the failure is only discovered during a finance reconciliation.


For customers who do not wish to provide their fiscal details — common in retail walk-in scenarios — iVendNext supports the use of SAT-approved generic RFCs: XAXX010101000 for Mexican residents and XEXX010101000 for foreign customers. These allow CFDI generation to proceed without a customer-specific RFC.




SAT Product Key Validation per Line Item

Beyond customer data, every line item on a CFDI must carry a valid SAT product key — a five-to-eight digit code from SAT's official product and service catalogue that classifies what was sold. A CFDI with a line item that lacks a valid product key will not be accepted by FacturaAPI or SAT.


Notes
iVendNext enforces this at the item level. Each product in the iVendNext item master must have an SAT product key assigned. When a POS Invoice is submitted, the system checks every line item for a valid key. If any item is missing one, submission is blocked and an error message identifies the specific item that requires attention.


Info
This per-item check is particularly important in retail environments with large or frequently updated product catalogues. New items added to the catalogue must have their SAT product key assigned before they can be sold and invoiced compliantly. iVendNext makes this enforcement automatic — no item can pass through the CFDI pipeline without a valid code.


Surcharge and Delivery Line Handling

Retail transactions frequently include surcharge or delivery lines that do not correspond to a catalogued item. iVendNext automatically assigns the SAT product key 01010101 to these lines. This is the SAT-approved catch-all code for activity not otherwise classified, and its automatic application ensures that surcharge lines are never the cause of a CFDI validation failure.



CFDI 4.0 Standard Compliance

All CFDI documents generated by iVendNext comply with CFDI 4.0, the current version of Mexico's electronic invoicing standard. CFDI 4.0 introduced stricter data requirements compared to its predecessor — particularly around the accuracy of recipient information and the mandatory inclusion of the Tax System and fiscal ZIP on every invoice.


Info

FacturaAPI, as the SAT-authorised PAC integrated with iVendNext, is responsible for the technical CFDI 4.0 construction, digital signing, and submission to SAT. iVendNext ensures that all the required data fields are correctly mapped from POS Invoice and customer records to the CFDI payload before sending.


The Tax System code and fiscal ZIP stored on the customer record are automatically mapped to the corresponding CFDI 4.0 receiver data fields at generation time. There is no manual field mapping step for store operations staff.



Return Invoice UUID Linking

When a customer returns goods, Mexican tax law requires the credit note CFDI to reference the original sale CFDI by its SAT UUID. Without this link, SAT cannot verify the return is legitimate and connected to an actual prior sale.


iVendNext enforces this automatically. When a Return POS Invoice is created, the system retrieves the original invoice's SAT UUID and includes it in the CFDI Egreso payload using SAT relationship code 01 (Nota de crédito de los documentos relacionados). This linking happens without any input from the cashier or manager. The result is a fully traceable return record in SAT's system.



CFDI Cancellation with SAT-Approved Motives

Cancelling a stamped CFDI is not as simple as deleting a record. SAT requires every cancellation to be submitted with one of four approved motive codes, each corresponding to a specific reason for the cancellation:


  • Motive 01 — Receipts issued with errors with related document

  • Motive 02 — Receipts issued with errors without related document

  • Motive 03 — The operation was not carried out

  • Motive 04 — Nominative operations related to a global invoice


iVendNext handles CFDI cancellation entirely within the application. Managers select the applicable motive from the cancellation form in iVendNext, and the cancellation is submitted to SAT through FacturaAPI immediately. The selected motive code is stored on the POS Invoice record, creating a traceable cancellation history for finance and audit purposes.




Submission Blocking and Data Integrity

A key design principle in iVendNext's Mexico Localization is that incomplete data never reaches SAT. The system applies a missing field submission block at every layer: if any required CFDI field — whether on the customer record, the item master, or the invoice itself — is absent, the submission is stopped and a specific error message identifies what needs to be corrected. In iVendNext, if a CFDI is stamped, it is valid; if it is not, the system tells you exactly why.


InfoiVendNext also enforces Single Transaction Mode — a processing configuration that ensures the POS submission flow is fully compatible with real-time CFDI generation, preventing partial or out-of-sequence submissions from causing silent failures.

Together, these validations ensure every completed POS sale in iVendNext has a corresponding valid CFDI — and that any exception is visible, attributable, and correctable.




    • Related Articles

    • Setting Up and Managing Fiscal Year

      Overview A Fiscal Year groups financial activity over 12 months for reporting and compliance. iVendNext helps you set up and manage Fiscal Years to keep records organized and accurate. This article covers the process of setting up and managing Fiscal ...
    • Invoice Compliance

      Overview When a cashier closes a sale at an iVendNext POS terminal, several things happen in the background without any action from store staff. The invoice is digitally signed using a cryptographic key. It is formatted in ZATCA-mandated UBL 2.1 XML. ...
    • Invoice Compliance

      How iVendNext Handles KRA Invoice Submission For a retail business operating in Kenya, every POS Invoice is simultaneously a sales transaction and a tax event. Kenya Revenue Authority requires the transaction data to reach eTIMS before — or at the ...
    • Tax and Compliance

      Overview This article will guide you through the key components of tax and compliance management in iVendNext, including GST and Tax Management, Tax Withholding, Shipping Rules, and Compliance Reporting. 1. Key Components of Tax and Compliance ...
    • Tax Reporting and Compliance

      Overview Accurate tax reporting is vital to avoid penalties and stay compliant. iVendNext simplifies this with tools for local and global tax rules, including Sales/Purchase Registers and GSTR-1/GSTR-2 for India. This article explains key features ...