Pular para o conteúdo principal

Processing Flows: NF-e, NFC-e, Taxes and Taxes Payment Forms

ProductNFE.io Product Invoice Issuance (dfetech-product-invoice-api)
Document2 of 4: Processing flow design
Version1.0 (2026-09-24)
AudienceCustomers, architecture teams, IT and tax departments
Related documents1 of 4: Architecture · 3 of 4: Processing, resilience, idempotency and contingency · 4 of 4: Messaging and queues (Portuguese) · Versão em português

1. How to read this document​

This document contains the flow diagrams for each subproduct. Document 3 explains in writing the timing rules, the retry limits, the idempotency guarantees and the contingency settings.

In the diagrams, the English names (for example, Issued or issued_error) are the values the customer sees in the invoice status field and in the webhook action.

1.1 Common view: the life of an invoice​

1.2 Invoice states (status)​


2. NF-e (model 55)​

2.1 Request intake (API)​

2.2 Invoice creation and tax calculation​

2.3 Numbering, signing and authorization​

2.4 SEFAZ response handling and query by access key​

2.5 Distribution XML, notification and DANFE​

2.6 Cancellation​

2.7 Electronic Correction Letter (Carta de Correção Eletrônica, CC-e)​

2.8 Number disablement (inutilização)​

2.9 EPEC contingency​


3. NFC-e (model 65)​

3.1 Asynchronous issuance​

3.2 Synchronous issuance​

3.3 Offline contingency (tpEmis=9)​

3.4 Later transmission of contingency invoices​

3.5 Cancellation and number disablement​

The flows follow the same steps as the NF-e (sections 2.6 and 2.8), with the consumer_invoice event type. Cancellation requires an authorized invoice (Issued): an invoice in IssuedContingency that has not yet been transmitted can only be cancelled after it is authorized. The NFC-e has no correction letter (Carta de Correção).


4. Taxes: tax calculation​

4.1 Per-item calculation​

IBS and CBS are calculated in a separate call, made by the NF-e and the NFC-e for the items that request the official calculation (section 6).

4.2 Product registration​


5. Taxes Payment Forms: DIFAL payment slips​


6. Relationship between NF-e, NFC-e and Taxes​

  • The NF-e and the NFC-e call Taxes only when the customer requests automatic calculation on the items. Without that request, they use the values in the payload as received.
  • Credit invoices and debit invoices of types 01, 02, 03, 05 and 08 skip the calculation.
  • Taxes does not communicate with SEFAZ. The issuance flow does not call Payment Forms: Payment Forms reads the already authorized NF-e when the customer requests the payment slip.

NFE.io

A NFE.io é uma empresa de tecnologia que fornece soluções para automatizar e simplificar a emissão e gestão de notas fiscais eletrônicas. Com suas ferramentas, as empresas podem economizar tempo e reduzir erros, aumentando a eficiência e precisão do processo de emissão de notas fiscais.

Um dos principais cases de sucesso da NFE.io é a implementação da solução na empresa de transporte Rodonaves. Com a automatização da emissão e gestão de notas fiscais eletrônicas, a Rodonaves conseguiu reduzir em até 80% o tempo gasto nesse processo, o que se traduziu em uma significativa melhoria na eficiência operacional. Além disso, a empresa também conseguiu eliminar erros e atrasos na emissão de notas fiscais, o que melhorou a relação com seus clientes e aumentou a confiança dos órgãos fiscais.

Outro exemplo é a implementação da NFE.io na empresa de comércio eletrônico, a Loja Integrada. Com a automatização da emissão de notas fiscais, a Loja Integrada conseguiu aumentar a velocidade de emissão de notas em até 10 vezes, o que permitiu que a empresa atendesse a uma maior quantidade de clientes e, consequentemente, aumentar as suas vendas.

Além desses exemplos, a NFE.io também tem outros cases de sucesso com empresas de setores como indústria, construção, varejo e serviços, mostrando a versatilidade e eficácia da sua solução.

Em resumo, a NFE.io é uma empresa de tecnologia que oferece soluções para automatizar e simplificar a emissão e gestão de notas fiscais eletrônicas, ajudando as empresas a economizar tempo e reduzir erros, melhorando a eficiência e precisão do processo. Com cases de sucesso em diferentes setores, a NFE.io tem se destacado como uma empresa líder em automação fiscal.