Returns a list of pending timesheets.
Parameter | Mandatory | Description | Examples | More Info |
---|---|---|---|---|
API | Yes | The API area | tspending.json | |
General | Yes | Parameters described in overview | see overview | Structure of an API call |
Company | Yes | The company number | company=1 | |
Action | Yes | The action to perform | action=timesheetpendinglist | |
Resource | Yes | User Code | &resource=1\ME | |
Date | No | Date | date=2018-01-08 | |
Tspending | No | Pending Status | tspending=713 | |
Status | No | Status | status=713 |
Example request:
http://<SERVER>/jsonapi/tspending.json?user=user&password=user&version=3.9&action=timesheetweeklypendinglist&company=1&resource=1/JON
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": ""
}
]
}