Timesheet Pending List

Returns a list of pending timesheets.

Timesheet Pending List

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areatspending.json
GeneralYesParameters described in overviewsee overviewStructure of an API call
CompanyYesThe company numbercompany=1
ActionYesThe action to performaction=timesheetweeklypendinglist
ResourceYesUser Code&resource=1\ME
DateNoDatedate=2018-01-08
TspendingNoPending Statustspending=713
StatusNoStatusstatus=713

Example request (OAuth 2.0):

Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/tspending.json?&version=6&action=timesheetweeklypendinglist&company=1&resource=1/JON

Example request (legacy username/password):

http://<SERVER>/jsonapi/tspending.json?&version=6&action=timesheetweeklypendinglist&company=1&resource=1/JON&user=<username>&password=<password>

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "totalrows": 1,
  "totalpages": 1,
  "responsemessage": "",
  "pagerows": 0,
  "pagenumber": 1,
  "success": true,
  "data": [
    {
      "tspTswPendingApprovalNotes": "qqqqqqqwewewwwewewdfdfdfdfdoioi",
      "tspTswPendingChargeCode": "farting around",
      "tspTswPendingDate": "2018-01-01",
      "tspTswPendingDescription": "Allocated Costs - Tick-off Issue MT TEST",
      "tspTswPendingEntryno": 13616,
      "tspTswPendingHours": 3,
      "tspTswPendingHover": "Handler: Aaron Cronshaw",
      "tspTswPendingJobPhase": "88879.001",
      "tspTswPendingStatus": "R",
      "tspTswPendingStatusDesc": "Delete",
      "tspTswPendingTaskDesc": "",
      "tspTswPendingWorkDone": "",
      "tspTswPendingWorkflow": ""
    }
  ]
}