Oracle Time and Labor (OTL) – Time Entries Creation Using REST API

 

When we have a requirement to integrate Oracle Time and Labor with external clocks of employee IN/OUT register for processing timecards and payroll, Oracle has inbuilt functionality to configure the clocks in the system. In this case real time entry will be captured in Oracle and taken for further processing. If the clocks are not supported in Oracle default configuration, then the option is to integrate the clock data using REST Webservice.

 

Below is the sample REST API payload to create time entry.

Request URL: /hcmRestApi/resources/11.13.18.05/timeRecordEventRequests

Method: Post

Content Type: application/json

Sample Payload:

{

“processInline”: “Y”,

“processMode”: “TIME_ENTER”, // Valid values are TIME_ENTER,TIME_SAVE,TIME_SUBMIT

“timeRecordEvent”:

[{

“startTime”:”2021-07-08T10:00:00.000-08:00″,

“stopTime”:”2021-07-08T18:00:00.000-08:00″,

“reporterIdType”:”PERSON”,

“reporterId”: “101”,         //Oracle Person Number

“operationType”:”ADD”,

“timeRecordEventAttribute”:

[{

“attributeName”:”PayrollTimeType”,

“attributeValue”:” NIGHT_SHFT”

}]

}]

}

 

Once the request is submitted, response status “201 created” will indicate the successful creation of time entry in Oracle.

Recommended Posts

Start typing and press Enter to search