Organization Structure API
- Axis-sections
- Departments
- Legal-Units
- Establishments
Core HR API
- Employees Directory
- Guides
Cleemy Expenses API
- Expense-temp-items
- Expense-claims
- Expense-claim-items
Timmi Absences API
- Leaves
- Leave-requests
- Sick-leaves
- Imports
- Guides
Timmi Office API
- User-locations
- Work-locations
Timmi Project API
- Clients
- Projects
- Project services
- Organizations
- Financials
Timmi Settings API
- UserDates
- Workcycle-exceptions
- Working-time-arrangement
Timmi Timesheet API
- Time-entries
- Timesheets
- Reports
- Guides
Pagga Mealvouchers API
- Statutory
- Computation
Pagga Remuneration API
- Fixed-natures
- Fixed-items
- Variable-natures
- Variable-items
Poplee Training API
- Training-demands
- Realized-trainings
List leaves
Retrieve a list of approved leaves for one or several users on a given period.
The leavePeriod.ownerId
query parameter is required ans is used to:
- retrieve Leaves of a specific user:
?leavePeriod.ownerId=5
- retrieve Leaves of several users:
?leavePeriod.ownerId=5,6
- retrieve Leaves of a specific group of users:
?leavePeriod.owner.departmentId=3
The date
query parameter can operate comparisons with a given date-time value:
?date=2021-01-01
: strict equality.?date=since,2021-01-01
: greater than or equal.?date=until,2021-01-01
: lower than or equal.?date=between,2021-01-01,2021-01-31
: comprised between two dates.
curl --request GET \
--url https://{account}-{sandboxName}.sandbox.{server}.luccasoftware.com/api/v3/leaves
{
"data": {
"id": "<string>",
"date": "2023-12-25",
"isAm": true,
"leaveAccountId": 123,
"leaveAccount": {
"id": 123,
"name": "<string>"
},
"leavePeriodId": 123,
"leavePeriod": {
"id": 123,
"ownerId": 123,
"isConfirmed": true,
"confirmationDate": null,
"attachmentId": null,
"leaves": [
{}
],
"logs": [
{
"id": 123,
"date": "2023-11-07T05:31:56Z",
"comment": "<string>",
"status": 0
}
]
},
"value": "<string>",
"creationDate": "2023-11-07T05:31:56Z",
"isActive": true,
"cancellationDate": null,
"cancellationUserId": null,
"comment": "<string>"
}
}
Query Parameters
{offset},{limit}. Defaults to 0,1000.
Employee's identifier
{comparator},{date-time}
Response
Unique identifier for the Leave
Date of the leave in ISO format yyyy-mm-dd
Has the value true
for morning or the value false
for afternoon
Unique identifier for the attached LeaveAccount
Unique identifier for the attached LeavePeriod
Unique identifier for the LeavePeriod
Unique identifier for the user
Has the value true
for approved LeavePeriod or the value false
for LeavePeriod pending approval
Time at which the LeavePeriod was approved
Unique identifier for the attached document
Unique identifier for the Leave
Date of the leave in ISO format yyyy-mm-dd
Has the value true
for morning or the value false
for afternoon
Unique identifier for the attached LeaveAccount
Unique identifier for the attached LeavePeriod
Unique identifier for the LeavePeriod
Unique identifier for the user
Has the value true
for approved LeavePeriod or the value false
for LeavePeriod pending approval
Time at which the LeavePeriod was approved
Unique identifier for the attached document
Leave duration in hours
Time at which the object was created
Has the value true
when the Leave exists (for pending or confirmed LeavePeriods), or the value false
when it has been deleted (for canceled or denied LeaveRequests).
Time at which the request was canceled
Unique identifier for the user who canceled the request
Comments
Leave duration in hours
Time at which the object was created
Has the value true
when the Leave exists (for pending or confirmed LeavePeriods), or the value false
when it has been deleted (for canceled or denied LeaveRequests).
Time at which the request was canceled
Unique identifier for the user who canceled the request
Comments
Was this page helpful?
curl --request GET \
--url https://{account}-{sandboxName}.sandbox.{server}.luccasoftware.com/api/v3/leaves
{
"data": {
"id": "<string>",
"date": "2023-12-25",
"isAm": true,
"leaveAccountId": 123,
"leaveAccount": {
"id": 123,
"name": "<string>"
},
"leavePeriodId": 123,
"leavePeriod": {
"id": 123,
"ownerId": 123,
"isConfirmed": true,
"confirmationDate": null,
"attachmentId": null,
"leaves": [
{}
],
"logs": [
{
"id": 123,
"date": "2023-11-07T05:31:56Z",
"comment": "<string>",
"status": 0
}
]
},
"value": "<string>",
"creationDate": "2023-11-07T05:31:56Z",
"isActive": true,
"cancellationDate": null,
"cancellationUserId": null,
"comment": "<string>"
}
}