Customers & Sales
review
5 endpoints. Start at search to collect IDs, then resolve them through get.
Read operations
search review
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
feedbackIDsintegerNo description in the upstream reference.
officeIDsintegerNo description in the upstream reference.
customerIDsintegerNo description in the upstream reference.
appointmentIDsintegerNo description in the upstream reference.
datestringNo description in the upstream reference.
starRatingintegerNo description in the upstream reference.
favorableintegerNo description in the upstream reference.
includeDatainteger{0,1} Sends the resolved objects for the first 1000 IDs. If there are more than 1000 items an additional property reviewIDsNoDataExported will specify the items that are not included in the resolved review array.
Returns
reviewIDsarrayNo description in the upstream reference.
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/review/search' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'feedbackIDs=1' \
--data-urlencode 'officeIDs=1' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'Response
get review
Get Bulk data for review. Accepts an array of feedbackIDs. Returns a max of 1000 records. This function has an additional non-standard filter "includeCustomers". If true, the Customer object will be included in the results.
Parameters
feedbackIDsarrayNo description in the upstream reference.
includeCustomersintegerSet true to include the Customer object in review results..
pruneSensitiveInfointegerSet true to return review text that has been pruned of credit card, phone, and email information.
pruneProfanityintegerSet true to return review text that has been pruned of common profanity.
Returns
feedbackIDintegerNo description in the upstream reference.
officeIDsintegerNo description in the upstream reference.
customerIDintegerNo description in the upstream reference.
appointmentIDintegerNo description in the upstream reference.
datestringNo description in the upstream reference.
starRatingintegerNo description in the upstream reference.
feedbackstringNo description in the upstream reference.
favorableintegerNo description in the upstream reference.
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/review/get' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'feedbackIDs=value' \
--data-urlencode 'includeCustomers=1' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'Response
Fetch by id review
Get review data for single ID -- please provide a specific record ID in the URL structure. This function has an additional non-standard filter "includeCustomers". If true, the Customer object will be included in the results.
Parameters
includeCustomersintegerSet true to include the Customer object in review results..
pruneSensitiveInfointegerSet true to return review text that has been pruned of credit card, phone, and email information.
pruneProfanityintegerSet true to return review text that has been pruned of common profanity.
Returns
feedbackIDintegerNo description in the upstream reference.
officeIDsintegerNo description in the upstream reference.
customerIDintegerNo description in the upstream reference.
appointmentIDintegerNo description in the upstream reference.
datestringNo description in the upstream reference.
starRatingintegerNo description in the upstream reference.
feedbackstringNo description in the upstream reference.
favorableintegerNo description in the upstream reference.
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/review/{id}' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'includeCustomers=1' \
--data-urlencode 'pruneSensitiveInfo=1' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'Response
summary review
Parameters
zipCodesarrayZip codes to summarize
citiesarrayCities to summarize
officeIDsarrayForeign key to offices table. Default: officeID associated with the API key sent.
customerIDsarrayForeign key to customers table
startTimestringLeft bound for feedback time
endTimestringRight bound for feedback time
Returns
starsobjectObject filled with stars E.G. {1:100, 2:101, 3:200, 4:300, 5:400}
zipsobjectObject filled with zip information E.G. {75252: {num:700, average: 2.5, zip: 75252} }
citiesobjectObject filled with city information E.G. {Dallas: {num:700, average: 2.5, city: "Dallas"} }
averagedoubleAverage star rating for the given parameters
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/review/summary' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'zipCodes=value' \
--data-urlencode 'cities=value' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'Response
Write operations
update review
Parameters
appointmentIDintegerForeign key to appointments table
customerIDintegerForeign key to customers table
starRatingintegerInteger 1-5 as star rating.
feedbackstringCustomer Feedback String
timestringTime the feedback was given feedbackID - integer - required Primary key to the customerFeedback table.
Returns
Returns a success acknowledgement.
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/review/update' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'appointmentID=1' \
--data-urlencode 'customerID=1' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'Response