> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nekt.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SimplISS (NFS-e) as a data source

> Bring your accounting office's clients and the NFS-e each client issued, from a municipal SimplISS portal such as Blumenau's, to Nekt, and optionally store the monthly PDF reports in a volume.

SimplISS is the NFS-e (service invoice) portal used by Blumenau (SC) and other Brazilian municipalities. This connector signs in to the portal as an **accounting office** and reads the office's clients and, for each client and month, the **NFS-e Emitidas** report: the same report you open under *Relatórios › NFS-e Emitidas*, one row per invoice. Optionally it also stores the printed version of that report (PDF) for each client and month in a Nekt volume, so a destination such as Google Drive (Volume Files) can copy the files to a folder.

> [!NOTE]
>
> The connector only reads. It never closes periods, generates tax guides, issues or cancels invoices, or imports RPS batches.

## Configuring SimplISS as a Source

In the [Sources](https://app.nekt.ai/sources) tab, click on the "Add source" button located on the top right of your screen. Then, select the SimplISS option from the list of connectors.

Click **Next** and you'll be prompted to add your access.

### 1. Add account access

The connector uses the accounting office's own login on the portal, with the **Contador** (accountant) profile: the CNPJ or CPF and the password you use to sign in at the portal.

**1. Check the login in the browser**

Sign in once at your municipality's portal (Blumenau: [nfse.blumenau.sc.gov.br/contrib](https://nfse.blumenau.sc.gov.br/contrib)) and check that you can choose the **Contador** access and see your clients. If the portal asks for a captcha, answer it there: the connector cannot, and stops when the portal asks for one.

**2. Fill in the source**

Enter the portal address, the login and the password below. While a sync runs, avoid using the same login in the browser.

The following configurations are available:

* **Portal URL**: Address of your municipality's SimplISS portal, up to the application folder (the part before `/Account/Login`). Blumenau, the default: `https://nfse.blumenau.sc.gov.br/contrib`.
* **Username (CNPJ/CPF)**: The accounting office's login on the portal.
* **Password**: The password of that login.
* **Start month**: First month (competência) read on the first sync. Only its month and year are used.
* **Client CNPJs** (optional): Read invoices and reports only for these clients. Empty reads every client of the office. The client list table is always complete. Useful to test with one client first.
* **Store the PDF reports** (default off): Adds the table of monthly PDF reports, stored in a Nekt volume.
* **Volume for the PDF reports**: The Nekt volume the PDFs go to. Required when the PDF reports are on.
* **Months to re-read** (advanced, default 2): Closed months read again on every sync, because invoices are cancelled or replaced after the month ends. With 2, a sync in December reads October and November again.
* **Include the current month** (advanced, default off): Also read the month in progress. Its data is partial until the month ends, and it is read again once closed.

Once you're done, click **Next**.

### 2. Select streams

Choose which data streams you want to sync. For faster extractions, select only the streams that are relevant to your analysis. You can select entire groups of streams or pick specific ones.

> Tip: The stream can be found more easily by typing its name.

Select the streams and click **Next**.

### 3. Configure data streams

Customize how you want your data to appear in your catalog. Select the desired layer where the data will be placed, a folder to organize it inside the layer, a name for each table (which will effectively contain the fetched data) and the type of sync.

* **Layer**: choose between the existing layers on your catalog. This is where you will find your new extracted tables as the extraction runs successfully.
* **Folder**: a folder can be created inside the selected layer to group all tables being created from this new data source.
* **Table name**: we suggest a name, but feel free to customize it. You have the option to add a **prefix** to all tables at once and make this process faster!
* **Sync Type**: you can choose between INCREMENTAL and FULL\_TABLE.
  * Incremental: every time the extraction happens, we'll get only the new data, which is good if, for example, you want to keep every record ever fetched.
  * Full table: every time the extraction happens, we'll get the current state of the data, which is good if, for example, you don't want to have deleted data in your catalog.

> [!TIP]
>
> Keep **NFS-e Emitidas** and the PDF reports as **Incremental**: each sync then reads only the new months plus the months to re-read. As Full table, every sync reads every client's every month since the start month.

Once you are done configuring, click **Next**.

### 4. Configure data source

Describe your data source for easy identification within your organization, not exceeding 140 characters.

To define your [Trigger](https://docs.nekt.com/runs/scheduling-and-triggers.md), consider how often you want data to be extracted from this source. The connector works by month, so a **daily** sync is enough.

Optionally, you can define some additional settings:

* Configure Delta Log Retention and determine for how long we should store old states of this table as it gets updated. Read more about this resource [here](https://docs.nekt.com/get-started/core-concepts/resource-control).
* Determine when to execute an **Additional [Full Sync](https://docs.nekt.com/get-started/core-concepts/types-of-sync#additional-full-sync)**. A full sync reads every client again from the start month. Use it after moving the start month earlier, or to refresh months older than **Months to re-read**.

Once you are ready, click **Next** to finalize the setup.

### 5. Check your new source

You can view your new source on the [Sources](https://app.nekt.ai/sources) page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.

> [!WARNING]
>
> For you to be able to see it on your [Catalog](https://app.nekt.ai/catalog), you need at least one successful source run.

> [!NOTE]
>
> The portal has no API: the connector reads the same pages you use, one client at a time, with one report query per client, month and format (spreadsheet and, when on, PDF). A first sync of about 70 clients over 12 months makes a few thousand requests and can take an hour or more; daily syncs after it are much shorter.

> [!WARNING]
>
> If a month of a client cannot be read, that client stops at that month for this sync and the others go on. The **NFS-e Emitidas** (or PDF) table is marked as failed in the run, and the run log names the clients and the month each one stopped at; they are read from that month on the next sync, while the other clients' progress is saved client by client. If the portal stops answering for five clients in a row, the table stops for this sync and is picked up on the next one. A refused password or a captcha stops the sync before any table changes: fix the login in the source settings, sign in once in the browser, and run again. The connector never retries a refused sign-in, so the account is not locked.

> [!TIP]
>
> For an office with many clients, the first sync is the longest (every client from the start month). You can make it with a few clients in **Client CNPJs** and add the others later; they are read from the start month by the following syncs.

## Fields by stream

> [accordion] Contribuintes (clients)
>
> The accounting office's clients, as the portal lists them under the Contador access.
>
> Table: `contribuintes` · Primary key: `cnpj`, `inscricao_municipal` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `cnpj` | String | Client's CNPJ (or CPF), digits only. |
> | `inscricao_municipal` | String | Client's municipal registration. |
> | `cnpj_formatado` | String | Client's CNPJ (or CPF) as the portal shows it. |
> | `inscricao_estadual` | String | Client's state registration, when the portal has one. |
> | `razao_social` | String | Client's legal name. |
> | `status` | String | Registration status in the municipality, e.g. `ATIVO/NORMAL`. |
> | `regime_tributacao` | String | Client's tax regime. |

> [accordion] NFS-e Emitidas (issued invoices)
>
> One row per invoice in each client's monthly **NFS-e Emitidas** report, for the whole month, with invoices from both the municipal issuer and the Emissor Nacional (Blumenau's only issuer since August 1, 2026), and every tax guide status. A cancelled invoice moves to the `NOTAS FISCAIS CANCELADAS` section with status `CANCELADA`, and its row is updated (same key) when its month is read again.
>
> Table: `nfse_emitidas` · Primary key: `cnpj_prestador`, `inscricao_municipal`, `numero`, `data_emissao` · Sync: Incremental (`competencia`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `cnpj_prestador` | String | CNPJ (or CPF) of the client that issued the invoice, digits only. |
> | `inscricao_municipal` | String | Municipal registration of that client. |
> | `razao_social_prestador` | String | Legal name of that client, as printed on the report. |
> | `competencia` | Date | First day of the month the report was asked for (the portal's report period, first to last day of the month). |
> | `periodo_inicio` | Date | First day of the report's period. |
> | `periodo_fim` | Date | Last day of the report's period. |
> | `secao` | String | Report section the invoice is under, e.g. `NOTAS FISCAIS NÃO RETIDAS`, `OUTRAS FORMAS DE RECOLHIMENTO` or `NOTAS FISCAIS CANCELADAS`. |
> | `numero` | String | Invoice number (Nº). |
> | `data_emissao` | Date | Issue date (Dt. Emissão). |
> | `atividade` | String | Service activity code (Ativ.), e.g. `17.06`. |
> | `cnpj_tomador` | String | CNPJ or CPF of the service taker. |
> | `tomador` | String | Name of the service taker. |
> | `valor_nf` | Number | Invoice amount (Vl. NF.), in BRL. |
> | `valor_deducao` | Number | Deductions (Vl. Ded.), in BRL. |
> | `valor_base` | Number | ISSQN tax base (Vl. Base), in BRL. |
> | `aliquota` | Number | ISSQN rate (Alíq), in percent. |
> | `valor_issqn` | Number | ISSQN amount (Vl.ISSQN), in BRL. |
> | `retido` | String | Whether the ISSQN was withheld by the taker: `SIM` or `NÃO`. |
> | `status` | String | Invoice status, e.g. `NORMAL` or `CANCELADA`. |
> | `local_recolhimento` | String | Municipality where the ISSQN is due. |
> | `verificado` | String | Whether the invoice was verified: `SIM` or `NÃO`. |
> | `colunas_extras` | String | Columns of the report the connector does not know yet, by their printed title (JSON). Usually empty. |

> [accordion] Relatório NFS-e Emitidas (PDF)
>
> Only when **Store the PDF reports** is on. For each client and month, the printed **NFS-e Emitidas** report (the portal's *Imprimir* button) is stored as a PDF in the chosen volume, named `<YYYY-MM> - <CNPJ> - IM <municipal registration> - <Legal name> - NFS-e Emitidas.pdf`. The same client and month always get the same name, so a month read again replaces its file. A month with no invoice still gets its (empty) report. If a client's legal name changes, its next files get the new name.
>
> Table: `relatorio_nfse_emitidas_pdf` · Primary key: `cnpj_prestador`, `inscricao_municipal`, `competencia` · Sync: Incremental (`competencia`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `cnpj_prestador` | String | CNPJ (or CPF) of the client, digits only. |
> | `inscricao_municipal` | String | Municipal registration of the client. |
> | `razao_social_prestador` | String | Legal name of the client, from the client list. |
> | `competencia` | Date | First day of the month the report covers. |
> | `periodo_inicio` | Date | First day of the report's period. |
> | `periodo_fim` | Date | Last day of the report's period. |
> | `_nekt_file_name` | String | Name of the file in the volume. |
> | `_nekt_file_size` | Integer | Size of the file, in bytes. |
> | `_nekt_mime_type` | String | Type of the file (`application/pdf`). |
> | `_nekt_file_id` | String | Identifier of the file in the Nekt volume. |
> | `_nekt_uploaded_at` | Datetime | When the file was stored. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.