Absences from work, wether they are planned or not, are described in Lucca using three concepts : LeaveRequests, LeavePeriods and Leaves.

A LeaveRequest represent the request made by employees when planning time off. This resource is used for workflow purposes.

A LeavePeriod is the continuous period of absence requested by the employee or entered by HR. It is linked to a LeaveRequest if workflow applies.

A Leave is the subdivision of a LeavePeriod. There is one Leave per half-day of the LeavePeriod. Each Leave is linked to a LeaveAccount, which represent the type of leave (PTO, Sick Leave, Congés payés, RTT, etc).

id
number

Unique identifier for the LeavePeriod

ownerId
number

Unique identifier for the user

isConfirmed
boolean

Has the value true for approved LeavePeriod or the value false for LeavePeriod pending approval

confirmationDate
string | null

Time at which the LeavePeriod was approved

attachmentId
string | null

Unique identifier for the attached document

leaves
object[]
logs
object[]