List employments
Returns a paginated list of employments.
Access
Access
EstablishmentsThis API endpoint will filter out results based on accessible business-establishments.You may only access employments belonging to employees whose applicable business-establishments are accessible to you.
Authorizations
The Lucca API implements the oAuth 2 protocol with the client-credentials-flow. Refer to RFC8725.
Headers
Set the API version.
2024-11-01 "2024-11-01"10"2024-11-01"
Only execute the request if current cached version of the resource does not match the one given here.
"W/q5sd4w2x1c1gfdg"
Only execute the request if current cached version of the resource matches the one given here. Useful to avoid concurrency conflicts.
"W/q5sd4w2x1c1gfdg"
List of compression algorithms you support.
Query Parameters
Filter out employments on their IDs.
1001Filter out employments on their remoteId.
1001Filter out employments on their employee IDs.
1001Filter out employments on the legal-entity IDs.
1001Filter out employments on their employment-template IDs.
1001Filter out employments on their start.date (strict equality).
Filter out employments on their status. Read-only. The employee status is calculated from the employee's employments.
- active: employee has an employment as of today.
- upcoming: employee currently has no employment but will have one in the future.
- deactivated: employee used to have an employment but no longer does.
active, upcoming, deactivated "active"
Filter out employments on their start.date (range). ISO 8601 formatted date-range string. ISO 8601 formatted date-range string. Examples:
2024-01-01--2024-12-31: from Jan. 1st 2024 until Dec. 31st 2024 (included)...--2024-12-31: until Dec. 31st 2024.2024-01-01--..: from Jan. 1st 2024.
"2024-01-01--2024-12-31"
"..--2024-12-31"
"2024-01-01--.."
Filter out employments on their end.date (strict equality).
Filter out employments on their end.date (range). ISO 8601 formatted date-range string. ISO 8601 formatted date-range string. Examples:
2024-01-01--2024-12-31: from Jan. 1st 2024 until Dec. 31st 2024 (included)...--2024-12-31: until Dec. 31st 2024.2024-01-01--..: from Jan. 1st 2024.
"2024-01-01--2024-12-31"
"..--2024-12-31"
"2024-01-01--.."
Order results by instruction. Read more about sorting. Default: id.
id, -id, start.date, -start.date, end.date, -end.date Cursor of the page to retrieve. Read more about pagination.
Number of items per page. Defaults to 25. Maximum is 1,000. Read more about pagination.
0 <= x <= 1000Include metadata:
embedded: the partial or complete representations of related resources (e.g. the employee the resource belongs to).links: links to related resources or actions (e.g. approving a leave-request). May benullwhen you do not have access to the resource (or action).totalCount: only applicable on collections (i.e. lists of resources), gives the total number of items across all pages.
Read more about expanding responses.
embedded, links, totalCount Response
OK
A collection of employment resources.
"employments"Total number of employment resources across all pages that satisfy query parameters.
x >= 0Paginated list of employment resources.
100Links to related resources
Embeds the representation of resources related to the employment(s).
Only returned if requested by the API client: ?include=embedded.