The connector only reads data. It never creates, changes or deletes anything in Pontomais.
Configuring Pontomais as a Source
In the 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 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.
- 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.
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.
4. Configure data source
Describe your data source for easy identification within your organization, not exceeding 140 characters. To define your Trigger, 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.
- Determine when to execute an 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.
5. Check your new source
You can view your new source on the Sources page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.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 asSim/Não), so the report columns are text. Dates are converted toYYYY-MM-DD, and the day exactly as the report wrote it is kept indate_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_keyfrom the employee (registration number and PIS), the day andposition_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 adateare the ones with that date’s latestsynced_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, whosetime_cardscolumn 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.
The employee’s PIN and QR code used to clock in are never synced.
Fields by stream
Organization
Business units
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 tableCost centers
Cost centers
Cost centers of the account.Table:
cost_centers · Primary key: id · Sync: Full tableDepartments
Departments
Departments, each inside a business unit.Table:
departments · Primary key: id · Sync: Full tableTeams
Teams
Teams, each inside a department, with their managers.Table:
teams · Primary key: id · Sync: Full tableJob titles
Job titles
Job titles, with their CBO occupation.Table:
job_titles · Primary key: id · Sync: Full tableShifts
Shifts
Work shifts (turnos) and their settings.Table:
shifts · Primary key: id · Sync: Full tablePeople
Employees
Employees
Every employee, active and dismissed.Table:
employees · Primary key: id · Sync: Full tableAbsences and vacations
Absences and vacations
Absences (afastamentos) and vacations (férias) of every employee.Table:
absences · Primary key: id · Sync: Full tableHour-bank entries
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 tableTime tracking
Work days
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)Clock-ins
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)