Edit

Share via


Electronic invoices (CFDI)

Note

Community interest groups have now moved from Yammer to Microsoft Viva Engage. To join a Viva Engage community and take part in the latest discussions, fill out the Request access to Finance and Operations Viva Engage Community form and choose the community you want to join.

Electronic billing in Mexico requires the Comprobantes fiscales digitales por internet (CFDI) format.

This article provides information about the electronic invoices that your organization can submit to the Mexican tax authority (SAT). It describes the currently approved method for submitting electronic invoices (CFDI), the requirements for using them, and the information that they include.

An electronic invoice is a legally accepted digital tax receipt that your organization submits to the Mexican tax authority (Servicio de Administración Tributaria [SAT]). Dynamics 365 Finance helps guarantee that the electronic invoices your organization generates are secure, confidential, authentic, and legally acceptable. You can also make sure that international standards are applied to your electronic invoices. You can generate an electronic invoice for the following documents when you post a transaction:

  • Sales order
  • Free text invoice
  • Credit note
  • Return order
  • Project invoice
  • Project sales order

Methods for generating electronic invoices

You can generate electronic invoices by using two methods:

  • Comprobantes fiscales digitales (CFD) – Use Finance to generate electronic invoices. Use a government website to verify and certify the invoices. Finally, submit the invoices to SAT. Although this method is now obsolete because of changes in the legislation, you can inquire about CFD transactions that you previously generated in Finance.
  • Comprobantes fiscales digitales por internet (CFDI) – This method generates electronic invoices in the format that SAT requires. Use a digital signature service provider (PAC) to verify and certify the invoices. Before you can use the CFDI method to generate electronic invoices, set up a web service connection to an authorized PAC. For the CFDI method, send an XML message from Finance to the PAC. The PAC validates each invoice, assigns a folio number, and then incorporates the digital stamp that the service tax authorities provide. After the PAC completes the approval process, your organization receives the approved XML message, and can then submit the invoice to the customer in XML or PDF format.

Note

Integration with the PAC web service isn't part of the Mexican localization. For information about how to customize a web service connection with a PAC, see “Customizing the integration with PAC web services” later in this article.

The following illustration shows the process for generating an electronic invoice by using the CFDI method.

Screenshot of the electronic invoice process for Mexico.

Requirements for using electronic invoices

To use electronic invoices, complete the following tasks:

  • Obtain authorization from SAT to use the CFDI method, and acquire the related SAT certificate to issue electronic invoices.
  • Obtain a Registro Federal de Contribuyentes (RFC) number, a Clave Única de Registro de Población (CURP) number, and a state inscription number from SAT.
  • Contract a PAC web service. Find the authorized PAC services on the SAT website. Some PACs require that you install an additional certificate to enable the connection between your instance of Finance and the PAC web service.
  • Make sure that PDF and XML files meet SAT requirements. Send these files to customers as email attachments. The XML file that you generate must be based on the XML schema definition (XSD) that SAT provides. You must archive the XML file of each electronic invoice.
  • An RFC or CURP tax registration ID is required for your organization and your customers. Be sure to complete this information in the related configuration.
  • Install the SAT certificate and PAC service certificate on the server, and make sure that the NETWORK SERVICE user has the appropriate permissions for private keys.
  • Identify the PAC web service that you use. (Select Accounts receivable > Invoices > E-invoicePAC accounts.) You can use test and production environments if your PAC services allow for these types of environments.
  • Enable the configuration to send email, and define the email template that you use to transmit XML and PDF files. (Select Organization administration > Setup > E-mail parameters.)
  • Enable the configuration to issue CFDI electronic invoices. (Select Accounts receivable > Invoices > E-invoice > Electronic invoice parameters.)
  • Prepare the integration with your PAC web service.

Information that's included in electronic invoices

An electronic invoice includes the following details:

  • The name, address, and tax registration numbers of your organization and the customer.
  • The invoice number, the date, and the name of the city where you generated the invoice.
  • The serial number of the digital certificate, the authorization number, and the year when you authorized the certificate.
  • The description and quantity of each item that you include in the invoice.
  • The unit price of each item.
  • The amount that you withheld for income tax (Impuesto sobre la renta [ISR]) and value-added tax (VAT). To obtain this information, set up the tax type (VAT or ISR) on the Sales tax code configuration page (select Tax > Indirect taxes, Sales tax > Sales tax code > General > Tax type).
  • The total amount of the invoice transaction.
  • The name, number, and date of the customs document that you generate for imported items. You can find this information in each invoice transaction form that is mentioned earlier.
  • The registration number of the property if the invoice transaction includes leasing services. You can find this information in each invoice transaction form that is mentioned earlier.
  • The digital stamp of the organization.
  • For a printed CFDI version, the bidimensional bar code.

Customizing the integration PAC web services

As the Mexican localization scope document explains, you need to customize the integration with PAC web services. This customization varies, depending on the PAC web services that you contract.

Additional resources

E-invoicing CFDI

Inquire and print an electronic invoice

Cancel an electronic invoice

CFDI layout Version 3.3

Waybill (Carta de Porte) complement (version 1.0)