Timer

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areatspending.json
GeneralYesParameters described in overviewsee overviewStructure of an API call
CompanyYesThe company numbercompany=1
ActionYesThe action to performSee below
IdentifierYesTS pending IDtspending=714
InputYesJSON stringSee below

The action parameter is constructed as follows:
Timer ActionTime TypeAction Parameter
Startnormaltimerstartnormal
ot1timerstartot1
ot2timerstartot2
Pausenormaltimerpausenormal
ot1timerpauseot1
ot2timerpauseot2
Resumenormaltimerresumenormal
ot1timerresumeot1
ot2timerresumeot2
Stopnormaltimerstopnormal
ot1timerstopot1
ot2timerstopot2
Cancelnormaltimercancelnormal
ot1timercancelot1
ot2timercancelot2
Discardnormaltimerdiscardnormal
ot1timerdiscardot1
ot2timerdiscardot2
Removenormaltimerremovenormal
ot1timerremoveot1
ot2timerremoveot2
Elapsednormaltimerelapsednormal
ot1timerelapsedot1
ot2timerelapsedot2

Example request:

http://<SERVER>/jsonapi/tspending.json?user=user&password=user&version=3.9&tspending=1023&action=timerstartnormal

Example response:

{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "",
"warningmessage": "",
"success": true,
"synapiversion": 3.8,
"data": [
{
"tspUuid": "235B775146784B1CBC8FAB6719F45873",
"tspEntryNo": 1023,
"tspTimerStartDateNormal": "2020-11-14",
"tspTimerStatusNormal": "RUNNING"
}
]
}