Set up NF-e federal parameters (Brazil)
This article describes how to set up Nota Fiscal eletrônica (NF-e) web services, rejection codes, and schemas to generate an NF-e in Brazil with Microsoft Dynamics 365 Finance.
You can set up NF-e web services, rejection codes, and schemas to generate an NF-e. After you generate an NF-e, XML messages are generated and submitted to the Secretaria da Fazenda (SEFAZ).
The following procedure uses the BRMF demo company.
To set up NF-e web services, rejection codes, and schemas to generate an NF-e, follow these steps.
- In Dynamics 365 Finance, go to Organization administration > Organizations > Electronic fiscal documents > NF-e federal parameters.
- Select New. One tax authority must be created per state.
- In the Authority field, enter a value.
- In the Name field, enter a value.
- Select the Ignore accents checkbox.
- Select the Cancel as Event checkbox. This option complies with the cancellation of NF-e through events instead of a specific XML cancellation file.
- Select Save.
- Select New.
- In the Environment field, select an option.
- Select the web service for NF-e authorization.
- In the Version field, enter a value.
- In the Internet address field, enter a value.
- Select New.
- In the Environment field, select an option.
- Select the web service for NF-e discard.
- In the Version field, enter a value.
- In the Internet address field, enter a value.
- Select New.
- In the Environment field, select an option.
- Select the web service for NF-e inquiries.
- In the Version field, enter a value.
- In the Internet address field, enter a value.
- Select New.
- In the Environment field, select an option.
- Select the web service for NF-e authorization returns.
- In the Version field, enter a value.
- In the Internet address field, enter a value.
- Select New.
- In the Environment field, select an option.
- Select the web service for NF-e events.
- In the Version field, enter a value.
- In the Internet address field, enter a value.
- Select New.
- In the Environment field, select an option.
- Select the web service for NF-e service status inquiries.
- In the Version field, enter a value.
- In the Internet address field, enter a value.
- Select Save.
- Select the Rejection codes tab.
- Select New.
- In the NF-e rejection code field, enter the rejection code from the official NF-e guide.
- In the Description field, enter a value.
- In the list, mark the selected row.
- In the Message type field, select an option.
- In the Fiscal document status field, enter the fiscal document status that must be set when the rejection code is entered.
- Select Save.
- Select the Schemas tab.
- Select New. When applicable, enter the path of the XSD file that is used to validate the NF-e XML.
- In the The version of the NF-e feature field, select an option.
- In the Schema field, enter a value.
- Select New.
- In the Schema type field, select an option.
- In the The version of the NF-e feature field, select an option.
- In the Schema field, enter a value.
- Select New.
- In the Schema type field, select an option.
- In the The version of the NF-e feature field, select an option.
- In the Schema field, enter a value.
- Select New.
- In the Schema type field, select an option.
- In the The version of the NF-e feature field, select an option.
- In the Schema field, enter a value.
- Select Save.
- Close the page.
- Select Save.