Get time card details
post
/bi/v1/{orgIdentifier}/getTimeCardDetails
Gets time card and related sales information for all or a specified employee in a given location. When the changedSinceUTC request parameter is used, time cards without a clock out date time will continue to be returned. The labor management calculation engine runs every 15 minutes, and those time cards will then show updated hours and pay information. The time card information returned, represents the most recent and current status of this time card. This requires the use of payroll preprocessing within labor management.
The API is first available in version 20.2
Request
Path Parameters
-
orgIdentifier(required): string
Unique identifier of the organization name
The request body defines the details of the API request.
Root Schema : timeCardDetailsRequestPayload
Type:
object
Request payload for Time Card Details
Show Source
-
applicationName:
string
Title:
Application name
Maximum Length:128
The name of the application which is accessing the API. -
busDt(required):
string(date)
Title:
Business date
The business date associated with this time card. Either busDt or postedDt have to be present in the request. If both are present, they are connect with an "AND" logic. -
changedSinceUTC:
string(date-time)
Title:
Changed since date time UTC
When this parameter is passed in the request, it compares to the lastUpdatedDateTime of the time card to return all time cards changed since that date and time. BusDt or PostedDt are additional filters on the return. To query all delta changes to time cards happening on a given date, use the PostedDt parameter together with the changedSinceUTC parameter. ChangedSinceUTC parameter should then be set to the curUTC date time returned by the previous call to the endpoint. -
empNum:
integer
Title:
Employee object number
Maximum Length:10
The object number of the employee associated to this time card. EmpNum (optional) or extPayrollID (optional) Only one of the parameters is allowed at one time. -
extPayrollID:
string
Title:
The external payrollID
Maximum Length:32
The external payrollID of the employee if entered and used in the enterprise. EmpNum (optional) or extPayrollID (optional) Only one of the parameters is allowed at one time. -
include:
string
Title:
Include
Maximum Length:2000
List of objects to include in response -
includeAdjustments:
boolean
Title:
Include adjustments
This parameter triggers the inclusion of the adjustments array in the response. Default is "false". -
locRef(required):
string
Title:
Location reference
Maximum Length:99
The location reference, this may be a store number or name depending on the organization. -
postedDt:
string(date)
Title:
Posted date
The date when this time card was inserted into the cloud. Either postedDt or busDt have to be present in the request. If both are present, they are connect with an "AND" logic. -
searchCriteria:
string
Title:
Search criteria
Maximum Length:2000
Search criteria to filter results based on field value
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : timeCardDetailsResponse
Type:
object
The response body contains information about the control totals for the specified business date and location.
Show Source
-
businessDates(required):
array businessDates
An array of business dates, containing time cards for the business date defined in the busDt attribute that were inserted or updated in the cloud on the specified postedDt.
-
curUTC(required):
string(date-time)
Title:
The current UTC date and time
The current UTC date and time when the request is made. -
locRef(required):
string
Title:
Location reference
Maximum Length:99
The location reference, this may be a store number or name depending on the organization
Nested Schema : businessDates
Type:
array
An array of business dates, containing time cards for the business date defined in the busDt attribute that were inserted or updated in the cloud on the specified postedDt.
Show Source
-
Array of:
object timeCardDetailsBusinessDates
An array of business dates, containing time cards for the business date defined in the busDt attribute that were inserted or updated in the cloud on the specified postedDt.
Nested Schema : timeCardDetailsBusinessDates
Type:
object
An array of business dates, containing time cards for the business date defined in the busDt attribute that were inserted or updated in the cloud on the specified postedDt.
Show Source
-
busDt(required):
string(date)
Title:
The business date
The business date for this time card -
timeCardDetails(required):
array timeCardDetails
An array of time card details
Nested Schema : timeCardDetails
Type:
array
An array of time card details
Show Source
-
Array of:
object timeCardDetails
An array of time card details.
Nested Schema : timeCardDetails
Type:
object
An array of time card details.
Show Source
-
addedUTC(required):
string(date-time)
Title:
Added date time in UTC
The date and time in UTC timezone, that the time card was initially created in the cloud. -
adjustments:
array adjustments
An array of adjustments made to the time card. Only returned if request param includeAdjustments is set to true and if adjustments exist for the time card.
-
chrgRcpts:
number
Title:
Charged receipts
The value of receipts recorded by tenders configured to post to this total, such as credit cards or room charges. Only tenders that include a non-zero charged tip are included in this total. The value does not include the tip amount. This attribute will not be returned in the response if value is 0 or null. -
chrgTips:
number
Title:
Charged tips
The value of tips posted to charge payments such as credit cards or room charges. Tenders can be programmed to automatically calculate any overtendered amount as a charged tip. Charged tips can also be entered through a direct access key. A charged tip is posted to the employee associated with the check. This attribute will not be returned in the response if value is 0 or null. -
clkInAuthEmpNum:
integer
Title:
Clock In authorizing employee object number
Maximum Length:10
The object number of the employee authorizing the clock in. This joins to getEmployeeDimensions. This attribute will not be returned in the response if value is 0 or null. -
clkInLcl(required):
string(date-time)
Title:
Clock in date and time
Date and time in local store timezone when the employee clocked in. -
clkInStatus(required):
integer
Title:
Clock in status
Maximum Length:5
The clock in status.
Possible values are:Value Description 0 None 65 Early From Break 67 Late From Break 68 Schedule Disabled 69 Early 76 Late 78 Not Scheduled 82 Revenue Center Changed 84 On Time -
clkInUTC(required):
string(date-time)
Title:
Clock in date and time in UTC
Date and time in UTC timezone when the employee clocked in. -
clkOutAuthEmpNum:
integer
Title:
Clock Out authorizing employee object number
Maximum Length:10
The object number of the employee authorizing the clock out. This joins to getEmployeeDimensions. This attribute will not be returned in the response if value is 0 or null. -
clkOutLcl:
string(date-time)
Title:
Clock out date and time
Date and time in local store timezone when the employee clocked out. This attribute will not be returned in the response if value is 0 or null. -
clkOutStatus:
integer
Title:
The clock out status
Maximum Length:5
The clock out status. This attribute will not be returned in the response if value is 0 or null.
Possible values are:Value Description Null Employee still clocked in 0 None 66 On Break 68 Schedule Disabled 69 Early 76 Late 77 Manager Clock Out 78 Not Scheduled 80 Paid Break 82 Revenue Center Changed 84 On Time 85 Auto Clock Out 86 Scheduled Clock Out -
clkOutUTC:
string(date-time)
Title:
Clock out date and time in UTC
Date and time in UTC timezone when the employee clocked out. This attribute will not be returned in the response if value is 0 or null. -
drctTips:
number
Title:
Declared cash tips
Cash tips that a customer directly gives to an employee, such as a waiter or bartender. Employees use the Direct Tips function to enter the amount of tips they received in cash, or can be prompted to declare direct tips when clocking out. This information is added to Tip Totals and in reports. It is used for income tax purposes. This attribute will not be returned in the response if value is 0 or null. -
empNum(required):
integer
Title:
Employee object number
Maximum Length:10
The object number of the employee associated to this time card. This joins to getEmployeeDimensions. -
extPayrollID:
string
Title:
Employee external payrollID
Maximum Length:32
The external payrollID of the employee if entered and used in the enterprise. This attribute will not be returned in the response if value is 0 or null. -
grossRcpts:
number
Title:
Gross receipts
The monetary value of receipts recorded by tenders configured to post to this total. Gross Receipts include all sales that are tippable. The amount may or may not include taxes, depending on POS configuration. More details can be found here: https://docs.oracle.com/en/industries/food-beverage/back-office/20.1/rarrg/c_common_calc_tips.htm#TipsDefinitions-7711219F. This attribute will not be returned in the response if value is 0 or null. -
indirTips:
number
Title:
Indirect tips
Cash tips that an employee (like a bus person) receives indirectly from servers or bartenders (as opposed to directly from the customer). Employees use the Indirect Tips function to enter the amount of tips they've received in cash. They can also be prompted to declare indirect tips when clocking out. This information is added to Tips Totals in reports and is used for income tax purposes. This attribute will not be returned in the response if value is 0 or null. -
jcNum(required):
integer
Title:
Job code object number
Maximum Length:10
The object number of the job code that the employee used to clock in with. This joins to getJobCodeDimensions. -
jobCodeRef:
integer
Title:
Employee external payrollID
Maximum Length:10
Do not use. Use jcNum instead. This attribute is optional and is not returned by default, regardless of whether it is null or not. -
lastUpdatedUTC(required):
string(date-time)
Title:
Last Updated Date Time in UTC
The date and time in UTC timezone, that the time card was last updated in the cloud. The optional PostedDt request parameter is compared to the date portion of this attribute. -
ovt1Hrs:
number
Title:
Number of overtime level 1 hours worked
Number of overtime level 1 hours worked. This attribute will not be returned in the response if value is 0 or null. -
ovt1Pay:
number
Title:
Overtime level 1 pay
Overtime level 1 pay. This attribute will not be returned in the response if value is 0 or null. -
ovt2Hrs:
number
Title:
Number of overtime level 2 hours worked
Number of overtime level 2 hours worked. This attribute will not be returned in the response if value is 0 or null. -
ovt2Pay:
number
Title:
Overtime level 2 pay
Overtime level 2 pay. This attribute will not be returned in the response if value is 0 or null. -
ovt3Hrs:
number
Title:
Number of overtime level 3 hours worked
Number of overtime level 3 hours worked. This attribute will not be returned in the response if value is 0 or null. -
ovt3Pay:
number
Title:
Overtime level 3 pay
Overtime level 3 pay. This attribute will not be returned in the response if value is 0 or null. -
ovt4Hrs:
number
Title:
Number of overtime level 4 hours worked
Number of overtime level 4 hours worked. This attribute will not be returned in the response if value is 0 or null. -
ovt4Pay:
number
Title:
Overtime level 4 pay
Overtime level 4 pay. This attribute will not be returned in the response if value is 0 or null. -
payrollID:
string
Title:
Employee payrollID
Maximum Length:32
The payrollID of the employee, assigned by Labor Management. This attribute will not be returned in the response if value is 0 or null. -
payRt:
number
Title:
Regular pay rate
Regular pay rate. This attribute will not be returned in the response if value is 0 or null. -
premHrs:
number
Title:
Number of hours worked eligible for premium pay
Number of hours worked eligible for premium pay. This attribute will not be returned in the response if value is 0 or null. -
premPay:
number
Title:
Premium pay
Premium Pay. This attribute will not be returned in the response if value is 0 or null. -
regHrs:
number
Title:
Number of regular hours worked
Number of regular hours worked. This attribute will not be returned in the response if value is 0 or null. -
regPay:
number
Title:
Regular pay
Regular pay. This attribute will not be returned in the response if value is 0 or null. -
rvcNum(required):
integer
Title:
Revenue center object number
Maximum Length:10
The object number of the revenue center the employee clocked in. This joins to getRevenueCenterDimensions. -
shftNum:
integer
Title:
Shift number
Maximum Length:19
The shift number. This increments on every clock in if the following recommended configuration is completed: https://docs.oracle.com/en/industries/food-beverage/back-office/20.1/rause/c_gross_sales_tips.htm#VisibilityOfGrossSalesAndTips-228C1574. This attribute will not be returned in the response if value is 0 or null. -
shftType(required):
integer
Title:
Shift type
Maximum Length:1
Shift Type.
Possible values are:Value Description 0 working shift 1 paid break 2 unpaid break -
svcTips:
number
Title:
Service charge tips
The amount of Service Charges that are set to post to the Service Charge total on tip reports. More details can be found here: https://docs.oracle.com/en/industries/food-beverage/back-office/20.1/rarrg/c_common_calc_tips.htm#TipsDefinitions-7711219F. This attribute will not be returned in the response if value is 0 or null. -
tcId(required):
integer
Title:
Time card ID
Maximum Length:10
Unique identifier for the time card -
tipsPd:
number
Title:
Tips paid
The sum of all direct charged tips that are configured to add automatically to Tips Paid and/ or recorded manually through a Tips Paid key. More details can be found here: https://docs.oracle.com/en/industries/food-beverage/back-office/20.1/rarrg/c_common_calc_tips.htm#TipsDefinitions-7711219F. This attribute will not be returned in the response if value is 0 or null.
Nested Schema : adjustments
Type:
array
An array of adjustments made to the time card. Only returned if request param includeAdjustments is set to true and if adjustments exist for the time card.
Show Source
-
Array of:
object adjustments
An array of adjustments made to the time card. It is an optional array and requires the "includeAdjustments" request parameter to be set to true to be included in the response. The array contains the previous information of the changed attributes of the time card.
Nested Schema : adjustments
Type:
object
An array of adjustments made to the time card. It is an optional array and requires the "includeAdjustments" request parameter to be set to true to be included in the response. The array contains the previous information of the changed attributes of the time card.
Show Source
-
adjId(required):
integer
Title:
Adjustment record unique identifier
Maximum Length:10
Unique identifier for this adjustment record. -
adjUTC(required):
string(date-time)
Title:
Adjustment date and time in UTC
Date and time in UTC timezone when the adjustment happened. -
mgrName:
string
Title:
Manager name
Maximum Length:50
The name of the manager who performed the adjustment. This attribute will not be returned in the response if value is null. -
prevClkInLcl:
string(date-time)
Title:
Previous clock in date and time
The clock in date and time in the store's timezone, before it was changed. This attribute will not be returned in the response if value is 0 or null. -
prevClkInUTC:
string(date-time)
Title:
Previous clock in date and time in UTC
The clock in date and time in UTC timezone, before it was changed. This attribute will not be returned in the response if value is 0 or null. -
prevClkOutLcl:
string(date-time)
Title:
Previous clock out date and time
The clock out date and time in the store's timezone, before it was changed. This attribute will not be returned in the response if value is 0 or null. -
prevClkOutUTC:
string(date-time)
Title:
Previous clock out date and time in UTC
The clock out date and time in UTC timezone, before it was changed. This attribute will not be returned in the response if value is 0 or null. -
prevDrctTips:
number
Title:
Previous direct tips amount
The direct tips amount, before it was changed. This attribute will not be returned in the response if value is 0 or null. -
prevIndirTipsPd:
number
Title:
Previous indirect tips amount
The indirect tips amount, before it was changed. This attribute will not be returned in the response if value is 0 or null. -
prevJcNum:
integer
Title:
Previous job code
Maximum Length:10
The job code object number before it was changed. This attribute will not be returned in the response if value is 0 or null. -
prevRVCNum:
integer
Title:
Previous revenue center object number
Maximum Length:10
The revenue center object number before it was changed. This attribute will not be returned in the response if value is 0 or null. -
rsn:
string
Title:
The reason provided for the change(s)
Maximum Length:40
The reason provided for the change(s). This attribute will not be returned in the response if value is 0 or null.
400 Response
Bad Request
Root Schema : exceptionDetailType
Type:
object
Error details
Show Source
-
detail:
string
Title:
Error Description
The description of the error -
o:errorCode(required):
integer
Title:
Oracle Error Code
Oracle error code -
status:
integer
Title:
Status
HTTP Response Code -
title(required):
string
Title:
Title
High level description of the error -
type(required):
string
Title:
Type
The description of the type of HTTP error
401 Response
Unauthorized
Root Schema : exceptionDetailType
Type:
object
Error details
Show Source
-
detail:
string
Title:
Error Description
The description of the error -
o:errorCode(required):
integer
Title:
Oracle Error Code
Oracle error code -
status:
integer
Title:
Status
HTTP Response Code -
title(required):
string
Title:
Title
High level description of the error -
type(required):
string
Title:
Type
The description of the type of HTTP error
403 Response
Service Unavailable
Root Schema : exceptionDetailType
Type:
object
Error details
Show Source
-
detail:
string
Title:
Error Description
The description of the error -
o:errorCode(required):
integer
Title:
Oracle Error Code
Oracle error code -
status:
integer
Title:
Status
HTTP Response Code -
title(required):
string
Title:
Title
High level description of the error -
type(required):
string
Title:
Type
The description of the type of HTTP error
404 Response
Resource Not Found
Root Schema : exceptionDetailType
Type:
object
Error details
Show Source
-
detail:
string
Title:
Error Description
The description of the error -
o:errorCode(required):
integer
Title:
Oracle Error Code
Oracle error code -
status:
integer
Title:
Status
HTTP Response Code -
title(required):
string
Title:
Title
High level description of the error -
type(required):
string
Title:
Type
The description of the type of HTTP error
Default Response
Unexpected Error
Root Schema : exceptionDetailType
Type:
object
Error details
Show Source
-
detail:
string
Title:
Error Description
The description of the error -
o:errorCode(required):
integer
Title:
Oracle Error Code
Oracle error code -
status:
integer
Title:
Status
HTTP Response Code -
title(required):
string
Title:
Title
High level description of the error -
type(required):
string
Title:
Type
The description of the type of HTTP error
Examples
The following example shows how to view time card and related sales information for a specified employee in a given location by submitting a POST request on the REST resource using cURL. For more information, see Use cURL
curl -i -X POST -H "Authorization: Bearer" -H "Content-Type:application/json" -d {"busDt":"2020-10-20","locRef":"1234"} https://baseurl/bi/v1/orgidentifier/getTimeCardDetails
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 200 OK Date: Tue, 20 Oct 2020 21:24:33 GMT Transfer-Encoding: chunked Content-Type: application/json
Example of Response Body
The following example shows the contents of the response body in JSON format:
{ "curUTC": "2024-05-31T17:59:59", "locRef": "1234", "businessDates": [{ "busDt": "2024-05-31", "timeCardDetails": [{ "tcId": 15253, "lastUpdatedUTC": "2024-05-31T10:00:00", "addedUTC": "2024-05-31T10:00:00", "empNum": 1234, "payrollID": "12345", "extPayrollID": "123789", "jobCodeRef": "3", "clkInAuthEmpNum": 12345, "clkOutAuthEmpNum": 12345, "jcNum": 123, "rvcNum": 1, "shftNum": 1, "clkInLcl": "2024-05-31T10:00:00", "clkInUTC": "2024-05-31T10:00:00", "clkInStatus": 84, "clkOutLcl": "2024-05-31T14:30:00", "clkOutUTC": "2024-05-31T14:30:00", "clkOutStatus": 84, "payRt": 100.0, "regHrs": 3.54, "regPay": 354.0, "ovt1Hrs": 1.0, "ovt1Pay": 1.5, "ovt2Hrs": 2.0, "ovt2Pay": 2.5, "ovt3Hrs": 3.0, "ovt3Pay": 3.5, "ovt4Hrs": 4.0, "ovt4Pay": 4.5, "premHrs": 4.0, "premPay": 4.5, "shftType": 1, "grossRcpts": 1234.56, "chrgRcpts": 1234.56, "chrgTips": 1234.56, "drctTips": 1234.56, "indirTips": 1234.56, "svcTips": 1234.56, "tipsPd": 1234.56, "adjustments": [{ "adjId": 123456789, "adjUTC": "2024-05-31T14:30:00", "mgrName": "J Doe", "prevJcNum": 1, "prevRVCNum": 1, "prevClkInLcl": "2024-05-31T10:00:00", "prevClkInUTC": "2024-05-31T10:00:00", "prevClkOutLcl": "2024-05-31T10:00:00", "prevClkOutUTC": "2024-05-31T10:00:00", "prevDrctTips": 1234.56, "prevIndirTipsPd": 1234.56, "rsn": "Clocked out late" }] }] }] }