{"title":"Set up PAC web services","url":"https://jonas-paprotka.de/docs/localfunctionality/mexico/how-to-set-up-pac-web-services/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/localfunctionality/mexico/how-to-set-up-pac-web-services, MicrosoftDocs/dynamics365smb-docs at 46907ac (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/localfunctionality/mexico/how-to-set-up-pac-web-services","source":{"name":"Business Central application docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-docs","commit":"46907ace177f8d31deba47a2fdb57c3336e66252","date":"2026-11-19"},"checked":"2026-11-19","description":"To send electronic invoices and credit memos in Mexico, you need to specify at least one provider for the required electronic stamp.","date":"2026-10-20","meta":{"topic":"how-to"},"outline":[{"level":2,"title":"Add the certificates","slug":"add-the-certificates","at":1173,"chars":753},{"level":2,"title":"Set up a PAC web service","slug":"set-up-a-pac-web-service","at":1926,"chars":1544},{"level":2,"title":"Related information","slug":"related-information","at":3470,"chars":230}],"text":"Before you can send invoices and credit memos electronically, you must specify one or more providers of the electronic stamp that must be included in invoices in Mexico.\nWhen you send an electronic document, it must receive a digital stamp by an authorized service provider, PAC, before it can be sent to your customer. The communication between Business Central and the PAC is managed through web services, and therefore, you must specify technical information about the web services of the PAC that you intend to use.\nTo use web services, you must identify the name of the method on the web service that processes requests for digital stamps. Your PAC can give you this information.\nConfigure the methods your PAC provides for requesting stamps, submitting cancellations, and retrieving cancellation status. The Type field distinguishes these operations.\nBefore you can set up the web services, you must upload two certificates:\n A PAC .pfx file\n A SAT .pfx file\nAssign the PAC certificate in Certificate on PAC Web Services. Assign the SAT certificate in SAT Certificate on General Ledger Setup. See how-to-set-up-electronic-invoicing#set-up-general-ledger-information.\n## Add the certificates\nHave your administrator or partner add the certificates before you configure the PAC and SAT certificate fields. If New is available on Certificates, you can use it to upload the files. Otherwise, use the list to review the certificates that your administrator or partner added.\n1. Select Search (Alt+Q) in the upper-right corner, enter Certificates, and then choose the related link.\n1. Open the relevant certificate card and review Name, Available To, Has Private Key, and Expiry Date. The availability must include the users who send electronic documents.\n1. To replace an existing certificate file, select Upload Certificate and enter Password if prompted.\n1. Repeat the review for the second certificate.\n1. Close the page.\n## Set up a PAC web service\n1. Select Search (Alt+Q) in the upper-right corner, enter PAC Web Services, and then choose the related link.\n1. On PAC Web Services, enter the provider's Code, Name, and Certificate.\n For each web service, you must specify the relevant certificate. You must also add additional details.\n 1. For the relevant web service, choose the Related action, choose the PAC Web Service menu item, and then choose the Details action.\n 1. Fill in the fields as described in the following table.\n  Field|Description\n  Environment|Specify if the web service is for a test environment or a production environment.\n  Type|Select Request Stamp to obtain a stamp, Cancel to submit a cancellation, or Cancel Request to retrieve the cancellation status.\n  Method Name|Specify the name of the web method, such as GeneraTimbre or CancelaTimbre.\n  Address|Specify the URL of the web method.\n  Contact your PAC for this information.\n1. Repeat the steps for each required operation and environment.\n1. On General Ledger Setup, select the provider in PAC Code and the matching PAC Environment.\n1. Repeat the PAC setup for any additional providers.\n> IMPORTANT\n> SAT has certified more than one PAC in Mexico, and you must obtain the appropriate information for communication with the PAC of your choice.\n> NOTE\n> The default integration expects specific request parameters and response XML. Changing the URL and method name might not be enough to use a different PAC. Work with your partner to confirm compatibility or adapt the integration.\n## Related information\n electronic-invoicing\n how-to-set-up-electronic-invoicing\n mexico-local-functionality\nFind free e-learning modules for Business Central here<https://learn.microsoft.com/training/dynamics365/business-central>"}