Service used to register, change and remove leave from Ahgora PontoWeb.
Batch sending allowed, maximum 1000 records per request, or 1mb (mega)
Afastamentos (absences)
Item | Description |
|---|---|
| Flow: | Client → PontoWeb |
| Route | https://api.ahgora.com.br/absences |
| Method: | POST |
| Absences | ||||
| Field | Type | Required | Description | Rule |
| matricula | String | Yes | Employee's registration | |
| motivo | String | Yes | Reason for absence | *String of the leave reason registered in PontoWeb Send the Code or Reason, one of the following is mandatory |
| inicio | String | Yes | Start date and/or time of absence | Expected format: "YYYY-MM-DDTHH:MM" |
| fim | String | Yes | End date and/or time of absence | Expected formta: "YYYY-MM-DDTHH:MM" (Sending end time 24:00 corresponds to the total day) |
| cod_interno | String | Yes* | Internal code for absence | *Mandatory for maintenance via integration. This field is key to accessing the record. Maintenance of the absence depends on this field; if it is not entered, it will not be possible to change or remove the absence via the integration. It must be unique for all absences registered via the integration. |
| operation | String | Yes | Action to be taken | INS (insertion operation) ALT (to alter) DEL (to remove the absence) |
| ignora_bloqueio | String | No | Bypasses period blocks | Bypasses the calculation lock to insert or change a leave record in a lock period. If you use the "competency lock" feature in PontoWeb. To change leave or add it when the competence is blocked, you must use this field to change or add it. 0 = false (default when the field is not sent) 1 = true
Example: In the case of a leave of absence entered in the system with a start date of 10/10/2000 and an end date of 10/10/2050 and the "blocking of competence" feature is used, if it is necessary to change either the start date or the end date of this leave of absence, "ignora_bloqueio = 1" must be used so that the leave of absence is successfully changed. |
tip
For more details, use the Process service. To find out more, click here.
Note: Check the user's permissions to access the route/service.