Skip to main content

AP — NFS-e Reception

NFS-e (Nota Fiscal de Serviços eletrônica) has special handling: validation is municipal (Prefeituras), processing time is longer, and Inbox behaviour differs from CT-e and NF-e.

Participants

ActorRole
SuppliersSend documents in XML format to the Inbox email inbox
GosocketElectronic document exchange platform
NDDIntermediary between Gosocket and municipal Prefeituras
PrefeiturasLocal government entities responsible for validating NFS-e

Flow steps

  1. Submitted by suppliers — Suppliers send XML to the Inbox email inbox. PDF processing is not currently implemented (depends on NDD OCR activation; to be considered in the future).
  2. Received by Gosocket — Gosocket receives the XML. Documents are not processed in Inbox at this stage.
  3. Forwarded to NDD — Gosocket sends the XML to the NDD NFS-e inbox for processing. This inbox is configured in Inbox for each recipient TaxID.
  4. Processing in NDD — NDD converts the XML to NFS-e format. (PDF conversion via OCR is a future implementation.)
  5. Storage and processing in NDD — NDD stores the documents and sends them to local Prefeituras for validation. Processing time ranges from 8 to 72 hours.
  6. Gosocket periodic query — Gosocket queries NDD every hour. Available documents are stored in Inbox and their receipt is confirmed to NDD.

Critical differences from CT-e and NF-e

CT-e / NF-eNFS-e
Tax authoritySEFAZ (national)Prefeitura (municipal)
Sync cadenceevery 4 hevery 1 h
Statuses saved in InboxAllApproved and Cancelled only
Documents in ErrorSaved in InboxNot saved
Manual reprocessing from Inbox✅ Available❌ Not available
Event processing5 types (Cancelamento, Ciência, etc.)Not applicable