Payroll | Absence Type
Service to manage entities of type 'AbsenceType'.
Overview
URL | api/{tenantKey}/{orgKey}/payrollCore/absenceTypes |
Methods Supported | GET, POST, PUT, DELETE |
All Operations
This service includes the following operations:
- GET:
- POST:
-
PUT:
- PUT Set IsActive AbsenceType
- PUT Set AbsenceTypeKey AbsenceType
- PUT Set Name AbsenceType
- PUT Set ReduceWorkTime AbsenceType
- PUT Set IsEditableReduceWorkTime AbsenceType
- PUT Set Percentage AbsenceType
- PUT Set InHours AbsenceType
- PUT Set InDays AbsenceType
- PUT Set InHalfDays AbsenceType
- PUT Set TagView AbsenceType
- PUT Set ReducePaidTime AbsenceType
- PUT Set UnjustifiedTime AbsenceType
- PUT Set ContributesAbsenteeism AbsenceType
- PUT Set HasSupplement AbsenceType
- PUT Set Supplement AbsenceType
- PUT Set HasAnnualLimit AbsenceType
- PUT Set AnnualLimit AbsenceType
- PUT Set Tag AbsenceTypeTag
- DELETE:
All Resources
This service uses the following resources:
GET AbsenceTypes
Returns the list of all the entity records available.
Response:
When successful, the response body contains the list of records available. See AbsenceTypeResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET AbsenceTypes (paged)
Returns a page of the list of all the entity records available.
The following elements are optional:
page | (int) The index of the page of the list that should be returned. This is a query string parameter. |
pageSize | (int) The number of page elements that should be returned (max. is 1000). This is a query string parameter. |
Response:
When successful, the response body contains the list of records available. See AbsenceTypeResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET AbsenceType by identifier
Returns the entity record that matches the specified identifier.
The following elements are required:
id | (string) The record identifier. |
Response:
When successful, the response body contains the entity record. See AbsenceTypeResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
GET AbsenceType by key
Returns the entity record that matches the specified key.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
Response:
When successful, the response body contains the entity record. See AbsenceTypeResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
GET Print AbsenceType by identifier
Prints the specified entity record.
The following elements are required:
id | (string) The record identifier. |
The following elements are optional:
template | (string) The report template that should be used. This is a query string parameter. |
Response:
When successful, the response body contains a stream with the printed file. |
Response status codes:
200 | OK. The operation was completed successfully. |
404 | NotFound. The specified resord does not exist. |
Resource URL:
GET Print AbsenceType by key
Prints the specified entity record.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
The following elements are optional:
template | (string) The report template that should be used. This is a query string parameter. |
Response:
When successful, the response body contains a stream with the printed file. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
GET Original Print AbsenceTypeOriginal by identifier
Prints the specified entity record.
The following elements are required:
id | (string) The record identifier. |
The following elements are optional:
template | (string) The report template that should be used. This is a query string parameter. |
Response:
When successful, the response body contains a stream with the printed file. |
Response status codes:
200 | OK. The operation was completed successfully. |
404 | NotFound. The specified resord does not exist. |
Resource URL:
GET Original Print AbsenceType by key
Prints the specified entity record.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
The following elements are optional:
template | (string) The report template that should be used. This is a query string parameter. |
Response:
When successful, the response body contains a stream with the printed file. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
POST AbsenceTypes
Creates a new entity record.
The following elements are required:
absenceTypeResource | (ApiAbsenceTypeResource) The request body should contain the entity record that should be created. See ApiAbsenceTypeResource. |
Response:
When successful, the response body contains the new entity record identifier. The resource header location property contains the URL for the new entity record. See ApiAbsenceTypeResource. |
Response status codes:
201 | Created. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
POST Absence Type
Inserts a new 'Absence Type Tag' in the 'Absence Type'.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
value | (ApiAbsenceTypeTagsResource) The ApiAbsenceTypeTagsResource instance. See ApiAbsenceTypeTagsResource. |
Response:
When successful, the response body is empty. |
Response status codes:
204 | NoContent. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set AbsenceTypeKey AbsenceType
Updates the value of attribute 'AbsenceTypeKey' in the specified entity record.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set AnnualLimit AbsenceType
Updates the value of attribute 'AnnualLimit' in the specified entity record.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
value | (decimal) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set ContributesAbsenteeism AbsenceType
Updates the value of attribute 'ContributesAbsenteeism' in the specified entity record.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
value | (bool) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set HasAnnualLimit AbsenceType
Updates the value of attribute 'HasAnnualLimit' in the specified entity record.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
value | (bool) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set HasSupplement AbsenceType
Updates the value of attribute 'HasSupplement' in the specified entity record.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
value | (bool) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set InDays AbsenceType
Updates the value of attribute 'InDays' in the specified entity record.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
value | (bool) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set InHalfDays AbsenceType
Updates the value of attribute 'InHalfDays' in the specified entity record.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
value | (bool) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set InHours AbsenceType
Updates the value of attribute 'InHours' in the specified entity record.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
value | (bool) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set IsActive AbsenceType
Updates the value of attribute 'IsActive' in the specified entity record.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
value | (bool) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
PUT Set IsEditableReduceWorkTime AbsenceType
Updates the value of attribute 'IsEditableReduceWorkTime' in the specified entity record.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
value | (bool) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Name AbsenceType
Updates the value of attribute 'Name' in the specified entity record.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Percentage AbsenceType
Updates the value of attribute 'Percentage' in the specified entity record.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
value | (decimal) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set ReducePaidTime AbsenceType
Updates the value of attribute 'ReducePaidTime' in the specified entity record.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
value | (bool) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set ReduceWorkTime AbsenceType
Updates the value of attribute 'ReduceWorkTime' in the specified entity record.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
value | (bool) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Supplement AbsenceType
Updates the value of attribute 'Supplement' in the specified entity record.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Tag AbsenceTypeTag
Updates the value of attribute 'Tag' in the specified entity record.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
lineId | (string) The detail identifier. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set TagView AbsenceType
Updates the value of attribute 'TagView' in the specified entity record.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set UnjustifiedTime AbsenceType
Updates the value of attribute 'UnjustifiedTime' in the specified entity record.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
value | (bool) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
DELETE Absence Type Tag by identifier
Deletes the entity record that matches the specified identifier.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
lineId | (string) The line identifier. |
Response:
When successful, the response body is empty. |
Response status codes:
204 | NoContent. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
DELETE AbsenceType by identifier
Deletes the entity record that matches the specified identifier.
The following elements are required:
id | (string) The record identifier. |
Response:
When successful, the response body is empty. |
Response status codes:
204 | Deleted. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
DELETE AbsenceType by key
Deletes the entity record that matches the specified key.
The following elements are required:
absenceTypeKey | (string) Absence Type. |
Response:
When successful, the response body is empty. |
Response status codes:
204 | Deleted. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
Resources
AbsenceTypeResource
The following elements are required:
absenceTypeKey | (string) Absence Type. |
name | (string) Name. |
reduceWorkTime | (bool) Reduce Work Time. |
isEditableReduceWorkTime | (bool) Is Editable. |
percentage | (decimal) Percentage. |
inHours | (bool) In Hours. |
inDays | (bool) In Days. |
inHalfDays | (bool) In Half Days. |
reducePaidTime | (bool) Indicates if absences of this type reduces paid time. |
unjustifiedTime | (bool) Indicates if absences of this type should be considered as unjustified time. |
contributesAbsenteeism | (bool) Indicates if absences of this type should be considered on absenteeism analysis. |
hasSupplement | (bool) Indicates where a suplement is to be inserted when an absence of this type exists. |
hasAnnualLimit | (bool) Indicates if absence type has annual limit of days. |
The following elements are optional:
tags | (List of AbsenceTypeTagResource) Tags.
See AbsenceTypeTagResource. |
tagView | (string) Tag View. |
supplement | (string) A earning to be inserted when a absence of this type exists on processing.
(fk) Allowed value: the natural key of a record of type Earning. These records are accessibly through the Earnings service. |
annualLimit | (decimal) Indicates annual limit days of absence type. |
AbsenceTypeTagResource
The following elements are required:
tag | (string) Tag. |
ApiAbsenceTypeResource
The following elements are required:
absenceTypeKey | (string) Absence Type. |
name | (string) Name. |
reduceWorkTime | (bool) Reduce Work Time. |
isEditableReduceWorkTime | (bool) Is Editable. |
percentage | (decimal) Percentage. |
inHours | (bool) In Hours. |
inDays | (bool) In Days. |
inHalfDays | (bool) In Half Days. |
reducePaidTime | (bool) Indicates if absences of this type reduces paid time. |
unjustifiedTime | (bool) Indicates if absences of this type should be considered as unjustified time. |
contributesAbsenteeism | (bool) Indicates if absences of this type should be considered on absenteeism analysis. |
hasSupplement | (bool) Indicates where a suplement is to be inserted when an absence of this type exists. |
hasAnnualLimit | (bool) Indicates if absence type has annual limit of days. |
The following elements are optional:
tags | (List of ApiAbsenceTypeTagsResource) Tags.
See ApiAbsenceTypeTagsResource. |
tagView | (string) Tag View. |
supplement | (string) A earning to be inserted when a absence of this type exists on processing. |
annualLimit | (decimal) Indicates annual limit days of absence type. |
ApiAbsenceTypeTagsResource
The following elements are required:
tag | (string) Tag. |