Diapasão
Tax & invoicing

NF-e in practice: issue your first invoice without errors

From the certificate to the authorized XML, the step-by-step guide to issuing NF-e and NFC-e without getting rejected. What each field means and where most people slip up.

CT
Carlos Tom
May 20, 2026 · 1 min read
Share
Tax

Issuing an invoice is daunting the first time and routine by the tenth. The secret is understanding what SEFAZ is asking for in each field — after that, rejections practically vanish.

Before you start: what you'll need

  • A1 digital certificate installed (see our dedicated guide).
  • CNPJ with an active state registration.
  • Tax regime defined with your accountant.
  • Products with the correct NCM and CFOP in their records.

NF-e or NFC-e: which one is yours?

NFC-e is the end-consumer invoice — the counter one, issued on most retail sales. NF-e is the invoice for another company (CNPJ) or for operations that require model 55, such as interstate sales and transport.

The fields that get invoices rejected most

  1. Wrong NCM — each product has its own; one mistyped digit is enough to get rejected.
  2. CFOP that doesn't match the operation (sale within/outside the state, return, etc.).
  3. CST/CSOSN outside your tax regime.
  4. Recipient with an invalid CPF/CNPJ or an incomplete address.
Why automating makes a difference
When the invoice is born from the sale itself — with NCM, CFOP, and taxes already calculated from the product record — the chance of rejection plummets. That's exactly what Diapasão does on every sale.

The flow, from click to authorized XML

  1. The sale is recorded (counter or online store).
  2. The system builds the XML with the product and customer data.
  3. The certificate signs it and sends it to SEFAZ.
  4. SEFAZ authorizes it and returns the access key — the DANFE can be printed or sent.

It sounds like a lot, but all of this happens in seconds when the records are correct. The real work is getting the records right once, carefully and with your accountant.

With Diapasão, the invoice is issued automatically on every sale
See how Diapasão pulls it off — perfectly in tune, in a single contract.
Show me
CT
Written by Carlos Tom
Partner accountant