Timer Pause

Timerpausenormal

ParameterTypeDescription

[IN]

Parameters described in Overview

ActionString

[IN]

Identifier for the list requested

InputString

[IN]

timesheet entry number

ResponseXML/JSON

[OUT]

An XML tree / JSON string containing the success or error response

Description

Calling the timesheets API with an action of timerpausenormal pauses a running timer for the timesheet entry no and retrieves a response containing the entry no for the timer paused, the current timer status for that entry no and the elapsed time (seconds) for the paused timer.

Replace "normal" with "ot1" or "ot2" to access the overtime timers instead.

Return Values

Response – JSON. A JSON string containing success or error response.

The structure of the response is:

<Responses>
<Success>
<SuccessText/>
<Data>
<tspending_uuid>1FE31E624E78AD47AED0B162D48A642E</tspending_uuid>
</Data>
<Data>
<tspending_entryno>466</tspending_entryno>
</Data>
<Data>
<variable_timesheettimerstatusnormal__tspending_entryno>
PAUSED
</variable_timesheettimerstatusnormal__tspending_entryno>
</Data>
<Data>
<variable_timesheettimerelapsednormal__tspending_entryno>
226
</variable_timesheettimerelapsednormal__tspending_entryno>
</Data>
</Success>
</Responses>
{
    "responsecode": 1,
    "responsestatus": "OK",
    "errorcode": 0,
    "errormessage": "",
    "totalrows": 1,
    "totalpages": 1,
    "responsemessage": "",
    "pagerows": 0,
    "pagenumber": 1,
    "success": true,
    "data": [
        {
            "tspending_uuid": "90CB61F8DED2894FB469F1C9ED3BDE8F",
            "tspending_entryno": 466,
            "variable_timesheettimerelapsednormal__tspending_entryno": 12,
            "variable_timesheettimerstatusnormal__tspending_entryno": "PAUSED"
        }
    ]
}