Handle Tax Authority Return

After the data is loaded successfully to the Tax Authority Return interface tables, you can handle the responses from the tax authority.

This table describes all the possible tax authority return codes that can be returned for each fiscal document event code (that is, the request type sent to tax authority):

Fiscal Document Event Code Tax Authority Tax Authority Return Codes
SEFAZ CITY Approved/ Rejected Errors/ Pending Return Upload failed Canceled Void
Cancellation request Yes Yes Yes Yes Yes
Contingency request Yes Yes Yes
Status request Yes Yes Yes Yes Yes
Voiding request Yes Yes Yes

In a general fiscal document flow, the fiscal document event code to request the tax authority approval for a fiscal document is Status Request.

The Import Fiscal Document Approval Information process takes each tax authority return code, and updates the fiscal document with the corresponding fiscal document status, as displayed in the following table. From the Manage Fiscal Document Generation task, you can view the fiscal document status, and take the appropriate actions.

Fiscal Document Event Code Tax Authority Tax Authority Return Codes
Approved Errors Pending Return Rejected Upload failed Canceled/ Void
Status request SEFAZ Yes Yes Yes Yes Yes
CITY Yes Yes Yes
Fiscal Document Status after Import Fiscal Document Approval Information Approved Errors Pending Return Rejected Upload failed Canceled/ Void

This table describes how each tax authority return code is processed by the Import Fiscal Document Approval Information process, and the corresponding user actions:

Tax Authority Return Codes Tax Authority Return Description Import Fiscal Document Approval Information User Action
Approved Fiscal document use is approved by SEFAZ or the city tax authority

Updates the fiscal document status from Sent to Approved.

For goods fiscal documents, this process captures: Event Processing Date and Time, and the Protocol Number.

For services fiscal documents, this process captures:

RPS Number, Fiscal Document Date, Fiscal Document Number, Verification Code, Tax Settlement Certificate Number, and Date. If the fiscal document was generated in Receivables, updates the Tax Invoice Number with the Fiscal Document Number, and the Tax Invoice Date with the Fiscal Document Date in the Receivables transaction lines and automatically completes the Receivables transaction.

If the fiscal document was generated in the Inventory Management, the process allows the shipment to be confirmed.

Continue the business flow. For example, if the fiscal document was generated in Receivables, proceed with the collection process; if the fiscal document was generated in Inventory Management, proceed with the shipment process.
Errors Request is not approved by SEFAZ or the city tax authority due to errors Updates the fiscal document status from Sent to Errors. You can now update the Transaction section.

Click the fiscal document status link, and review all the error messages. Fix the incorrect information in the setup, transaction, or fiscal attributes and click Request for Fiscal Document.

Run the Generate Fiscal Document and the Send Fiscal Document to Tax

Authority processes again.

Pending Return Request is pending response from SEFAZ or the city tax authority Changes the fiscal document status from Sent to Pending Return.

If the request is pending return from SEFAZ, decide on the contingency and enter the contingency information in the Manage Fiscal Document Generation page.

If the request is pending return from the city tax authority, wait for the tax authority response or if necessary, manually capture the tax authority

return status as Approved or Errors.

Rejected

Fiscal Document

was denied by SEFAZ

Changes the fiscal document status from Sent to Rejected. Regularize the company situation for the tax authority to allow the fiscal document generation.
Upload failed SEFAZ service is unavailable

In this case, the request was not processed by SEFAZ.

Changes the fiscal document status from Sent to Upload Failed.

Select the Generate Contingency Fiscal Document or Void Fiscal Document action and enter the corresponding required information in the Manage Fiscal Document Generation page.

This document only focuses on the tax authority return codes for the fiscal document event code Status Request.

For more information on other fiscal document event codes and fiscal document integration with third parties, see the Quick Reference for Oracle ERP Cloud Documentation for Brazil (2329725.1) on My Oracle Support at https://support.oracle.com.