<!-- Canonical: https://www.ezdis.net/en/manual/1.0/config/focusnfe | Language: en -->

# Focus NFe configuration (Brazil)

This guide explains how to connect your **Focus NFe** account to issue NF-e and NFC-e directly from EzDIS, with automatic submission to SEFAZ.

## 1. What you need

- Active company with a **CNPJ** in good standing with the Receita Federal.
- Active **Inscricao Estadual** and a digital certificate (A1 or A3) configured in Focus NFe.
- A [Focus NFe](https://focusnfe.com.br) account. Registration is done on their site; EzDIS acts as the integrator.
- Your Focus NFe **API token**.

## 2. Where to find your token in Focus NFe

1. Log in at [app.focusnfe.com.br](https://app.focusnfe.com.br).
2. Click on your company name in the top menu, then **Minha conta** or **Tokens de acesso**.
3. Copy the generated token (alphanumeric string).

> Register your company in Focus NFe before configuring EzDIS. Focus NFe requires a valid digital certificate to issue documents accepted by SEFAZ.

## 3. Configure in EzDIS

Go to **Configuration → Invoicing** and fill in the **Focus NFe** block.

### Required fields

| Field | Description |
|---|---|
| **Enable Focus NFe** | Toggle to enable document issuance. |
| **Environment** | Use **Homologacao** for testing, **Producao** for real issuance. |
| **Focus NFe token** | Token copied in the previous step. |
| **CNPJ emissor** | CNPJ of the distribution company (numbers only, 14 digits). |
| **Inscricao Estadual** | State registration number (numbers only). |
| **Tax regime** | `1` = Simples Nacional, `2` = Simples Nacional over threshold, `3` = Normal regime. |

### Fields for NF-e (product sale — B2B)

| Field | Description |
|---|---|
| **IBGE municipality code** | IBGE code of the municipality (e.g. `3550308` for Sao Paulo). Check at [ibge.gov.br](https://www.ibge.gov.br/explica/codigos-dos-municipios.php). |
| **CFOP** | Tax operation code. Intrastate sale: `5102`; interstate: `6102`. Confirm with your accountant. |
| **NCM code** | NCM code of the distributed products. Enter the most representative code. |
| **ICMS tax situation** | ICMS taxation code (e.g. `102` for Simples without credit). |
| **PIS tax situation** | PIS taxation code (e.g. `07` for exempt operation). |
| **COFINS tax situation** | COFINS taxation code (e.g. `07` for exempt operation). |
| **Freight modality** | `0` = issuer pays, `1` = recipient pays, `9` = no freight. |

### Fields for NFC-e (counter sale — B2C)

| Field | Description |
|---|---|
| **NFC-e payment method** | Payment method code: `01` = cash, `03` = credit card, `04` = debit, `99` = other. |

## 4. Test before going live

Checklist before switching to production:
- [ ] Issued at least one NF-e in homologacao without errors.
- [ ] CNPJ and company name appear correctly on the DANFE.
- [ ] CFOP and NCM confirmed with the accountant.
- [ ] Valid digital certificate in Focus NFe.

## Frequently asked questions

- **Do I need a different NCM for each product?**  
  EzDIS sends the globally configured NCM for all line items. Use the most representative code for your catalog.

- **What CFOP should I use for interstate sales?**  
  Use `6102` for sales to clients outside your state. Confirm with your accountant.

- **Does EzDIS charge extra for the integration?**  
  No. EzDIS acts as a free technical integrator. The cost is the Focus NFe issuance plan.
