> ## 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.

# Alterdata as a data source

> Bring data from Alterdata eContador to Nekt.

Alterdata eContador is a cloud-based accounting management platform used by accounting firms in Brazil. It provides modules for HR/payroll (DP), document management, certifications (CND), task tracking, and customer service, enabling seamless integration between accountants and their clients.

## Configuring Alterdata 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 Alterdata option from the list of connectors.

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

### 1. Add account access

You'll need to provide your Alterdata eContador API credentials. The following configurations are available:

* **API Key**: Your Bearer token for the Alterdata eContador API. This is a JWT token generated in eContador under Configuracoes > ePlugin > Gerar.

* **Start Date**: (Optional) The earliest date from which records will be synced for incremental streams.

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.

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), consider how often you want data to be extracted from this source. This decision usually depends on how frequently you need the new table data updated (every day, once a week, or only at specific times).

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)**. This will complement the incremental data extractions, ensuring that your data is completely synchronized with your source every once in a while.

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.</Warning>

# Streams and Fields

Below you'll find all available data streams from Alterdata eContador and their corresponding fields:

<AccordionGroup>
  <Accordion title="Empresas (Companies)">
    Companies registered in the DP (HR/Payroll) module.

    **Key Fields:**

    * `id` - Internal company identifier
    * `nome` - Company name
    * `cpfcnpj` - CPF or CNPJ number
    * `endereco` - Address
    * `externoid` - External identifier code
    * `ativa` - Whether the company is active
    * `tipoMovimentoPermitido` - Allowed movement types
    * `controlaTransferenciaTomadores` - Whether contractor transfers are controlled

    **Sync Type:** Full Table
  </Accordion>

  <Accordion title="Funcionarios (Employees)">
    Employees registered in the DP module. Supports incremental sync.

    **Key Fields:**

    * `id` - Internal employee identifier
    * `codigo` - Employee code
    * `nome` - Full name
    * `cpf` - CPF number
    * `email` - Email address
    * `status` - Employment status (e.g., Ativo)

    **Personal Information:**

    * `nascimento` - Date of birth
    * `telefone` - Phone number
    * `telefonecelular` - Mobile phone
    * `identidade` - ID document number
    * `orgaoemissor` - ID issuing authority

    **Employment Details:**

    * `admissao` - Admission date
    * `demissao` - Termination date
    * `retorno` - Return date
    * `nomefuncao` - Job function name
    * `salarioBase` - Base salary
    * `afastamento` - Leave status
    * `afastamentodescricao` - Leave description
    * `matriculaESocial` - eSocial registration number

    **Address:**

    * `rua` - Street
    * `numero` - Number
    * `complemento` - Address complement
    * `bairro` - Neighborhood
    * `cidade` - City
    * `cep` - ZIP code

    **Banking:**

    * `banco` - Bank code
    * `nomeDoBanco` - Bank name
    * `agencia` - Branch number
    * `conta` - Account number
    * `chavePix` - PIX key
    * `pis` - PIS number

    **Work Documents:**

    * `carteiradetrabalho` - Work card number
    * `serie` - Work card series
    * `dataemissaocarteiradetrabalho` - Work card issue date
    * `datavencimentocontratoexperiencia` - Experience contract expiration
    * `dataprorrogacaocontratoexperiencia` - Experience contract extension

    **Schedule:**

    * `horarios` - Work schedule (JSON with entry, lunch, exit times and weekly rest days)

    **Metadata:**

    * `externoid` - External identifier
    * `dataAtualizacao` - Last update timestamp (replication key)

    **Sync Type:** Incremental (via `dataAtualizacao`)
  </Accordion>

  <Accordion title="Documentos (Documents)">
    Documents shared through the eContador document module. Fetched per company. Supports incremental sync.

    **Key Fields:**

    * `id` - Document identifier
    * `titulo` - Document title
    * `descricao` - Description
    * `categoria` - Category name
    * `valor` - Monetary value
    * `status` - Document status (e.g., Recebido)
    * `pago` - Whether the document has been paid
    * `empresaId` - Company CNPJ
    * `departamento` - Department

    **Dates:**

    * `criacao` - Creation date (replication key)
    * `vencimento` - Due date
    * `pagamento` - Payment date
    * `expiracao` - Expiration date

    **Sync Type:** Incremental (via `criacao`)
  </Accordion>

  <Accordion title="Categoria Documento (Document Categories)">
    Document categories available in the eContador platform. Fetched per user.

    **Key Fields:**

    * `id` - Category identifier
    * `descricao` - Category description
    * `personalizada` - Whether it is a custom category
    * `pagavel` - Whether documents in this category are payable
    * `login` - Associated user login

    **Sync Type:** Full Table
  </Accordion>

  <Accordion title="Certidoes (Certifications)">
    CND (Certidao Negativa de Debito) certifications. Fetched per company. Supports incremental sync.

    **Key Fields:**

    * `id` - Certification identifier
    * `empresaId` - Company CNPJ
    * `abrangencia` - Scope/coverage
    * `mimeType` - File MIME type
    * `emissao` - Issue date (replication key)
    * `vencimento` - Expiration date
    * `status` - Certification status
    * `tipoCertidaoId` - Reference to certification type

    **Sync Type:** Incremental (via `emissao`)
  </Accordion>

  <Accordion title="Tipo Certidao (Certification Types)">
    Reference table of certification types.

    **Key Fields:**

    * `id` - Type identifier
    * `nome` - Type name

    **Sync Type:** Full Table
  </Accordion>

  <Accordion title="Usuarios (Users)">
    Users registered in the eContador identification module.

    **Key Fields:**

    * `id` - User identifier (CPF/CNPJ)
    * `nome` - Full name
    * `email` - Email address
    * `telefone` - Phone number

    **Sync Type:** Full Table
  </Accordion>
</AccordionGroup>
