get https://api.kombo.dev/v1/hris/absences
Retrieve all absences.
{
"status": "success",
"data": {
"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=",
"results": [
{
"id": "22st2Ji8XpncEYEak8mvQgQF",
"remote_id": "1348",
"employee_id": "JDdUy9kiH5APaGizFrgNmQjM",
"approver_id": "AgXEispYPP1BbToHpqnqcpxy",
"start_date": "2022-08-04",
"end_date": "2022-08-05",
"start_half_day": true,
"end_half_day": false,
"start_time": "2022-08-04T00:00:00.000Z",
"end_time": "2022-08-05T00:00:00.000Z",
"amount": 2,
"unit": "DAYS",
"status": "APPROVED",
"employee_note": "Visiting my family.",
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": "2022-08-07T14:01:29.196Z",
"type_id": "xzZoKssDaMZAd62kxayzzQvD",
"type": {
"id": "xzZoKssDaMZAd62kxayzzQvD",
"name": "Vacation",
"unit": "DAYS",
"half_days_supported": true,
"remote_id": "91",
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": null
}
}
]
}
}
If the first sync did not finish yet, a 503
status code will be returned to ensure you don't get incomplete data. This allows you to pull until the data is complete (we recommend you to depend on our webhooks though).