How does the NDD integration work?
NDD Space acts as a mandatory fiscal middleware between Gosocket and Brazilian tax authorities (SEFAZ and Prefeituras). Gosocket generates the document in its standard format (GUF/DTE), sends it to NDD, and NDD handles the transformation, validation and submission to the appropriate authority.
The transformation chain​
Every document passes through this chain before reaching the tax authority:
Each step has a specific responsibility:
Two directions: issuance and reception​
The integration operates in both directions of the tax document.
AR — IssuanceIssuanceGosocket sends the XML to NDD Space. NDD transforms it, validates it with SEFAZ or the Prefeitura, and returns the approved XML with the tax status.AP — ReceptionReceptionDocuments issued by suppliers arrive via email inbox or periodic synchronization (every 4 hours). NDD validates and Gosocket Inbox stores the status.Reception: two entry routes​
Reception in Brazil has a particularity compared to other countries: it requires activation in NDD Space to work.
Each customer (TaxID) must be activated in the NDD Space portal before starting the integration. Without this activation, reception stops at Status 5 (Error) and issuance cannot proceed.
Document lifecycle​
The document status can be queried at any time with GetDocument, and subsequent events (cancellation, correction letter) are executed with ChangeDocumentStatus.