The Spanish version is the authoritative reference. View in Spanish
SendDocumentToAuthority
Sends an electronic document to the Brazilian tax authority (SEFAZ or Prefeitura) through NDD.
Endpoint
Available in both API versions — see Authentication to choose the one that applies to you.
Basic Auth — v1
https://developers-sbx.gosocket.net/api/v1/Document/SendDocumentToAuthorityhttps://developers.gosocket.net/api/v1/Document/SendDocumentToAuthorityOAuth 2.0 — v2
https://developers-sbx.gosocket.net/api/v2/Document/SendDocumentToAuthorityhttps://developers.gosocket.net/api/v2/Document/SendDocumentToAuthorityMethod: POST
Input parameters
See DTE/GUF examples for Brazil for reference XML samples ready to use in FileContent.
Response parameters
Examples
{
"FileContent": "<GUF/DTE XML in Gosocket format>",
"Async": true,
"Mapping": "11111111-1111-1111-1111-111111111111",
"Sign": true,
"DefaultCertificate": false
}Notes
The NDD integration operates exclusively in asynchronous mode (Async: true). NDD receives the document, queues it and returns immediately with Code: "200" and CountryDocumentId: null. The final status (authorized, rejected, etc.) is queried subsequently with GetDocument using the received GlobalDocumentId.
Basic Auth (v1) or OAuth 2.0 (v2), depending on the endpoint you use — see Authentication for details and credentials.
The value 11111111-1111-1111-1111-111111111111 is the generic mapping for Brazil. If your integration uses a custom mapping, request the correct GUID from the Integrations team.