Returns a display of the timesheet weekly by date.
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 | |
Resource | Yes | Resource code | resource=1/ME | |
Date | Yes | Date | date=2018-01-08 | |
Jobphase | Yes | Job and phase | jobphase=1/00000523.001 | |
Chargecode | Yes | Charge code | chargecode=1/AA | |
Action | Yes | The action to perform | action=timesheetweeklydate |
Example request:
http://<SERVER>/jsonapi/tspending.json?user=user&password=user&version=3.9&action=timesheetweeklydate&company=1&date=2017-03-24&resource=1/jon&jobphase=1/00008562.001&chargecode=1/ah
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 1,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"data": [
{
"tspTswDateApproverNotes": "",
"tspTswDateChargeCode": "1/ah",
"tspTswDateChargeName": "Account handlers",
"tspTswDateDated": "2017-03-24",
"tspTswDateDeleteable": false,
"tspTswDateEdittable": false,
"tspTswDateEntryno": 0,
"tspTswDateHoursNormal": 0.5,
"tspTswDateHoursOt1": 0,
"tspTswDateHoursOt2": 0,
"tspTswDateHoursTotal": 0.5,
"tspTswDateJobPhase": "1/00008562.001",
"tspTswDateStatusCode": "",
"tspTswDateStatusName": "",
"tspTswDateSubmittable": false,
"tspTswDateSubmitterNotes": "",
"tspTswDateTaskDesc": "",
"tspTswDateTimerEntrynoNormal": 0,
"tspTswDateTimerEntrynoOt1": 0,
"tspTswDateTimerEntrynoOt2": 0,
"tspTswDateTimerStatusNormal": "",
"tspTswDateTimerStatusOt1": "",
"tspTswDateTimerStatusOt2": "",
"tspTswDateTimerTimeNormal": 0,
"tspTswDateTimerTimeOt1": 0,
"tspTswDateTimerTimeOt2": 0,
"tspTswDateTimesheetInternal": 4726,
"tspTswDateType": "TIMESHEET",
"tspTswDateUnique": "",
"tspTswDateUuid": "64CDDA071EB8E14DB8D854F0A7AB68C4",
"tspTswDateWorkDone": "",
"tspTswDateWorkflow": ""
}
]
}