NF-e — the Brazilian e-invoice
The NF-e (Nota Fiscal Eletrônica) is Brazil's electronic tax document, rolled out from 2006. Its radical trait: the administration (SEFAZ) must authorise the document before the goods move — the truck does not leave without authorisation.
What is the NF-e?
In Brazil the nota fiscal is inseparable from the movement of goods: it is at once an invoice and a fiscal transport document. The NF-e dematerialises it entirely. The issuer generates an XML conforming to the national layout, signs it with its ICP-Brasil certificate (the official public-key infrastructure) and submits it to its state's SEFAZ via web service. Without the autorização de uso, the document does not exist and the goods cannot legally move.
SEFAZ authorisation, before circulation
It is the strictest clearance model in the world:
- Issue the signed XML and send it to the issuing state's SEFAZ.
- SEFAZ validates (schema, tax rules, taxpayer status) and returns the autorização with its protocol.
- The goods travel with the DANFE; the recipient verifies and can manifest (accept/refuse) the operation.
Contingency modes (SVC, framed offline issuance) exist so logistics are not blocked when SEFAZ is unavailable.
Chave de acesso and DANFE
<NFe xmlns="http://www.portalfiscal.inf.br/nfe">
<infNFe Id="NFe35260712345678000199550010000041271000041270" versao="4.00">
<ide>
<cUF>35</cUF> <!-- state of Sao Paulo -->
<mod>55</mod> <!-- model 55 = NF-e -->
<serie>1</serie>
<nNF>4127</nNF>
<dhEmi>2026-07-05T10:30:00-03:00</dhEmi>
<tpAmb>1</tpAmb> <!-- 1 = production -->
</ide>
<emit><CNPJ>12345678000199</CNPJ><xNome>Fornecedora Digital LTDA</xNome></emit>
<dest><CNPJ>98765432000188</CNPJ><xNome>Cliente Exemplo SA</xNome></dest>
<det nItem="1">
<prod><cProd>SKU-001</cProd><xProd>EDI service</xProd>
<NCM>85234910</NCM><vProd>10000.00</vProd></prod>
<imposto><!-- ICMS / IPI / PIS / COFINS --></imposto>
</det>
<total><ICMSTot><vNF>11600.00</vNF></ICMSTot></total>
</infNFe>
<!-- XML-DSig signature with an ICP-Brasil certificate -->
</NFe> - The chave de acesso (44 digits) encodes the state, date, issuer CNPJ, model, series, number and a check digit — the public verification key of the document.
- The DANFE (Documento Auxiliar da NF-e) is the printed representation physically accompanying the goods, with the chave as a barcode. It is not the invoice: only the authorised XML is authoritative.
Events: cancellation, carta de correção
- Cancelamento — cancellation within a framed window, as long as the operation has not taken place.
- Carta de Correção Eletrônica (CC-e) — correction of minor errors that touch neither amounts, parties nor goods.
- Manifestação do Destinatário — the recipient confirms, disclaims or refuses the operation, locking the cycle against fraud.
The family: NFC-e, CT-e, MDF-e, NFS-e
| Document | Role |
|---|---|
| NFC-e (model 65) | Sale to the final consumer (point of sale), with QR code |
| CT-e | Transport document (freight service) |
| MDF-e | Electronic manifest consolidating a vehicle's documents |
| NFS-e | Services invoice (municipal, with a national standard being rolled out) |
The whole sits within SPED (Sistema Público de Escrituração Digital), which also covers accounting (ECD) and tax books (EFD) — the functional equivalent of a permanent SAF-T.
NF-e in the global CTC landscape
- vs CFDI: Brazilian authorisation is prior to physical movement; Mexican certification covers the fiscal document.
- vs Europe: twenty years ahead on clearance — but a federal (per-state) model tied to logistics, unrelated to EN 16931.
Further reading
- Portal Nacional da NF-e.
- The country page: Brazil.
- The cousins: CFDI (Mexico), DTE (Chile).