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

# Pontotel as a data source

> Bring your Pontotel time clock data to Nekt: employees, punches, schedules, absences, vacations and monthly timesheet results.

Pontotel is a Brazilian time clock and workforce journey management platform (ponto eletrônico). This connector reads your Pontotel account through the Pontotel API (v4) and brings your organization (employers, work locations, employees and users), the journey setup (schedules, shifts, schedule history, rules and holidays), every punch, the planned journey of each employee on each day, absences and time off (leaves, justified absences, vacations and on-call periods) and the monthly timesheet results by pay item, including the hour bank.

> [!NOTE]
>
> The connector only reads data. It never creates, changes or deletes anything in Pontotel.

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

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

### 1. Add account access

The connector signs in with a Pontotel **API user** (an e-mail and a password). API users are not regular Pontotel logins: Pontotel creates them for accounts that have the Public APIs module.

**1. Request an API user**

Ask Pontotel support ([suporte@pontotel.com.br](mailto:suporte@pontotel.com.br)) for a **production** API user for your account, dedicated to Nekt. If your plan does not include the Public APIs module, Pontotel's sales team can enable it.

**2. Check what the API user can see**

Make sure the API user can read every company and work location you want in Nekt. A table the API user is not allowed to read is skipped (see below) and the others keep syncing.

**3. Fill in the form**

Paste the API user's e-mail and password in the source form.

The following configurations are available:

* **API User E-mail** and **API User Password**: the credentials of the Pontotel API user.
* **Start Date**: Earliest date synced to the **Punches**, **Schedule history**, **Daily journeys** and **Monthly results** tables on the first sync and on full syncs. The other tables are always read in full.
* **Environment** (advanced): keep **production**. Use **sandbox** only with an API user of Pontotel's test environment.
* **Lookback Days** (advanced, default 62): every sync reads again this many days of punches, daily journeys and schedule history before the last synced one, so punches adjusted or voided afterwards are updated. The default covers a timesheet closed in the following month; older changes are brought by a monthly Additional Full Sync (see below).
* **Monthly Results Lookback (months)** (advanced, default 2): every sync reads again this many months of monthly results before the last synced month, while timesheets are still open.
* **Include Legacy (Portaria 1510) Punches** (advanced, default off): also reads punches made in Pontotel's old app under Portaria 1510. Turn it on only if your employees used that app; it makes the punch search slower.
* **Max Requests per Hour** (advanced, default 450): how many requests per hour the connector allows itself. Pontotel allows 500 per hour per API user; keep some room if the same API user serves other integrations.

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.md), 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.

## How the data is read

* **Punches** are read **one day per request** (plus one request for every extra 1,000 punches in a day), because Pontotel limits a punch search to one day. Pontotel allows 500 requests per hour, so a first sync with a start date one year back takes about 1 hour for up to \~1,000 punches a day (about 250 employees punching four times a day) and about 2 hours for 2,000 punches a day. Keep the start date within a year. Later syncs read only the last **Lookback Days**: about 5 minutes for 500 employees, but about 1 hour 20 minutes for 2,000 employees, so at that size do not schedule the source to run every hour.
* After reading the recent days, every sync also looks for punches **created** since the previous sync, whatever their date, so a punch included by hand for an older day is brought too.
* A punch **voided** more than **Lookback Days** after it was made is not seen by the regular syncs. Schedule a monthly **Additional Full Sync** of this source to keep old punches up to date.
* **Schedule history** is read from the start date on the first sync and from **Lookback Days** before the last change on later syncs.
* **Daily journeys** are read seven days per request and **Monthly results** one month per request. Every day of every active employee gets a row, also on days without journeys (an empty list), so a journey removed in Pontotel disappears from the table. Employees that Pontotel leaves out of a whole week (during a leave, or after a dismissal registered late, for example) are taken from the employee list; this needs the API user to be able to read employees. On those empty days, the employer, work location and schedule columns show the employee's current ones.
* Every other table is read in full on every sync (up to 1,000 records per request). Where Pontotel offers it, removed records are kept with `deletado` = true, so removals reach your tables; the justified absences, absence reasons, vacation accrual periods, user groups and cost centers tables have no such flag, so a record removed there disappears from the table.
* A reference to another record (an employee's employer, work location or schedule) arrives as two columns: `<name>_id`, with the referenced record's id, and `<name>`, with what Pontotel sent about it (JSON). Nested values are JSON text. Every table also keeps `raw_payload`, the whole record as Pontotel sent it. Dates and times are stored in UTC; the punch time on the employee's local clock is also kept as text in `horario_da_batida_no_horario_local`, together with its offset in `offset_no_fuso_do_horario_local`.
* If Pontotel sends a value in a format a column does not expect, the column is left empty for that record, the original stays in `raw_payload`, and the run log says which column and how many values.
* Before reading, the connector checks every selected table with one small request. A table the API user is not allowed to read (or that Pontotel does not answer) is skipped and reported in the run log, and the other tables keep syncing. Wrong credentials stop the run.

> [!NOTE]
>
> The employee's password to punch the clock, which Pontotel sends with the employee record, is never synced.

## Fields by stream

### Organization and people

> [accordion] Employers
>
> The companies (CNPJ or CPF) employees are registered under, removed ones included.
>
> Table: `empregadores` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the employer in Pontotel. |
> | `razao_social` | String | Legal name of the employer. |
> | `nome_fantasia` | String | Trade name of the employer. |
> | `codigo` | String | Customer-defined code of the employer (usually its code in the payroll system). |
> | `codigo_integracao_externa` | String | Technical code used to match the employer with external systems. |
> | `cnpj` | String | CNPJ of the employer, when it is a company. |
> | `cpf` | String | CPF of the employer, when it is a person. |
> | `cno_caepf` | String | CNO or CAEPF registration of the employer, when it has one. |
> | `numero_identificador` | String | Identification number of the employer outside Brazil. |
> | `numero_identificador_tipo` | String | Type of the identification number outside Brazil. |
> | `jurisdicao` | String | Country the identification belongs to (BR, AR...). |
> | `visivel` | Boolean | Whether the employer is visible in Pontotel. |
> | `criado_em` | Datetime | When the employer was created in Pontotel. |
> | `atualizado_em` | Datetime | When the employer was last updated in Pontotel. |
> | `removido_em` | Datetime | When the record was removed in Pontotel (empty while it is active). |
> | `deletado` | Boolean | Whether the record was removed (deleted records are included so removals reach the table). |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

> [accordion] Work locations
>
> Work locations (plants, stores, branches) with their address and virtual fence settings.
>
> Table: `locais` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the work location in Pontotel. |
> | `nome` | String | Name of the work location. |
> | `codigo` | String | Customer-defined code of the work location. |
> | `codigo_integracao_externa` | String | Technical code used to match the work location with external systems. |
> | `ativo` | Boolean | Whether the work location is active. |
> | `empregadores` | String (JSON) | Employers that use this work location (JSON list of ids or objects). |
> | `regra_de_calculo_id` | String | Identifier of the calculation rule applied by default at this work location. |
> | `regra_de_calculo` | String (JSON) | The calculation rule applied by default at this work location, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `estado` | String | State of the work location. |
> | `cidade` | String | City of the work location. |
> | `logradouro` | String | Street of the work location. |
> | `numero` | String | Street number of the work location. |
> | `complemento` | String | Address complement of the work location. |
> | `bairro` | String | Neighborhood of the work location. |
> | `cep` | String | Postal code (CEP) of the work location. |
> | `ddd` | String | Telephone area code (DDD) of the work location. |
> | `endereco_que_aparece_no_afd` | String | Address printed in the AFD (time clock source data file) for this location. |
> | `latitude` | String | Latitude of the work location (used by the virtual fence). |
> | `longitude` | String | Longitude of the work location (used by the virtual fence). |
> | `distancia_maxima_cerca_virtual` | String | Maximum distance from the location accepted by the virtual fence. |
> | `sobreaviso` | Boolean | Whether on-call (sobreaviso) periods are enabled at this location. |
> | `sincronizar_com_repp` | Boolean | Whether the location is synchronized with the REP-P (Pontotel's electronic time clock). |
> | `aparece_no_acompanhamento` | Boolean | Whether the location appears in the daily attendance follow-up. |
> | `aceitar_timezone_do_coletor` | Boolean | Whether punches at this location take the time zone of the device that collected them. |
> | `visivel` | Boolean | Whether the location is visible (deprecated by Pontotel). |
> | `criado_em` | Datetime | When the record was created in Pontotel. |
> | `ultima_modificacao_em` | Datetime | When the record was last modified in Pontotel. |
> | `removido_em` | Datetime | When the record was removed in Pontotel (empty while it is active). |
> | `deletado` | Boolean | Whether the record was removed (deleted records are included so removals reach the table). |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

> [accordion] Employees
>
> Every employee, including dismissed and removed ones. The employee's password to punch the clock is never synced.
>
> Table: `empregados` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the employee in Pontotel. |
> | `nome` | String | Full name of the employee. |
> | `codigo_funcionario` | String | Employee code (registration number, usually the code in the payroll system). |
> | `codigo_integracao_externa` | String | Technical code used to match the employee with external systems. |
> | `cpf` | String | CPF of the employee. |
> | `rg` | String | RG (identity document) of the employee. |
> | `pis` | String | PIS number of the employee. |
> | `ctps` | String | CTPS (work card) number of the employee. |
> | `numero_identificador` | String | Identification number of the employee outside Brazil. |
> | `numero_identificador_tipo` | String | Type of the identification number outside Brazil. |
> | `jurisdicao` | String | Country the identification number belongs to (BR, AR...). |
> | `email` | String | E-mail of the employee. |
> | `login` | String | Login of the employee in Pontotel's apps. |
> | `nickname` | String | Nickname of the employee. |
> | `telefone` | String | Phone number of the employee. |
> | `celular` | String | Mobile phone number of the employee. |
> | `admissao` | Date | Hiring date of the employee. |
> | `demissao` | String | Dismissal of the employee, when dismissed (date, or JSON with the dismissal details as Pontotel sends them). |
> | `departamento` | String | Department of the employee. |
> | `funcao` | String | Job title of the employee. |
> | `empregador_id` | String | Identifier of the employer of the employee. |
> | `empregador` | String (JSON) | The employer of the employee, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `local_id` | String | Identifier of the work location of the employee. |
> | `local` | String (JSON) | The work location of the employee, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `escala_id` | String | Identifier of the work schedule (escala) of the employee. |
> | `escala` | String (JSON) | The work schedule (escala) of the employee, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `dia_inicial_escala` | Date | Date the employee's schedule cycle starts from. |
> | `fase_escala` | String | Phase of the employee within a rotating schedule. |
> | `regra_calculo_id` | String | Identifier of the calculation rule applied to the employee's timesheet. |
> | `regra_calculo` | String (JSON) | The calculation rule applied to the employee's timesheet, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `regra_banco_horas_id` | String | Identifier of the hour bank rule applied to the employee. |
> | `regra_banco_horas` | String (JSON) | The hour bank rule applied to the employee, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `data_de_inicio_do_banco_de_horas` | Date | Date the employee's hour bank starts. |
> | `dia_fechamento` | Integer | Day of the month the employee's timesheet closes. |
> | `usuario_lider_direto_id` | String | Identifier of the user who is the employee's direct manager. |
> | `usuario_lider_direto` | String (JSON) | The user who is the employee's direct manager, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `sobreaviso` | Boolean | Whether the employee may be put on call (sobreaviso). |
> | `tem_vr` | Boolean | Whether the employee receives meal vouchers (VR). |
> | `tem_vt` | Boolean | Whether the employee receives transport vouchers (VT). |
> | `eh_profissional_aloque` | Boolean | Whether the employee is an Aloque professional. |
> | `aplicacoes_de_ponto_autorizadas` | Array of strings | Apps the employee may punch the clock with. |
> | `momentos_cerca_virtual` | Array of strings | Moments of the journey that require the virtual fence (ENTRADA, PAUSA, RETORNO\_PAUSA, SAIDA). |
> | `pode_marcar_ponto_em_qualquer_local` | Boolean | Whether the employee may punch the clock at any location. |
> | `permitir_selecionar_local_do_ponto` | Boolean | Whether the employee may choose the location when punching. |
> | `ativar_reconhecimento_facial` | Boolean | Whether facial recognition is required when punching. |
> | `ativar_ponto_sequencial` | Boolean | Whether sequential punching is enabled (the moment is not chosen when punching). |
> | `preencher_pausa_automaticamente` | Boolean | Whether breaks are filled in automatically. |
> | `omitir_pontos_de_pausa_e_retorno` | Boolean | Whether break and return punches are omitted. |
> | `dupla_confirma_web` | Boolean | Whether web punches require a double confirmation. |
> | `gravar_foto_app` | Boolean | Whether the app takes a photo on each punch. |
> | `gravar_foto_web` | Boolean | Whether the web clock takes a photo on each punch. |
> | `mostrar_jornada_app` | Boolean | Whether the app shows the employee's journey. |
> | `mostrar_feedback_app` | Boolean | Whether the app shows feedback after a punch. |
> | `forcar_modal_de_requisicao_de_voz` | Boolean | Whether the app forces the voice request dialog (deprecated by Pontotel). |
> | `desativar_configuracao_de_fim_de_setor_abonado` | Boolean | Whether the end-of-sector allowance setting is turned off for the employee. |
> | `avisar_nao_cumprimento_interjornada` | Boolean | Whether the employee is warned when the rest between journeys (interjornada) is not respected. |
> | `sincronizar_com_repp` | Boolean | Whether the employee is synchronized with the REP-P time clock. |
> | `campos_customizados` | String (JSON) | Custom fields of the employee (JSON list). |
> | `campos_customizados_folha` | String (JSON) | Custom payroll fields of the employee (JSON list). |
> | `criado_em` | Datetime | When the record was created in Pontotel. |
> | `ultima_modificacao_em` | Datetime | When the record was last modified in Pontotel. |
> | `removido_em` | Datetime | When the record was removed in Pontotel (empty while it is active). |
> | `deletado` | Boolean | Whether the record was removed (deleted records are included so removals reach the table). |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

> [accordion] Users
>
> Users of Pontotel (HR, managers and employees with a login), with their permission profiles.
>
> Table: `usuarios` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the user in Pontotel. |
> | `nome` | String | Name of the user. |
> | `email` | String | E-mail (login) of the user. |
> | `codigo` | String | Customer-defined code of the user. |
> | `cpf` | String | CPF of the user. |
> | `ativo` | Boolean | Whether the user is active. |
> | `empregado_id` | String | Identifier of the employee linked to this user. |
> | `empregado` | String (JSON) | The employee linked to this user, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `permissao_id` | String | Identifier of the permission profile of the user in the web dashboard. |
> | `permissao` | String (JSON) | The permission profile of the user in the web dashboard, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `permissao_app_gestao_id` | String | Identifier of the permission profile of the user in the management app. |
> | `permissao_app_gestao` | String (JSON) | The permission profile of the user in the management app, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `permissao_pessoal` | String (JSON) | Personal permission of the user (JSON when Pontotel sends an object). |
> | `locais` | String (JSON) | Work locations the user may access (JSON list). |
> | `grupo` | String (JSON) | User groups the user belongs to (JSON list). |
> | `usuario_lider_direto_id` | String | Identifier of the user who is this user's direct manager. |
> | `usuario_lider_direto` | String (JSON) | The user who is this user's direct manager, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `acesso_por_lideranca` | Boolean | Whether the user's access follows the leadership hierarchy. |
> | `autenticacao_de_dois_fatores` | Boolean | Whether two-factor authentication is on for the user. |
> | `criado_em` | Datetime | When the record was created in Pontotel. |
> | `ultima_modificacao_em` | Datetime | When the record was last modified in Pontotel. |
> | `removido_em` | Datetime | When the record was removed in Pontotel (empty while it is active). |
> | `deletado` | Boolean | Whether the record was removed (deleted records are included so removals reach the table). |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

> [accordion] User groups
>
> User groups and the work locations they cover.
>
> Table: `grupos` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the user group. |
> | `codigo` | String | Customer-defined code of the user group. |
> | `nome` | String | Name of the user group. |
> | `grupos` | Array of strings | Identifiers of related user groups. |
> | `locais` | Array of strings | Identifiers of the work locations of the group. |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

> [accordion] Cost centers
>
> Cost centers.
>
> Table: `centros_de_custo` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the cost center. |
> | `codigo` | String | Customer-defined code of the cost center. |
> | `nome` | String | Name of the cost center. |
> | `descricao` | String | Description of the cost center. |
> | `ativo` | Boolean | Whether the cost center is active. |
> | `criado_em` | Datetime | When the cost center was created in Pontotel. |
> | `atualizado_em` | Datetime | When the cost center was last updated in Pontotel. |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

### Journeys and schedules

> [accordion] Schedules (escalas)
>
> Work schedules: the cycle of shifts and days off assigned to employees.
>
> Table: `escalas` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the schedule (escala). |
> | `nome` | String | Name of the schedule, e.g. 5x2 08:00-17:00. |
> | `codigo` | String | Customer-defined code of the schedule. |
> | `tipo_escala` | String | Type of schedule. |
> | `dias_de_trabalho` | String | Working days of the schedule cycle. |
> | `dias_de_folga` | String | Days off of the schedule cycle. |
> | `carga_horaria_mensal` | String | Monthly workload of the schedule. |
> | `jornadas` | String (JSON) | Shifts (jornadas) that make up the schedule cycle, in order (JSON list of ids or objects). |
> | `desativado` | Boolean | Whether the schedule is disabled. |
> | `criado_em` | Datetime | When the record was created in Pontotel. |
> | `ultima_modificacao_em` | Datetime | When the record was last modified in Pontotel. |
> | `removido_em` | Datetime | When the record was removed in Pontotel (empty while it is active). |
> | `deletado` | Boolean | Whether the record was removed (deleted records are included so removals reach the table). |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

> [accordion] Shifts (jornadas)
>
> Shift templates with planned entry, break, return and exit times.
>
> Table: `jornadas` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the shift (jornada). |
> | `codigo` | String | Customer-defined code of the shift. |
> | `nome` | String | Name of the shift. |
> | `eh_jornada_de_trabalho` | Boolean | Whether the shift is a working shift (false for days off). |
> | `entrada` | String | Planned entry time of the shift. |
> | `pausa` | String | Planned start of the break. |
> | `retorno` | String | Planned return from the break. |
> | `saida` | String | Planned exit time of the shift. |
> | `duracao_legal` | String | Legal duration of the shift. |
> | `tipo_pagamento` | String | How the shift is paid. |
> | `tem_presenca_obrigatoria` | Boolean | Whether presence is mandatory on this shift. |
> | `regra_de_calculo_id` | String | Identifier of the calculation rule of the shift. |
> | `regra_de_calculo` | String (JSON) | The calculation rule of the shift, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `criado_em` | Datetime | When the record was created in Pontotel. |
> | `ultima_modificacao_em` | Datetime | When the record was last modified in Pontotel. |
> | `removido_em` | Datetime | When the record was removed in Pontotel (empty while it is active). |
> | `deletado` | Boolean | Whether the record was removed (deleted records are included so removals reach the table). |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

> [accordion] Schedule history
>
> Every schedule change of every employee, with who made it and when the new schedule starts.
>
> Table: `historico_escalas` · Primary key: `id` · Sync: Incremental (`data_da_alteracao`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the schedule history entry. |
> | `empregado_id` | String | Identifier of the employee whose schedule changed. |
> | `empregado_nome` | String | Name of the employee whose schedule changed. |
> | `empregado_codigo` | String | Code of the employee whose schedule changed. |
> | `local_de_trabalho_id` | String | Identifier of the work location of the employee at the change. |
> | `escala_id` | String | Identifier of the schedule the employee moved to. |
> | `escala_nome` | String | Name of the schedule the employee moved to. |
> | `escala_codigo` | String | Code of the schedule the employee moved to. |
> | `data_inicial_da_escala` | Date | Date the new schedule starts for the employee. |
> | `data_da_alteracao` | Datetime | When the change was made, used as the incremental replication key. |
> | `usuario_que_alterou_id` | String | Identifier of the user who made the change. |
> | `usuario_que_alterou_nome` | String | Name of the user who made the change. |
> | `usuario_que_alterou_email` | String | E-mail of the user who made the change. |
> | `pode_ser_falso_positivo` | Boolean | Whether the entry may not be an actual schedule change (Pontotel's false-positive flag). |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

> [accordion] Daily journeys
>
> The planned journeys of each employee on each day: one row per employee and day, with the day's journeys in `jornadas` (an empty list on a day without journeys).
>
> Table: `jornadas_diarias` · Primary key: `empregado_id`, `data` · Sync: Incremental (`data`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empregado_id` | String | Identifier of the employee. |
> | `empregado` | String (JSON) | The employee, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `empregado_nome` | String | Name of the employee. |
> | `empregado_codigo` | String | Code of the employee. |
> | `empregador_id` | String | Identifier of the employer of the employee. |
> | `empregador` | String (JSON) | The employer of the employee, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `local_de_trabalho_id` | String | Identifier of the work location of the employee. |
> | `local_de_trabalho` | String (JSON) | The work location of the employee, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `escala_id` | String | Identifier of the schedule (escala) of the employee. |
> | `escala` | String (JSON) | The schedule (escala) of the employee, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `data` | Date | Day of the journeys, used as the incremental replication key. |
> | `jornadas` | String (JSON) | Journeys planned for the employee on this day, in Pontotel's order (JSON list; each with tipoDeJornada, horarioInicio, horarioPausa, horarioRetorno, horarioSaida, flagSobreaviso and sobreavisos); \[] when none. |
> | `quantidade_de_jornadas` | Integer | Number of journeys planned for the employee on this day. |
> | `tipo_de_jornada` | String | Type of the first journey of the day. |
> | `horario_inicio` | String | Planned start of the first journey of the day. |
> | `horario_pausa` | String | Planned start of the break of the first journey of the day. |
> | `horario_retorno` | String | Planned return from the break of the first journey of the day. |
> | `horario_saida` | String | Planned end of the last journey of the day. |
> | `flag_sobreaviso` | Boolean | Whether any journey of the day has on-call (sobreaviso) periods. |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

> [accordion] Calculation rules
>
> Timesheet calculation rules.
>
> Table: `regras_de_calculo` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the calculation rule. |
> | `nome` | String | Name of the calculation rule. |
> | `codigo` | String | Customer-defined code of the calculation rule. |
> | `criado_em` | Datetime | When the record was created in Pontotel. |
> | `ultima_modificacao_em` | Datetime | When the record was last modified in Pontotel. |
> | `deletado` | Boolean | Whether the record was removed (deleted records are included so removals reach the table). |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

> [accordion] Hour bank rules
>
> Hour bank rules.
>
> Table: `regras_banco_de_horas` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the hour bank rule. |
> | `nome` | String | Name of the hour bank rule. |
> | `codigo` | String | Customer-defined code of the hour bank rule. |
> | `criado_em` | Datetime | When the rule was created in Pontotel. |
> | `atualizado_em` | Datetime | When the rule was last updated in Pontotel. |
> | `deletado` | Boolean | Whether the record was removed (deleted records are included so removals reach the table). |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

> [accordion] Holidays
>
> Holidays registered in the account.
>
> Table: `feriados` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the holiday. |
> | `nome` | String | Name of the holiday. |
> | `data` | Date | Date of the holiday. |
> | `id_regiao` | String | Identifier of the region (country, state or city) the holiday applies to. |
> | `repete_anualmente` | Boolean | Whether the holiday repeats every year on the same date. |
> | `eh_dia_de_descanso` | Boolean | Whether the holiday is a rest day. |
> | `tipo_de_pagamento` | String | How work on the holiday is paid. |
> | `regra_de_calculo_id` | String | Identifier of the calculation rule the holiday is limited to, when it is. |
> | `criado_em` | Datetime | When the holiday was created in Pontotel. |
> | `modificado_em` | Datetime | When the holiday was last modified in Pontotel. |
> | `deletado` | Boolean | Whether the record was removed (deleted records are included so removals reach the table). |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

### Punches and timesheet results

> [accordion] Punches (pontos)
>
> Every punch of every employee, read one day at a time.
>
> Table: `pontos` · Primary key: `id` · Sync: Incremental (`horario_da_batida`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the punch. |
> | `momento` | String | Moment of the journey the punch marks (entry, break, return from break, exit). |
> | `horario_da_batida` | Datetime | Date and time of the punch, used as the incremental replication key. |
> | `horario_da_batida_no_horario_local` | String | Date and time of the punch on the employee's local clock, exactly as Pontotel sends it (ISO 8601 text with its offset; kept as text so the local wall-clock time is not converted to UTC). |
> | `offset_no_fuso_do_horario_local` | String | UTC offset of the employee's local time zone at the punch. |
> | `horario_da_batida_em_utc` | Datetime | Date and time of the punch in UTC. |
> | `empregado_id` | String | Identifier of the employee who punched. |
> | `empregado` | String (JSON) | The employee who punched, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `empregado_cpf` | String | CPF of the employee who punched. |
> | `empregado_codigo` | String | Code of the employee who punched. |
> | `empregado_nome` | String | Name of the employee who punched. |
> | `local_de_trabalho_id` | String | Identifier of the work location of the punch. |
> | `local_de_trabalho` | String (JSON) | The work location of the punch, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `fonte` | String | Source of the punch under Portaria 671: O (original, from a time clock), I (included by hand), P (pre-assigned), X (predefined time), T (other sources). |
> | `eh_ponto_manual` | Boolean | Whether the punch was included by hand (not punched by the employee). |
> | `eh_auto_completado` | Boolean | Whether the punch was filled in automatically. |
> | `eh_correcao_automatica` | Boolean | Whether the punch comes from an automatic correction. |
> | `processado` | Boolean | Whether the punch is already considered in the timesheet calculation. |
> | `nsr` | String | Sequential record number (NSR) of the punch in the time clock, when there is one. |
> | `imagem` | String | Link to the photo taken at the punch, when there is one. |
> | `identificador_unico_hasheado` | String | Hashed unique identifier of the punch (Portaria 671). |
> | `anulado` | Boolean | Whether the punch was voided (anulado). |
> | `localizacao` | String (JSON) | Location (latitude and longitude) where the punch was made (JSON). |
> | `coletor_id` | String | Identifier of the device or app (coletor) that collected the punch. |
> | `coletor` | String (JSON) | The device or app (coletor) that collected the punch, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `informacoes_extras` | String (JSON) | Every extra detail Pontotel sends about the punch (JSON; Pontotel may add fields to it). |
> | `criado_em` | Datetime | When the punch was received by Pontotel. |
> | `atualizado_em` | Datetime | When the punch was last updated in Pontotel. |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

> [accordion] Monthly results
>
> Monthly timesheet results of each employee: the totals by pay item (rubrica), including hour bank credits, debits and balances.
>
> Table: `apontamentos_mensais` · Primary key: `id` · Sync: Incremental (`competencia`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the monthly result. |
> | `mes_referencia` | Integer | Month of the result (1-12). |
> | `ano_referencia` | Integer | Year of the result. |
> | `empregado_id` | String | Identifier of the employee. |
> | `empregado` | String (JSON) | The employee, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `nome_do_empregado` | String | Name of the employee. |
> | `intervalo` | String (JSON) | Period of the timesheet the result covers (JSON). |
> | `apontamentos` | String (JSON) | Results of the month by pay item (rubrica), including hour bank credits, debits and balances (JSON list as Pontotel sends it). |
> | `ultima_atualizacao_utc` | Datetime | When the result was last recalculated (UTC). |
> | `competencia` | Date | First day of the month of the result (YYYY-MM-01), used as the incremental replication key. |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

### Absences and time off

> [accordion] Leaves (afastamentos)
>
> Leaves of absence (sick leave, maternity...), removed ones included.
>
> Table: `afastamentos` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the leave. |
> | `codigo` | String | Customer-defined code of the leave. |
> | `colaborador_id` | String | Identifier of the employee on leave. |
> | `colaborador` | String (JSON) | The employee on leave, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `local_de_trabalho_id` | String | Identifier of the work location of the employee during the leave. |
> | `local_de_trabalho` | String (JSON) | The work location of the employee during the leave, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `motivo_id` | String | Identifier of the reason for the leave. |
> | `motivo` | String (JSON) | The reason for the leave, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `inicio` | Datetime | Start of the leave. |
> | `fim` | Datetime | End of the leave (empty while it has no end date). |
> | `remover_empregado_do_repp` | Boolean | Whether the employee is removed from the time clocks during the leave. |
> | `criado_em` | Datetime | When the record was created in Pontotel. |
> | `ultima_modificacao_em` | Datetime | When the record was last modified in Pontotel. |
> | `removido_em` | Datetime | When the record was removed in Pontotel (empty while it is active). |
> | `deletado` | Boolean | Whether the record was removed (deleted records are included so removals reach the table). |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

> [accordion] Justified absences (dispensas)
>
> Justified absences and allowances, partial or whole-day, with the medical certificate details.
>
> Table: `dispensas` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the justified absence. |
> | `codigo_dispensa` | String | Customer-defined code of the justified absence. |
> | `id_funcionario` | String | Identifier of the employee. |
> | `id_motivo_padrao` | String | Identifier of the standard reason used (see motivos\_padrao). |
> | `dispensa_dia_inteiro` | Boolean | Whether the absence covers the whole day. |
> | `data_hora_inicio` | Datetime | Start of the justified absence. |
> | `data_hora_fim` | Datetime | End of the justified absence. |
> | `duracao_total` | String | Total duration of the justified absence. |
> | `tempo_deslocamento` | String | Commuting time included in the absence. |
> | `tempo_pausa` | String | Break time within the absence. |
> | `cid` | String | CID (disease code) of the medical certificate. |
> | `profissional_de_saude` | String | Health professional who signed the certificate. |
> | `classe` | String | Council of the health professional (CRM, CRO...). |
> | `numero_classe` | String | Council number of the health professional. |
> | `classe_estado` | String | State of the professional's council. |
> | `especialidade` | String | Specialty of the health professional. |
> | `clinica_nome` | String | Name of the clinic. |
> | `clinica_cnpj` | String | CNPJ of the clinic. |
> | `declaracao_de_comparecimento` | Boolean | Whether the document is an attendance statement. |
> | `atestado_de_dispensa` | Boolean | Whether the document is a leave certificate. |
> | `descontar_dsr` | Boolean | Whether the absence is discounted from the paid weekly rest (DSR). |
> | `considerar_como_falta` | Boolean | Whether the absence counts as an unjustified absence. |
> | `respostas_dos_campos_dinamicos` | String (JSON) | Answers to the dynamic fields of the reason (JSON list). |
> | `dispensas_extras` | String (JSON) | Additional absences registered together with this one (JSON list). |
> | `criado_em` | Datetime | When the justified absence was created in Pontotel (UTC). |
> | `ultima_modificacao_em` | Datetime | When the justified absence was last modified in Pontotel (UTC). |
> | `removido_em` | Datetime | When the justified absence was removed in Pontotel (UTC). |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

> [accordion] Absence reasons
>
> Standard reasons used to justify absences and adjustments.
>
> Table: `motivos_padrao` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the reason. |
> | `codigo` | String | Customer-defined code of the reason. |
> | `descricao` | String | Description of the reason, e.g. Consulta médica. |
> | `tipo` | String | Type of the reason. |
> | `ativo` | Boolean | Whether the reason is active. |
> | `justificativa_incide_no_absenteismo` | Boolean | Whether absences justified with this reason count towards absenteeism. |
> | `atestado_obrigatorio` | Boolean | Whether a medical certificate is mandatory. |
> | `anexar_arquivo_obrigatorio` | Boolean | Whether attaching a file is mandatory. |
> | `profissional_de_saude` | String | Whether (and how) the health professional must be informed. |
> | `numero_da_classe` | String | Whether (and how) the professional's council number must be informed. |
> | `classe_do_profissional` | String | Whether (and how) the professional's council must be informed. |
> | `estado` | String | Whether (and how) the council's state must be informed. |
> | `especialidade` | String | Whether (and how) the professional's specialty must be informed. |
> | `clinica` | String | Whether (and how) the clinic must be informed. |
> | `cnpj` | String | Whether (and how) the clinic's CNPJ must be informed. |
> | `cid` | String | Whether (and how) the CID (disease code) must be informed. |
> | `declaracao_de_comparecimento` | String | Whether the reason is an attendance statement. |
> | `atestado_de_dispensa` | String | Whether the reason is a leave certificate. |
> | `campos_dinamicos_esperados` | String (JSON) | Dynamic fields expected when the reason is used (JSON list). |
> | `criado_em` | Datetime | When the reason was created in Pontotel (UTC). |
> | `ultima_modificacao_em` | Datetime | When the reason was last modified in Pontotel (UTC). |
> | `removido_em` | Datetime | When the reason was removed in Pontotel (UTC). |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

> [accordion] Vacations
>
> Vacation records, removed ones included.
>
> Table: `ferias` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the vacation record. |
> | `codigo` | String | Customer-defined code of the vacation record. |
> | `empregado_id` | String | Identifier of the employee on vacation. |
> | `empregado` | String (JSON) | The employee on vacation, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `local_id` | String | Identifier of the work location of the employee during the vacation. |
> | `local` | String (JSON) | The work location of the employee during the vacation, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `inicio` | Datetime | First day of the vacation. |
> | `fim` | Datetime | Last day of the vacation. |
> | `remover_empregado_do_repp_durante_ferias` | Boolean | Whether the employee is removed from the time clocks during the vacation. |
> | `criado_em` | Datetime | When the record was created in Pontotel. |
> | `ultima_modificacao_em` | Datetime | When the record was last modified in Pontotel. |
> | `removido_em` | Datetime | When the record was removed in Pontotel (empty while it is active). |
> | `deletado` | Boolean | Whether the record was removed (deleted records are included so removals reach the table). |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

> [accordion] Planned vacations
>
> Vacations planned in Pontotel's vacation management module.
>
> Table: `ferias_planejadas` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the planned vacation. |
> | `codigo` | String | Customer-defined code of the planned vacation. |
> | `empregado_id` | String | Identifier of the employee the vacation is planned for. |
> | `empregado` | String (JSON) | The employee the vacation is planned for, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `inicio` | Datetime | First day of the planned vacation. |
> | `fim` | Datetime | Last day of the planned vacation. |
> | `adiantamento_decimo_terceiro` | Boolean | Whether an advance of the 13th salary was requested. |
> | `abono_pecuniario` | Boolean | Whether vacation days were sold (abono pecuniário). |
> | `numero_de_dias_de_ferias_vendidos` | Integer | Number of vacation days sold. |
> | `remover_empregado_do_repp_durante_ferias` | Boolean | Whether the employee is removed from the time clocks during the vacation. |
> | `criado_em` | Datetime | When the record was created in Pontotel. |
> | `ultima_modificacao_em` | Datetime | When the record was last modified in Pontotel. |
> | `deletado` | Boolean | Whether the record was removed (deleted records are included so removals reach the table). |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

> [accordion] Vacation accrual periods
>
> Accrual and concession periods of each employee's vacations and the days already used.
>
> Table: `periodos_aquisitivos` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the vacation balance of this accrual period. |
> | `empregado_id` | String | Identifier of the employee. |
> | `periodo_aquisitivo_inicio` | Date | Start of the accrual period (período aquisitivo). |
> | `periodo_aquisitivo_fim` | Date | End of the accrual period. |
> | `periodo_concessivo_inicio` | Date | Start of the concession period (período concessivo), when the vacation must be taken. |
> | `periodo_concessivo_fim` | Date | End of the concession period. |
> | `saldo_de_ferias_usado` | Integer | Vacation days already used in this accrual period. |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |

> [accordion] On-call periods
>
> On-call (sobreaviso) periods, removed ones included.
>
> Table: `sobreavisos` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Unique identifier of the on-call period. |
> | `empregado_id` | String | Identifier of the employee on call. |
> | `empregado` | String (JSON) | The employee on call, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `local_de_trabalho_id` | String | Identifier of the work location of the on-call period. |
> | `local_de_trabalho` | String (JSON) | The work location of the on-call period, as sent by Pontotel (JSON: its id, or an object with its details). |
> | `inicio` | Datetime | Start of the on-call period. |
> | `fim` | Datetime | End of the on-call period. |
> | `jornadas_de_sobreaviso` | String (JSON) | On-call shifts of the period, each with id, name, code and start and end times (JSON list). |
> | `criado_em` | Datetime | When the record was created in Pontotel. |
> | `ultima_modificacao_em` | Datetime | When the record was last modified in Pontotel. |
> | `removido_em` | Datetime | When the record was removed in Pontotel (empty while it is active). |
> | `deletado` | Boolean | Whether the record was removed (deleted records are included so removals reach the table). |
> | `raw_payload` | String (JSON) | The whole record exactly as Pontotel sent it (JSON), including fields this connector does not map to a column of their own. |


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