Back to Approval Timesheet

GET Method Details for GetStatusByDates.

Get approval statuses for user

Definition

https://app[x].timelog.com/[account name]/api/v{version}/approval/timesheets/get-status-by-dates

Parameters

  • employeeUserId integer The user id
  • dates array List of dates
  • version string The requested API version

Returns

  • [200] A list of approval status that belongs to the user
    • ApprovalStatus integer
    • Date string
    • HasResubmittedRejectedRegistration boolean
    • Hours number
    • LastRejectedComment string
    • RecentRejectedComment object
    • RejectedRegistrations array
    {
      "ApprovalStatus": 0,
      "Date": "2024-05-05T00:00:00+00:00",
      "HasResubmittedRejectedRegistration": false,
      "Hours": 0.0,
      "LastRejectedComment": "",
      "RejectedRegistrations": ""
    }
  • [401] Invalid authentication token
  • [500] Unable to retrieve approval status for the user
    • Code integer Gets the code.
    • Details array Gets the details.
    • Message string Gets the message.
    • Parameters string Gets the parameters.
    • Url string Gets the URL.
    {
      "Code": 0,
      "Details": "",
      "Message": "",
      "Parameters": "",
      "Url": ""
    }