work-contract
resource models a formal employment relationship between an employee
(or user
) and an establishment
.
Each employee
is required to have at least one associated work-contract
. Multiple contracts are supported, provided their date ranges do not overlap.
A work-contract
determines the employee’s active status within the system. Access to the employee’s Lucca account is granted exclusively within the valid date range of at least one active work-contract. Outside of these bounds, account access is disabled.
Additionally, a work-contract
contains data describing the employment terms, such as:
- Contract type (e.g., permanent, fixed-term);
- Presence of a trial period;
- Work duration;
- etc…
Unique identifier of this work-contract.
x >= 1
Unique identifier of the employee this work-contract belongs to.
x >= 1
Third-party identifier of this work-contract. May be not unique.
Identifier of the work-contract template this work-contract conforms to. Determines whether certain optional properties are required.
Start date of this work-contract. Format: YYYY-mm-DD
.
Readonly. Whether this work-contract applies to the employee at this very moment.
A work-contract is considered "applicable" if:
- It is the ongoing work-contract as of today;
- If there is none, then it is the first upcoming work-contract;
- If not, then it is the last work-contract this employee had.
Identifier of the establishment the employee works for.
Identifier of the socio-professional category.
Refer to the API endpoint: /organization/structure/api/occupation-categories
.
Identifier of a hiring reason type.
Refer to the API endpoint: /directory/api/work-contract-hiring-types
.
Number of days of the initial trial period.
x >= 0
Number of days of renewed trial period (equal to the length of the initial period, plus the renewal period).
x >= 0
Initial trial period end date. Format: YYYY-mm-DD
.
Renewed trial period end date. Format: YYYY-mm-DD
.
Identifier of the temporary contract ground.
Refer to the API endpoint: /directory/api/work-contract-temporary-contract-grounds
.
Identifier of the employee/user that acts as internship supervisor.
End date of this work-contract. Leave null
if not (yet) known. Format: YYYY-mm-DD
.
Identifier of the termination reason.
Refer to the API endpoint: /directory/api/work-contract-termination-reasons
.
Read-only. Identifier of the user who created this work-contract.
Read-only. Timestamp of the moment this work-contract was created.
Read-only. Identifier of the user who last modified this work-contract.
Read-only. Timestamp of the moment this work-contract was last updated.