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
Body ()
The request body defines the details of the API request.
Root Schema : timeCardDetailsRequestPayload
Type: object
Request payload for Time Card Details
Show Source
  • Title: Application name
    Maximum Length: 128
    The name of the application which is accessing the API.
  • 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.
  • 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.
  • 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.
  • 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.
  • Title: Include
    Maximum Length: 2000
    List of objects to include in response
  • Title: Include adjustments
    This parameter triggers the inclusion of the adjustments array in the response. Default is "false".
  • Title: Location reference
    Maximum Length: 99
    The location reference, this may be a store number or name depending on the organization.
  • 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.
  • Title: Search criteria
    Maximum Length: 2000
    Search criteria to filter results based on field value
Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : timeCardDetailsResponse
Type: object
The response body contains information about the control totals for the specified business date and location.
Show Source
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
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
Nested Schema : timeCardDetails
Type: array
An array of time card details
Show Source
Nested Schema : timeCardDetails
Type: object
An array of time card details.
Show Source
  • Title: Added date time in UTC
    The date and time in UTC timezone, that the time card was initially created in the cloud.
  • 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.
  • 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.
  • 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.
  • 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.
  • Title: Clock in date and time
    Date and time in local store timezone when the employee clocked in.
  • Title: Clock in status
    Maximum Length: 5
    The clock in status.
    Possible values are:
    ValueDescription
    0None
    65Early From Break
    67Late From Break
    68Schedule Disabled
    69Early
    76Late
    78Not Scheduled
    82Revenue Center Changed
    84On Time
  • Title: Clock in date and time in UTC
    Date and time in UTC timezone when the employee clocked in.
  • 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.
  • 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.
  • 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:
    ValueDescription
    NullEmployee still clocked in
    0None
    66On Break
    68Schedule Disabled
    69Early
    76Late
    77Manager Clock Out
    78Not Scheduled
    80Paid Break
    82Revenue Center Changed
    84On Time
    85Auto Clock Out
    86Scheduled Clock Out
  • 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.
  • 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.
  • Title: Employee object number
    Maximum Length: 10
    The object number of the employee associated to this time card. This joins to getEmployeeDimensions.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • Title: Overtime level 1 pay
    Overtime level 1 pay. This attribute will not be returned in the response if value is 0 or null.
  • 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.
  • Title: Overtime level 2 pay
    Overtime level 2 pay. This attribute will not be returned in the response if value is 0 or null.
  • 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.
  • Title: Overtime level 3 pay
    Overtime level 3 pay. This attribute will not be returned in the response if value is 0 or null.
  • 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.
  • Title: Overtime level 4 pay
    Overtime level 4 pay. This attribute will not be returned in the response if value is 0 or null.
  • 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.
  • Title: Regular pay rate
    Regular pay rate. This attribute will not be returned in the response if value is 0 or null.
  • 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.
  • Title: Premium pay
    Premium Pay. This attribute will not be returned in the response if value is 0 or null.
  • 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.
  • Title: Regular pay
    Regular pay. This attribute will not be returned in the response if value is 0 or null.
  • Title: Revenue center object number
    Maximum Length: 10
    The object number of the revenue center the employee clocked in. This joins to getRevenueCenterDimensions.
  • 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.
  • Title: Shift type
    Maximum Length: 1
    Shift Type.
    Possible values are:
    ValueDescription
    0working shift
    1paid break
    2unpaid break
  • 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.
  • Title: Time card ID
    Maximum Length: 10
    Unique identifier for the time card
  • 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
  • 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
  • Title: Adjustment record unique identifier
    Maximum Length: 10
    Unique identifier for this adjustment record.
  • Title: Adjustment date and time in UTC
    Date and time in UTC timezone when the adjustment happened.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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
Body ()
Root Schema : exceptionDetailType
Type: object
Error details
Show Source

401 Response

Unauthorized
Body ()
Root Schema : exceptionDetailType
Type: object
Error details
Show Source

403 Response

Service Unavailable
Body ()
Root Schema : exceptionDetailType
Type: object
Error details
Show Source

404 Response

Resource Not Found
Body ()
Root Schema : exceptionDetailType
Type: object
Error details
Show Source

Default Response

Unexpected Error
Body ()
Root Schema : exceptionDetailType
Type: object
Error details
Show Source
Back to Top

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"
    }]
   }]
  }]
 }
Back to Top