Help Center

How to get the NFC-e CSC

What the CSC and CSC ID are, where to generate them at each state SEFAZ (RN, SP, MG, RS, PR, SC, RJ, BA, PE, CE, GO and DF) and what to do when the code is revoked.

To issue the NFC-e (the consumer receipt), AllEars.Vet needs two values only your state SEFAZ provides: the CSC and the CSC ID. They go in Settings → Finance → Invoices, under Product invoices. The NF-e (invoice for companies) does not use a CSC.

What it is

  • CSC (Taxpayer Security Code): a secret code of 16 to 36 letters and digits the SEFAZ issues to the company. Only the company and the SEFAZ know it. The app uses it to sign the receipt QR code, which the consumer uses to look up the invoice. The CSC is never printed.
  • CSC ID: the 6-digit number saying which CSC is in use, for example 000001. It goes into the QR code. If the SEFAZ shows just 1, you can type it that way.

Each company can hold up to two valid CSCs per state, and the homologation (test environment) code differs from the production one. Always use the production one.

First: accreditation as an NFC-e issuer

In most states the company must be accredited as an NFC-e issuer before generating the CSC. In several states the CSC comes out on the accreditation screen itself. If the company never issued NFC-e, ask your accountant to do the accreditation; they usually have access to the SEFAZ portal.

Where to generate it in each state

Access is almost always with the company digital certificate (the same A1 you upload to AllEars.Vet) or the partner's or accountant's login. Portals change from time to time: if the path below does not match, search the portal for "CSC" or "Código de Segurança do Contribuinte", or ask your accountant.

State Portal Path
RN UVT (Unidade Virtual de Tributação), uvt.set.rn.gov.br Service NFC-e: Solicitar, Consultar ou Revogar CSC. First, the Pedido de Credenciamento NFC-e in the UVT. Only the legal-representative partner can request or revoke.
SP NFC-e Portal, nfce.fazenda.sp.gov.br Gerenciar Cód. Segurança, under the "com validade jurídica" (production) link. First, the Credenciamento on the same portal.
MG SIARE (SEF-MG) Documentos Eletrônicos → Credenciar Emissor. The CSC shows on the accreditation screen; production is enabled under Liberação de acesso ao ambiente de produção. Access with the state registration, the master responsible's CPF and password.
RS Receita Estadual e-CAC portal, sefaz.rs.gov.br Meus Serviços → NFC-e → Manutenção de CSC → Produção → Consultar (or Novo). Digital certificate of a partner, legal representative or authorized accountant. MEI uses the CSC para MEI card on the MEI Portal, with a gov.br login.
PR Receita/PR, receita.pr.gov.br DF-e → NFC-e → CSC → Controle.
SC SAT (SEF-SC), sef.sc.gov.br NFC-e service page → Gestão do Código de Segurança do Contribuinte - CSC. Since 2025, NFC-e accreditation goes through the PAF authorization the software vendor links in SAT.
RJ NFC-e Portal, fazenda.rj.gov.br/nfce Manutenção do CSC (security code generation and maintenance). With a digital certificate.
BA SEFAZ-BA, Nota Fiscal de Consumidor Eletrônica page Serviços → Solicitar/Inutilizar Código do Contribuinte (CSC) – Produção. Access with the Inspetoria Eletrônica username and password.
PE e-Fisco, efisco.sefaz.pe.gov.br Tributário → Notas Fiscais, Declarações e Guias → Documentos Fiscais Eletrônicos (DFE) → Código de Segurança do Contribuinte (CSC) → Incluir. Digital certificate or gov.br of the legal representative or accountant.
CE NFC-e Portal, nfce.sefaz.ce.gov.br Serviços → Consultar CSC. The CSC is delivered on Credenciar Empresa, with the company digital certificate.
GO SEFAZ-GO NF-e Web, nfe.sefaz.go.gov.br CSC screen: pick Produção, sign in with the digital certificate and tap Incluir.
DF DEC Portal, dec.fazenda.df.gov.br Credenciamento → NFC-e. SEFAZ-DF generates the production CSC at accreditation, valid for every establishment in DF.

Another state? The path usually has the same name: look for CSC, Código de Segurança do Contribuinte or Token NFC-e on the SEFAZ portal, near the NFC-e accreditation.

Coming from SimplesVet or another system

The CSC belongs to the company, not the system. If you already issued NFC-e through another program, you can use the same CSC and ID here.

  • SimplesVet: under Fiscal → Notas de produto → Configurações.
  • Other systems: look in the NFC-e settings for "CSC", "Token" or "Código de segurança".

If the other system shows the CSC masked, generate a new one on the SEFAZ portal and update both systems (or only AllEars.Vet, if the other one will stop issuing). Remember to also set the series and the Next number: see Setting up invoices, field by field.

When the CSC is revoked

The SEFAZ or the company itself can revoke a CSC (for example, on a suspected leak, or to generate a third one, since only two stay valid). After that, an NFC-e using the old code is rejected by the SEFAZ, usually with a message about an invalid CSC or QR code. To fix it:

  1. Generate a new CSC on your state SEFAZ portal (path above).
  2. In Settings → Finance → Invoices, Product invoices section, type the new code in CSC (NFC-e) and the new number in CSC ID, and tap Save.
  3. On the charge, tap Issue again.

Frequently asked questions

Where do I get the CSC?

On the SEFAZ portal of the company's state, with the company digital certificate or the accountant's access. The table above has each state's path.

Does the NF-e need a CSC too?

No. Only the NFC-e (consumer receipt). The NF-e is signed with the digital certificate alone.

Can I use the same CSC as my old system?

Yes. The CSC belongs to the company. Copy the code and ID from the old system or look them up on the SEFAZ portal.

Is the CSC ID 1 or 000001?

Both work: it is the same number. Type it the way the SEFAZ shows it.

I generated the homologation CSC. Does it work?

No. Homologation is the SEFAZ test environment. For real invoices, use the production CSC.

Next steps

Didn't find what you were looking for?

Reach us at support@allears.vet or ask Mima, the AI assistant inside the app.