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

# Pontomais as a data source

> Bring your Pontomais time tracking data to Nekt: employees, teams, departments, shifts, clock-ins, daily work days, hour bank and absences.

Pontomais (by VR Gente) is a Brazilian time tracking platform (controle de ponto). This connector reads your Pontomais account through the Pontomais integration API and brings your organization (business units, cost centers, departments, teams, job titles and shifts), your employees, every clock-in, the daily work day of each employee (the time sheet, with planned and worked hours, overtime and hour-bank balance), the manual hour-bank entries, and absences and vacations.

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

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

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

### 1. Add account access

The connector uses your account's **public API token**. The Pontomais API is a paid module: it must be contracted for your account before the token is shown.

**1. Open the Marketplace**

Sign in to [Pontomais](https://app.pontomais.com.br/#/acessar) with an **administrator** user and click **Marketplace** in the left menu.

**2. Contract the API**

Click **Saiba mais** on **API Pontomais** and contract the API if your account does not have it yet.

**3. Copy the token**

Once the API is contracted, copy the **Token público** and paste it in the **API Token** field of the source form.

The following configurations are available:

* **API Token**: the public API token of your Pontomais account.
* **Start Date**: first day synced to the **Work days** and **Clock-ins** tables on the first sync and on full syncs. The other tables are always read in full.
* **Lookback (days)** (advanced, default 62): every sync reads again this many days of work days and clock-ins before the last synced day, so clock-ins adjusted afterwards are updated. The default covers adjustments made until the payroll of the following month closes; for older changes, schedule an occasional **Additional Full Sync**.

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

* **Work days** and **Clock-ins** come from Pontomais reports, read by period: work days 31 days per request (500 rows per page), clock-ins 7 days per request (all pages of each period). The first sync reads from the **Start Date** to today; later syncs read from **Lookback (days)** before the last synced day, so adjustments made after the fact are brought. Days are counted in Brazil time.
* Every other table is read in full on every sync. Employees are read twice (active and inactive) so dismissed employees stay in the table with `active` = false; hour-bank entries are read twice too (debits and credits).
* Report values come formatted as Pontomais shows them (hours as `08:00`, flags as `Sim`/`Não`), so the report columns are text. Dates are converted to `YYYY-MM-DD`, and the day exactly as the report wrote it is kept in `date_text`.
* A reference to another record (an employee's team or cost center, for example) arrives as two columns: `<name>_id`, with the referenced record's id, and `<name>`, with what Pontomais sent about it (JSON). Nested values are JSON text. Timestamps are stored in UTC.
* **Clock-ins** have no identifier in Pontomais, and Pontomais names them by position (1ª Entrada, 1ª Saída, 2ª Entrada...), so adding a forgotten clock-in renumbers the day. Each row gets a `record_key` from the employee (registration number and PIS), the day and `position_in_day` (its order in the day by time): an edited or added clock-in updates the day's rows in place.
* A clock-in **deleted** in Pontomais leaves its last position in the table (a day that had 4 clock-ins and now has 3 keeps the 4th row), and so does an employee whose whole day was deleted or whose registration number or PIS changed. Every day a sync reads is sent whole, for every employee, stamped with that sync's `synced_at`, so the current rows of a `date` are the ones with that date's latest `synced_at`, across all employees: `SELECT * FROM time_cards t WHERE synced_at = (SELECT MAX(synced_at) FROM time_cards WHERE date = t.date)`. The one exception is a date that came back with no rows at all: its old rows stay. The same applies to **Work days**, whose `time_cards` column also shows each day's clock-ins as they are now.
* Before sending any data of a table, the connector reads it (the first period, for the report tables). A table your token is not allowed to read is skipped and reported in the run log, and the other tables keep syncing. A wrong token stops the run.
* Pontomais does not publish a request limit. The connector makes one request at a time and, when Pontomais asks it to slow down, waits and continues.

> [!NOTE]
>
> The employee's PIN and QR code used to clock in are never synced.

## Fields by stream

### Organization

> [accordion] Business units
>
> Companies or people that employ, at the top of the Pontomais allocation hierarchy (business unit > department > team > employee).
>
> Table: `business_units` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the business unit. |
> | `code` | String | Code that identifies the business unit. |
> | `name` | String | Name of the company or person. |
> | `corporate_name` | String | Legal (corporate) name. |
> | `cnpj` | String | CNPJ, when the business unit is a legal entity. |
> | `cpf` | String | CPF, when the business unit is a person. |
> | `cei` | String | CEI registration or CNO (Cadastro Nacional de Obras). |
> | `state_inscription` | String | State registration (Inscrição Estadual). |
> | `is_employer` | Boolean | Whether the business unit registers, manages and pays employees. |
> | `is_construction` | Boolean | Whether the business unit is a construction company. |
> | `person_type` | String | Person type (type of registration) (JSON object as sent by Pontomais). |
> | `person_type_id` | Integer | Identifier of the person type. |
> | `coop_type` | String | Cooperative type (JSON object as sent by Pontomais). |
> | `coop_type_id` | Integer | Identifier of the cooperative type. |
> | `tax_classification` | String | Tax classification (JSON object as sent by Pontomais). |
> | `tax_classification_id` | Integer | Identifier of the tax classification. |
> | `juridical_nature` | String | Legal nature (natureza jurídica) (JSON object as sent by Pontomais). |
> | `juridical_nature_id` | Integer | Identifier of the legal nature. |
> | `phone` | String | Contact phone number. |
> | `address` | String | Address of the business unit: street, number, complement, district, zip, address type, street type, city, state and country (JSON object). |
> | `observation` | String | Free-text note. |
> | `brand` | String | Logo used on the time sheet (JSON object). |
> | `timezone` | String | Time zone used for clock-ins made through the software (JSON object). |
> | `client_preference` | String | Time-tracking settings applied to the business unit (JSON object). |
> | `employees_count` | Integer | Number of employees in the business unit. |
> | `created_at` | Datetime | When the business unit was created (UTC). |
> | `updated_at` | Datetime | When the business unit was last updated (UTC). |

> [accordion] Cost centers
>
> Cost centers of the account.
>
> Table: `cost_centers` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the cost center. |
> | `code` | String | Code that identifies the cost center. |
> | `name` | String | Name of the cost center. |
> | `created_at` | Datetime | When the cost center was created (UTC). |
> | `updated_at` | Datetime | When the cost center was last updated (UTC). |

> [accordion] Departments
>
> Departments, each inside a business unit.
>
> Table: `departments` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the department. |
> | `code` | String | Code that identifies the department. |
> | `name` | String | Name of the department. |
> | `business_unit` | String | Business unit the department belongs to (JSON object as sent by Pontomais). |
> | `business_unit_id` | Integer | Identifier of the business unit the department belongs to. |
> | `observation` | String | Free-text note. |
> | `employees_count` | Integer | Number of employees in the department. |
> | `created_at` | Datetime | When the department was created (UTC). |
> | `updated_at` | Datetime | When the department was last updated (UTC). |

> [accordion] Teams
>
> Teams, each inside a department, with their managers.
>
> Table: `teams` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the team. |
> | `code` | String | Code that identifies the team. |
> | `name` | String | Name of the team. |
> | `department` | String | Department the team belongs to (JSON object as sent by Pontomais). |
> | `department_id` | Integer | Identifier of the department the team belongs to. |
> | `leaders` | String | Managers of the team: id, name and picture of each (JSON array). |

> [accordion] Job titles
>
> Job titles, with their CBO occupation.
>
> Table: `job_titles` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the job title. |
> | `code` | String | Code that identifies the job title. |
> | `name` | String | Name of the job title. |
> | `female_name` | String | Feminine form of the job title's name. |
> | `cbo` | String | CBO occupation (Classificação Brasileira de Ocupações): id, code and name (JSON object as sent by Pontomais). |
> | `cbo_id` | Integer | Identifier of the CBO occupation. |

> [accordion] Shifts
>
> Work shifts (turnos) and their settings.
>
> Table: `shifts` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the shift. |
> | `code` | String | Code that identifies the shift. |
> | `name` | String | Name of the shift. |
> | `enabled` | Boolean | Whether the shift is active. |
> | `shift_type` | Integer | Shift type: 1 weekly, 2 12h/36h, 3 24h/72h, 4 5d/1d, 5 custom, 6 intermittent. |
> | `advanced` | Boolean | Whether the shift uses advanced settings. |
> | `flexible` | Boolean | Whether the working hours are flexible. |
> | `flexible_interval` | Boolean | Whether the break is flexible. |
> | `auto_interval` | Boolean | Whether the break is pre-recorded (pré-assinalado). |
> | `without_holidays` | Boolean | Whether the shift ignores holidays. |
> | `ignore_absences_in_cyclical_shift` | Boolean | Whether absences are ignored in a cyclical shift. |
> | `holiday` | String | Holiday settings of the shift (JSON). |

### People

> [accordion] Employees
>
> Every employee, active and dismissed.
>
> Table: `employees` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the employee. |
> | `registration_number` | String | Employee registration number (matrícula). |
> | `first_name` | String | First name. |
> | `last_name` | String | Last name. |
> | `email` | String | E-mail address. |
> | `login` | String | Login of the employee. |
> | `cpf` | String | CPF of the employee. |
> | `nis` | String | PIS/NIS of the employee. |
> | `birthdate` | Date | Date of birth. |
> | `gender` | String | Gender (JSON object as sent by Pontomais). |
> | `gender_id` | Integer | Identifier of the gender. |
> | `main_phone_number` | String | Main phone number. |
> | `active` | Boolean | Whether the employee is active (false once dismissed). |
> | `is_clt` | Boolean | Whether the employee is hired under CLT. |
> | `is_retired` | Boolean | Whether the employee is retired. |
> | `has_time_cards` | Boolean | Whether the employee records clock-ins. |
> | `time_card_source` | String | Clock-in method of the employee (1 time clock, 2 Pontomais) (JSON object as sent by Pontomais). |
> | `time_card_source_id` | Integer | Identifier of the clock-in method of the employee. |
> | `use_qrcode` | Boolean | Whether the employee clocks in with a QR code. |
> | `enable_geolocation` | String | Geolocation setting for clock-ins (0 = use the account setting) (JSON object as sent by Pontomais). |
> | `enable_geolocation_id` | Integer | Identifier of the geolocation setting for clock-ins. |
> | `geolocation_enabled` | Boolean | Whether location is enabled for the employee's clock-ins. |
> | `enable_offline_time_cards` | String | Offline clock-in setting (0 = use the account setting) (JSON object as sent by Pontomais). |
> | `enable_offline_time_cards_id` | Integer | Identifier of the offline clock-in setting. |
> | `work_hours` | String | Contracted working hours. |
> | `hourly_rate` | Number | Hourly rate. |
> | `team` | String | Team of the employee (JSON object as sent by Pontomais). |
> | `team_id` | Integer | Identifier of the team of the employee. |
> | `cost_center` | String | Cost center of the employee (JSON object as sent by Pontomais). |
> | `cost_center_id` | Integer | Identifier of the cost center of the employee. |
> | `job_title` | String | Current job title (JSON object as sent by Pontomais). |
> | `job_title_id` | Integer | Identifier of the current job title. |
> | `shift` | String | Current shift (JSON object as sent by Pontomais). |
> | `shift_id` | Integer | Identifier of the current shift. |
> | `user` | String | User account of the employee in Pontomais (e-mail, access group, admin flag) (JSON object as sent by Pontomais). |
> | `user_id` | Integer | Identifier of the user account of the employee in Pontomais. |
> | `address` | String | Address of the employee (JSON object as sent by Pontomais). |
> | `address_id` | Integer | Identifier of the address of the employee. |

> [accordion] Absences and vacations
>
> Absences (afastamentos) and vacations (férias) of every employee.
>
> Table: `absences` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the absence. |
> | `employee` | String | Employee who is absent: id, name and picture (JSON object as sent by Pontomais). |
> | `employee_id` | Integer | Identifier of the employee who is absent. |
> | `absence_type` | String | Absence type: 1 absence (afastamento), 2 vacation (férias), 3 undefined (JSON object as sent by Pontomais). |
> | `absence_type_id` | Integer | Identifier of the absence type. |
> | `start_date` | Date | First day of the absence. |
> | `end_date` | Date | Last day of the absence. |
> | `total_days` | Integer | Number of days of the absence. |
> | `observation` | String | Note about the absence. |
> | `is_medical_certificate` | Boolean | Whether the absence is backed by a medical certificate. |
> | `cid` | String | CID (disease code) of the medical certificate. |
> | `crm` | String | CRM of the physician. |
> | `medical_name` | String | Name of the physician. |
> | `clinic_name` | String | Name of the clinic. |
> | `file` | String | Attached file: url and content\_type (JSON object). |
> | `created_at` | Datetime | When the absence was created (UTC). |
> | `updated_at` | Datetime | When the absence was last updated (UTC). |

> [accordion] Hour-bank entries
>
> Manual hour-bank entries (lançamentos de banco de horas), credits and debits.
>
> Table: `time_balance_entries` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the entry. |
> | `employee_id` | Integer | Identifier of the employee the entry belongs to. |
> | `date` | Date | Day the entry refers to. |
> | `withdraw` | Boolean | Whether the entry is a debit (true) or a credit (false). |
> | `amount` | Number | Amount of the entry, in seconds. |
> | `signed_amount` | Number | Amount of the entry in seconds, negative for debits. |
> | `signed_amount_humanized` | String | Signed amount as hours and minutes (e.g. -02:00). |
> | `work_day_id` | Integer | Identifier of the consolidated work day. |
> | `updated_by` | String | Person who made the entry: id and name (JSON object as sent by Pontomais). |
> | `updated_by_id` | Integer | Identifier of the person who made the entry. |
> | `observation` | String | Reason for the entry. |
> | `created_at` | Datetime | When the entry was created (UTC). |
> | `updated_at` | Datetime | When the entry was last updated (UTC). |

### Time tracking

> [accordion] Work days
>
> One row per employee and day: the time sheet (jornada / espelho de ponto) with the day's clock-ins, planned and worked hours, overtime and hour-bank balance. From the Pontomais work day report.
>
> Table: `work_days` · Primary key: `employee_id`, `date` · Sync: Incremental (by `date`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `employee_id` | Integer | Identifier of the employee. |
> | `date` | Date | Day of the work day, used as the incremental replication key. |
> | `employee_name` | String | Name of the employee. |
> | `registration_number` | String | Employee registration number (matrícula). |
> | `job_title_name` | String | Job title of the employee. |
> | `team_name` | String | Team of the employee. |
> | `managers_names` | String | Names of the team's managers. |
> | `shift_name` | String | Shift of the employee on the day. |
> | `shift_appointments` | String | Planned working hours of the day (jornada prevista). |
> | `holiday` | String | Holiday on the day, if any. |
> | `time_cards` | String | Clock-ins of the day (pontos), as the report writes them. |
> | `time_breaks` | String | Breaks of the day (pausas). |
> | `summary` | String | Totals of the work day. |
> | `total_time` | String | Total hours of the day. |
> | `shift_time` | String | Planned hours of the day (horas previstas). |
> | `extra_time` | String | Total overtime of the day. |
> | `daylight_extra_time` | String | Daytime overtime. |
> | `overnight_extra_time` | String | Night overtime. |
> | `overnight_time` | String | Night-shift hours (adicional noturno). |
> | `reduced_overnight_time` | String | Reduced night hours (hora noturna reduzida). |
> | `over_limit` | String | Hours over the limit (horas excedentes). |
> | `custom_interval_time` | String | Intra-day interval hours (horas intrajornada). |
> | `time_balance` | String | Hour-bank balance of the day (saldo). |
> | `time_balance_entries` | String | Hour-bank entries of the day (lançamentos). |
> | `time_balance_factors` | String | Accumulation factors of the hour bank. |
> | `motive` | String | Reason or note of the day. |
> | `standby_time` | String | Total standby hours (sobreaviso). |
> | `standby_planned_time` | String | Planned standby hours. |
> | `standby_worked_time` | String | Standby hours worked. |
> | `dsr_discount_days` | String | Weekly paid rest (DSR) discounted days. |
> | `dsr_discount_hours` | String | Weekly paid rest (DSR) discounted hours. |
> | `dsr_credit_days` | String | Weekly paid rest (DSR) credited days. |
> | `dsr_credit_hours` | String | Weekly paid rest (DSR) credited hours. |
> | `date_text` | String | The day exactly as the report writes it (e.g. 'Ter, 04/09/2018'). |
> | `synced_at` | Datetime | When the sync that read this row started (UTC). A sync sends every day it reads whole, for every employee, so for each date the rows with that date's latest synced\_at are the current ones (older rows of the date were deleted or re-keyed in Pontomais), except for a date that came back with no rows at all. |

> [accordion] Clock-ins
>
> One row per clock-in (registro de ponto), with how and where it was made and whether it was adjusted. From the Pontomais clock-in report.
>
> Table: `time_cards` · Primary key: `record_key` (employee + day + `position_in_day`) · Sync: Incremental (by `date`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `date` | Date | Day of the clock-in, used as the incremental replication key. |
> | `time` | String | Time of the clock-in (HH:MM). |
> | `employee_name` | String | Name of the employee. |
> | `pis` | String | PIS of the employee. |
> | `registration_number` | String | Employee registration number (matrícula). |
> | `job_title_name` | String | Job title of the employee. |
> | `team_name` | String | Team of the employee. |
> | `shift_name` | String | Shift of the employee. |
> | `time_card_index` | String | Type of the clock-in (e.g. '1ª Entrada', '1ª Saída'). |
> | `source` | String | Method of the clock-in (e.g. app, time clock, adjustment). |
> | `software_method` | String | Origin of the clock-in. |
> | `manually_changed` | String | Whether the clock-in was adjusted (Sim/Não). |
> | `motive` | String | Reason for the adjustment. |
> | `updated_by` | String | Who adjusted the clock-in. |
> | `original_address` | String | Approximate address detected at the clock-in. |
> | `edited_address` | String | Approximate address after an edit. |
> | `geolocation` | String | Geolocation of the clock-in. |
> | `original_geolocation` | String | Original geolocation of the clock-in. |
> | `accuracy` | String | Accuracy of the location, in meters. |
> | `local_date_time` | String | Local time of the device at the clock-in. |
> | `image` | String | Photo taken at the clock-in. |
> | `ip` | String | IP address of the clock-in. |
> | `time_clock_sequence_number` | String | NSR (sequence number of the time-clock record). |
> | `untreated_id` | String | Receipt number of the clock-in. |
> | `device_uuid` | String | UUID of the device that recorded the clock-in. |
> | `device_platform` | String | Platform of the device. |
> | `device_description` | String | Description of the device. |
> | `tag_manager` | String | Time-clock tag (etiqueta de ponto). |
> | `time_clock_description` | String | Time clock the clock-in came from. |
> | `position_in_day` | Integer | Order of the clock-in among the employee's clock-ins of the day (1 = earliest), as read in this sync. |
> | `record_key` | String | Key of the clock-in, computed by the connector from the employee (registration number and PIS; the name when both are empty), the day and position\_in\_day. |
> | `date_text` | String | The day exactly as the report writes it (e.g. 'Ter, 04/09/2018'). |
> | `synced_at` | Datetime | When the sync that read this row started (UTC). A sync sends every day it reads whole, for every employee, so for each date the rows with that date's latest synced\_at are the current ones (older rows of the date were deleted or re-keyed in Pontomais), except for a date that came back with no rows at all. |

## Permissions

Every table is read with the same API token, which sees the whole account. If your Pontomais plan does not include a module (for example, hour bank or absences), Pontomais refuses that table: the connector skips it, says so in the run log, and keeps syncing the others. Deselect the table, or ask Pontomais to enable the module.


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