Documentation

Fiscal credentials

Register the company, A1 certificate, CSC and numbering in the dashboard, and pick the credential in the API with the X-Credential-Key header.

What it is

The fiscal credential holds what SEFAZ (the state tax authority) requires to issue invoices on behalf of a company: the issuer's data, the A1 digital certificate (a file-based ICP-Brasil certificate) and the invoice numbering. It belongs to the organization, and an organization can have several, one per CNPJ (company taxpayer ID) or per store.

Each credential serves one state, the issuer's state code. The NFC-e and the NF-e are available in all 27 states, with the same credential. The national NFS-e, the service invoice, uses the same credential too and depends on the issuer's municipality having an agreement with the national issuer.

Credentials are managed only in the dashboard, under Notas fiscais → Credenciais (Invoices → Credentials). The public API does not create or change credentials: it only picks one, by its API Key, on each issuance. The environment, production or homologation (testing), is not stored on the credential either: you choose it on each issuance, in the environment field.

Fields

The "Required" column shows what must be filled in to issue. Creating the credential takes only the name and the state.

Dashboard fieldRequiredValues
Nome (Name)yesthe credential's name in the dashboard, such as Loja Centro
Estado (SEFAZ) (State)yesthe issuer's state code, such as BA; picks the SEFAZ that authorizes and goes in the invoice address. It cannot change after registration
CNPJyesthe issuer's CNPJ, numeric or alphanumeric (the format with letters that the Receita Federal issues since July 2026, such as 12.ABC.345/01DE-35); on the NFS-e, the issuer can be a CNPJ or a CPF (individual taxpayer ID)
Inscrição estadual (State registration)NFC-e onlystate registration; optional on the NF-e — without it the company issues NF-e only, as an IBS/CBS-only taxpayer, through SVRS (NF-e without state registration), and only with the CFOPs allowed to it (selling goods requires an IE). The NFS-e does not use it
Telefone do emitente (Issuer phone)nowith area code, 6 to 14 digits; printed in the issuer address on the invoice (enderEmit/fone). Otherwise: Telefone do emitente inválido: use de 6 a 14 dígitos (com DDD).
Razão social (Legal name)yeslegal name
Nome fantasia (Trade name)notrade name
Regime tributário (Tax regime)noSimples Nacional (default), Simples Nacional over the sublimit, Regime Normal (regular regime) or MEI (individual micro-entrepreneur). It must be the CNPJ's regime at Receita Federal: since Nov 16, 2026 SEFAZ checks it and rejects the invoice when it differs (rejection 180). It decides the items' ICMS and, for a MEI, the accepted CFOPs — see Issuer's tax regime
Regime de apuração do IBS/CBS (IBS/CBS assessment regime)nonext to the tax regime; almost always Não informar (Do not report) — see IBS and CBS
Addressnostreet, number, neighborhood, city and ZIP code (CEP)
Código IBGE do município (City IBGE code)yessuch as 2927408; on the NFS-e, it is the issuing municipality
A1 certificateyes.pfx or .p12 file
Certificate passwordyesthe file's password
CSC ID and CSC TokenNFC-e onlyidentifier and code of the CSC (taxpayer security code) generated on the state's SEFAZ portal; the NF-e and the NFS-e do not use it
Municipal registrationnoup to 15 characters. Required by most municipalities on the NFS-e; when filled in, it also goes on the issuer of the NF-e and the NFC-e (emit/IM)
Special tax regime, Simples Nacional option and assessment regimenoNFS-e only — see NFS-e

Register in the dashboard

Open Notas fiscais → Credenciais and create the credential with the name, the state, the company data and the address.

After creating it, the dashboard opens the credential's edit page. There you:

  1. upload the A1 certificate (.pfx or .p12);
  2. enter the certificate password;
  3. fill in the CSC ID and CSC Token, for the NFC-e;
  4. adjust the series and next number of each invoice type;
  5. copy the API Key.

The certificate's validity is not typed in: it is read from the file itself, with the password you entered. The list and the edit page show the holder and the expiration date, and warn when the certificate expires within 30 days or has expired. If the password does not open the file, the dashboard shows Senha do certificado inválida. (invalid certificate password) instead of the validity.

IBS and CBS (the tax reform)

The fiscal credential holds what is fixed — what the company is: identity, certificate, registrations and the regimes (the tax regime and the IBS/CBS assessment regime). What is variable — what each invoice has: the item classification (CST and cClassTrib), the Simples activity and the effective Simples rates — is not stored on the credential, because it changes: a company may have two business lines taxed differently, and the effective Simples rate changes with revenue.

IBS/CBS assessment regime

The Regime de apuração do IBS/CBS (IBS/CBS assessment regime) field sits next to Regime tributário (Tax regime). It almost always stays blank (Não informar, Do not report): fill it in only if your accountant asks. It goes on the invoice (NF-e and NFC-e) as tpRegimeIBSCBS, after the issuer's tax regime.

ValueFor whom
Não informar (Do not report)the common case
1 — Simples Nacional with the regular IBS/CBS regimeonly Simples Nacional (with or without the sublimit excess) that opted for the regular IBS/CBS regime
2, 3, 4 — pending Simples optiononly Regime Normal (regular regime) with a pending Simples Nacional option

The dashboard only offers the values the chosen tax regime accepts; a MEI does not have this field. A value that does not match the tax regime answers Regime de apuração do IBS/CBS (ibsCbsRegime) não combina com o regime tributário… and nothing is saved — when you change the tax regime, change or clear this field with it. Before SEFAZ accepts the Simples fields in an environment (production: Dec 14, 2026), the invoice goes out without it.

What goes on each invoice

Where you issueWhere to state IBS/CBS
The API and the dashboard's Emitir nota fiscal (Issue invoice) pageon each invoice: options (applies to the whole invoice) and, when needed, on the item — see Issue an NF-e → IBS and CBS and Issue an NFC-e → IBS and CBS
The POS (the NFC-e is issued by itself)on the terminal — see Terminals → IBS and CBS; a product's exception lives on the product

The credential's tax regime decides who has to state it: a MEI never does; Simples Nacional only from when SEFAZ accepts the fields; the regular regime already has the legal obligation; and an issuer without a state registration always carries the group. The issue page and the terminal page show the fields only to whoever needs them.

ICMS, PIS/COFINS and approximate taxes

The credential holds what the company is (identity, certificate, registrations, regimes). What changes from one sale to the next does not live on it: an item's ICMS code (CSOSN or CST), the tax benefit code (cBenef), the PIS and COFINS CST and the approximate taxes of Lei 12.741 come on each invoice.

Where you issueWhere to state it
The API and the dashboard's Emitir nota fiscal (Issue invoice) pageon the item — see Issue an NF-e → Item taxes and Issue an NFC-e → Item taxes
The POS (the NFC-e is issued by itself)the store default on the terminal; a product's exception on the product

With nothing stated, the item goes out with the default of the credential's tax regime: CSOSN 102 for Simples Nacional (for a MEI, 102 or 900 depending on the CFOP), CST 00 at 18% (another rate comes on the item, icmsRate) for Simples over the sublimit and the regular regime, PIS/COFINS 07. On an export (CFOP 7xxx), CSOSN 300 / CST 41.

NFS-e

To issue the NFS-e, the credential needs the issuer's CNPJ or CPF, the A1 certificate with its password, the state and the city's IBGE code. The legal name stays required, as for every invoice type. The state registration and the CSC are not used. These fields, on the NFS-e card, exist only for it:

FieldRequiredValues
Inscrição municipal (Municipal registration)noup to 15 characters; fill it in only if the municipality requires it on the NFS-e
Regime especial de tributação (Special tax regime)nonone (default), cooperative act, estimate, municipal micro-company, notary or registrar, self-employed professional, professional partnership or other
Opção pelo Simples Nacional (Simples Nacional option)noautomatic (default): taken from the credential's tax regime (Simples Nacional = ME/EPP, MEI = MEI, regular regime = not in Simples); or not in Simples, MEI, or ME/EPP, when the NFS-e needs an option different from the NF-e regime
Regime de apuração do Simples Nacional (Simples Nacional assessment regime)noonly when the option is ME/EPP: federal and municipal taxes through Simples Nacional (default); federal taxes through Simples and ISSQN outside it, through the NFS-e; or federal and municipal taxes outside Simples

Numbering

The credential keeps one counter per invoice type and per environment — series and next number:

TypeProductionHomologation
NFC-e (type NFCE)series (default 8) and next numberseries and next number
NF-e (type NFE)series (default 1) and next numberseries and next number
NFS-e (type NFSE)series (default 1) and next numberseries and next number

On the NFC-e and the NF-e, the series goes from 1 to 889 (890 to 899 belong to the tax authority's standalone invoice and 900 to 999 to contingency); outside that the dashboard answers Série da NFC-e inválida… or Série da NF-e inválida…. A new series applies to the next invoices. On the NFS-e, the series goes from 1 to 49999 and the next number has up to 15 digits (1 to 999999999999999); outside that the dashboard answers Série da NFS-e inválida (counters[0].series): use um número inteiro de 1 a 49999. or counters[0].nextNumber deve ser um número inteiro de 1 a 999999999999999.

Each issuance uses the counter of its type and environment. The counter goes up by 1 when SEFAZ processes the invoice, authorized or rejected. An issuance that fails before being sent, or that SEFAZ says it never registered, does not use a number. On the NFS-e, a rejected invoice does not use one either: the next invoice takes the same number. Closing a pending NFS-e manually in the dashboard, however, does use it.

Issuing an NF-e never changes the NFC-e sequence, and homologation never changes production. Simultaneous issuances with the same credential and type are queued, one at a time, and never repeat a number. If the company has already issued invoices with another system, adjust the series and the next number on the credential's edit page before the first issuance.

API Key

Each credential gets an API Key when it is created. It shows on the credential's edit page, under API Key. Send it in the X-Credential-Key header to choose which credential the request works with:

HeaderValue
AuthorizationBearer <token> — the organization's API token (Authentication)
X-Credential-Keythe fiscal credential's API Key

The API Key does not replace the token. It only selects the credential and works only with a token of the same organization. When the credential is deleted, the key stops being accepted. Issuing (NFC-e, NF-e, NFS-e) and the SEFAZ status require the header; the invoice list accepts it to filter by credential.

Test the connection

On the credential's edit page, Testar SEFAZ (Test SEFAZ) checks the state's SEFAZ service, in homologation, with the credential's certificate. The result shows on screen and is stored as Ativo (Active — SEFAZ answered that the service is running) or Inativo (Inactive — no answer, or the certificate did not open). Issuing does not depend on this flag. Through the API, the same service is checked with GET /v1/fiscal-invoices/sefaz-status.

Testar conexão (NFS-e) (Test connection) asks the national system for the agreement of the issuer's municipality, and the message says whether the municipality accepts the national issuer.

Errors

Missing credential data shows up when issuing the invoice, not when saving the credential:

StatusResponseFix
400Informe a chave da credencial fiscal no cabeçalho X-Credential-Key.Send the header with the API Key on the issuance routes
400Credencial fiscal não encontrada para o X-Credential-Key informado.Use the API Key of a credential of the token's organization
400Configure o CNPJ do emitente na credencial fiscal.Fill in the CNPJ
400NFC-e exige a inscrição estadual do emitente. Sem IE, emita NF-e.Fill in the state registration (or issue an NF-e)
400Configure a razão social do emitente na credencial fiscal.Fill in the legal name
400Envie o certificado digital A1 (PFX) da credencial fiscal.Upload the A1 certificate
400Configure a senha do certificado digital da credencial fiscal.Enter the certificate password
400Configure o código IBGE do município do emitente na credencial fiscal.Fill in the city's IBGE code
400Configure o CSC (ID e token) da credencial fiscal: ele assina o QR Code da NFC-e.Fill in the CSC ID and CSC Token to issue NFC-e

Fiscal error messages are in Portuguese.

The 400 errors come as { "success": false, "message": "…" }.

Missing something on this page? Contact support from the dashboard and we'll update the docs.