Workplaces¶
What is it?¶
Workplace is the organizational unit where the collaborator is allocated within Pontotel.
Important
At Pontotel, "workplace" it doesn't have to be a physical space. Can represent teams, departments, sectors or subsidiaries. Think of it as a management unit.
Why It Matters In Integration¶
- Operational organisation: filters in sheets and reports per unit/team
- Parameters per unit: time zone, holidays and rules applied by the site
- Geolocation (when enabled): Address is the basis for point registration validations
- Hierarchy with ERP: o
codigothe site can mirror cost centers or ERP business units
Time zone and region are critical
In multi-region integrations (e.g. companies with subsidiaries in different UFs or countries), the local time zone defines the timestamp offset of markings and holidays applied on the sheet.
Business Rules¶
- A place always belongs to an employer
- O
codigomust be unique and stable (integration key) - The region (UF/Municiple) impacts which holidays will be applied in leaf calculations
- Inactive places do not accept new markings
Fields¶
| Field | Type | Required | Description |
|---|---|---|---|
id | integer | — | Internal ID |
empregador_id | integer | Employer ID | |
codigo | string | Recommended | Integration code (cost centre, subsidiary etc.) |
nome | string | Location name | |
fuso_horario | string | Recommended | Ex.: America/Sao_Paulo |
pais | string | — | Country (standard: BR) |
uf | string | — | UF (impact holidays) |
municipio | string | — | Municipality (impact holidays) |
endereco | object | — | Address data (for geolocation) |
is_active | boolean | — | Status (default: true) |
Subject matter endereco¶
| JSON | |
|---|---|
Available Operations¶
| Method | Endpoint | Description |
|---|---|---|
| GET | /locais-trabalho/ | List Locations |
| POST | /locais-trabalho/ | Create Local |
| GET | /locais-trabalho/{id}/ | Get Local |
| PATCH | /locais-trabalho/{id}/ | Update |
| DELETE | /locais-trabalho/{id}/ | Remove (without tied employees) |
Example: Create Local¶
Request¶
Common Errors¶
| Error | Cause | Solution |
|---|---|---|
| Wrong Holidays | Region (UF/Municip) not completed | Always fill in UF and Municipality |
| Time difference | Incorrect time zone | Configure fuso_horario for each site with distinct UF |
| Duplicate code | codigo reused | Ensure single code per employer |