Timesheets
Parameter | Type | Description |
---|---|---|
[IN] Parameters described in Overview | ||
Company [OPTIONAL] | String | [IN] The company context |
Response | JSON | [OUT] A JSON string containing a list of timesheets |
timestampfrom | Earliest time to retrieve timesheets from | |
timestampto | Latest time to retrieve timesheets from |
Description
Calling the timesheets API with no action retrieves a list of timesheets
Return Values
Response – List of timesheets.
/jsonapi/timesheets.json?company=1&version=3.1&user=user&password=user×tampfrom=1497000000×tampto=1500000000
The structure of the response is:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 2,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"data": [
{
"tsUuid": "8438CFA1DF3AFB4CBE7F89F5D2FF282F",
"tsTimeStampModified": 1499687038,
"tspending_recordversionnumber": 9,
"tsEntryNo": 12456,
"tsJobAndPhase": "1/00009301.024",
"tsStageCode": "",
"tsTaskDescription": "",
"tsChargeCode": "1/HK",
"tsResourceCode": "1/KW",
"tsMaterialCode": ""
},
{
"tsUuid": "0F6AFB34EEFB6F499CDA1A061442C965",
"tsTimeStampModified": 1498212296,
"tspending_recordversionnumber": 9,
"tsEntryNo": 12974,
"tsJobAndPhase": "1/00008562.001",
"tsStageCode": "",
"tsTaskDescription": "",
"tsChargeCode": "1/ah",
"tsResourceCode": "1/JON",
"tsMaterialCode": ""
}
]
}