Configuration & Audit
note
5 endpoints. Start at search to collect IDs, then resolve them through get.
Read operations
search note
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
noteIDsintegerNo description in the upstream reference.
officeIDsintegerNo description in the upstream reference.
customerIDsintegerNo description in the upstream reference.
datestringNo description in the upstream reference.
dateAddedstringNo description in the upstream reference.
typeIDsintegerNo description in the upstream reference.
employeeIDsintegerNo description in the upstream reference.
contentstringNo description in the upstream reference.
Returns
noteIDsarrayNo description in the upstream reference.
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/note/search' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'noteIDs=1' \
--data-urlencode 'officeIDs=1' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'Response
get note
Get Bulk data for note. Accepts an array of noteIDs. Returns a max of 1000 records.
Parameters
noteIDsarrayNo description in the upstream reference.
Returns
noteIDintegerUnique Identifier
officeIDsintegerNo description in the upstream reference.
customerIDintegerCustomer ID
customerNamestringCustomer Name
customerSpousestringSpouse Field
companyNamestringCompany Name
employeeIDintegerEmployee ID that created the note
employeeNamestringEmployee name that created the note
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/note/get' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'noteIDs=value' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'Response
Fetch by id note
Get note data for single ID -- please provide a specific record ID in the URL structure.
Parameters
No parameters beyond authentication.
Returns
noteIDintegerUnique Identifier
officeIDsintegerNo description in the upstream reference.
customerIDintegerCustomer ID
customerNamestringCustomer Name
customerSpousestringSpouse Field
companyNamestringCompany Name
employeeIDintegerEmployee ID that created the note
employeeNamestringEmployee name that created the note
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/note/{id}' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'Response
Write operations
create note
Parameters
employeeIDintegerForeign key to employees table. contactType - integer - required Foreign key to contactTypes table found via Admin > Preference > Note Types notes - string - required Arbitrary comment string
sendTostringSystem field? showOnInvoice - boolean - required 1 to display this note on invoices, 0 to hide
cancellationReasonintegerForeign key to cancellationReasons table found via Admin > Preference > Cancellation Reasons
showTechbooleanNote will be displayed to Tech can see on TechRoutes
showCustomerbooleanNote will be displayed to the customer in some service notifications
referenceIDintegerSubscription ID this note relates to.
Returns
Returns a success acknowledgement.
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/note/create' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'employeeID=1' \
--data-urlencode 'sendTo=value' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'Response
update note
Parameters
employeeIDintegerForeign key to employees table. contactType - integer - required Foreign key to contactTypes table found via Admin > Preference > Note Types
notesstringArbitrary comment string
sendTostringSystem field? showOnInvoice - boolean - required 1 to display this note on invoices, 0 to hide
cancellationReasonintegerForeign key to cancellationReasons table found via Admin > Preference > Cancellation Reasons
showTechbooleanNote will be displayed to Tech can see on TechRoutes
showCustomerbooleanNote will be displayed to the customer in some service notifications
referenceIDintegerSubscription ID this note relates to. contactID - integer - required Primary key to the notes table.
Returns
Returns a success acknowledgement.
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/note/update' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'employeeID=1' \
--data-urlencode 'notes=value' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'Response