Field Operations
timeClock
3 endpoints. Start at search to collect IDs, then resolve them through get.
Read operations
search timeClock
Provide a set of parameters which will return a list of ids. There is no limit to the number of IDs this will return. You can then supply these ids to the get endpoint in order to retrieve bulk data. Every parameter available supports a simple value OR a powerful query object that gives you access to all basic comparators.
Example
dateAdded={"operator":">","value":"2016-01-01"}Example
dateAdded={"operator\":\"BETWEEN\",\"value\":[\"2016-05-12\",\"2016-05-13\"]}Available operators
><>=<==!=INBETWEENLIKESTARTSWITHENDSWITHCONTAINSEach of the search endpoints allows for an optional parameter 'includeData'. When sent, the API will additionally send the resolved objects for the first 1000 IDs.
Keep in mind when using 'includeData' that if there are more than 1000 items an additional property '{entity}IDsNoDataExported' will specify the items that are not included in the resolved data array.
Parameters
entryIDsintegerPrimary key.
timeClockIDsintegerPrimary key (alias)
officeIDsintegerNo description in the upstream reference.
employeeIDsintegerEmployeeID who the time clock entry applies to.
timeInstringClock-in time
timeOutstringClock-out time
paidinteger0 for unpaid categories, 1 for paid categories. Clock entries with no category association are considered paid.
includeDatainteger{0,1} Sends the resolved objects for the first 1000 IDs. If there are more than 1000 items an additional property timeClockIDsNoDataExported will specify the items that are not included in the resolved timeClock array.
Returns
timeClockIDsarrayNo description in the upstream reference.
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/timeClock/search' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'entryIDs=1' \
--data-urlencode 'timeClockIDs=1' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'Response
get timeClock
Get Bulk data for timeClock. Accepts an array of entryIDs. Returns a max of 1000 records.
Parameters
entryIDsarrayNo description in the upstream reference.
Returns
entryIDintegerUnique ID
employeeIDintegerEmployeeID time clock entry applied to
officeIDintegerofficeID the time clock entry was made on
timeInstringClock-in time in server time (PST)
timeOutstringClock-Out time in server time (PST)
clockCategoryIDintegerClock category ID that was used for this entry
paidinteger0 - time clock category is specified as unpaid, 1 - time clock category is specified as paid. If time clock category is specified as 0 or does not exist it is considered a paid entry.
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/timeClock/get' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'entryIDs=value' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'Response
Fetch by id timeClock
Get timeClock data for single ID -- please provide a specific record ID in the URL structure.
Parameters
No parameters beyond authentication.
Returns
entryIDintegerUnique ID
employeeIDintegerEmployeeID time clock entry applied to
officeIDintegerofficeID the time clock entry was made on
timeInstringClock-in time in server time (PST)
timeOutstringClock-Out time in server time (PST)
clockCategoryIDintegerClock category ID that was used for this entry
paidinteger0 - time clock category is specified as unpaid, 1 - time clock category is specified as paid. If time clock category is specified as 0 or does not exist it is considered a paid entry.
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/timeClock/{id}' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'Response