Scheduling
appointmentReminder
5 endpoints. Start at search to collect IDs, then resolve them through get.
Read operations
search appointmentReminder
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
reminderIDintegerPrimary Key
reminderIDsintegerAlias of reminderID
appointmentReminderIDsintegerAlias of reminderID
officeIDsintegerOffice the reminder belongs to
appointmentIDintegerappointmentID the reminder pertains to
textstringText of the reminder
dateSentstringTime the reminder was sent
emailSentstringTime email was sent
Returns
appointmentReminderIDsarrayNo description in the upstream reference.
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/appointmentReminder/search' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'reminderID=1' \
--data-urlencode 'reminderIDs=1' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'Response
get appointmentReminder
Get Bulk data for appointmentReminder. Accepts an array of reminderIDs. Returns a max of 1000 records.
Parameters
reminderIDsarrayNo description in the upstream reference.
Returns
reminderIDintegerPrimary Key
officeIDintegerOffice the reminder belongs to
appointmentIDintegerappointmentID the reminder pertains to
textstringText of the reminder
dateSentstringTime the reminder was sent
emailSentstringTime email was sent
voiceSentstringTime voice message was sent
statusinteger-1 = don't send reminder, 0 = not sent, 1 = sent, 9 = confirmed
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/appointmentReminder/get' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'reminderIDs=value' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'Response
Fetch by id appointmentReminder
Get appointmentReminder data for single ID -- please provide a specific record ID in the URL structure.
Parameters
No parameters beyond authentication.
Returns
reminderIDintegerPrimary Key
officeIDintegerOffice the reminder belongs to
appointmentIDintegerappointmentID the reminder pertains to
textstringText of the reminder
dateSentstringTime the reminder was sent
emailSentstringTime email was sent
voiceSentstringTime voice message was sent
statusinteger-1 = don't send reminder, 0 = not sent, 1 = sent, 9 = confirmed
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/appointmentReminder/{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 appointmentReminder
create a customer
Parameters
voiceSentstringTime voice message was sent status - integer - required -1 = don't send reminder, 0 = not sent(not allowed), 1 = sent, 6 = confirmed by office, 9 = confirmed via SMS
responsestringResponse text received
responseTimestringTime response was received
sendTostringPhone number for SMS
emailAddressstringEmail address the reminder was sent to
voiceNumberstringPhone number for voice
Returns
Returns a success acknowledgement.
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/appointmentReminder/create' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'voiceSent=value' \
--data-urlencode 'response=value' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'Response
update appointmentReminder
Update appointmentReminder details
Parameters
appointmentIDintegerappointmentID the reminder pertains to
textstringText of the reminder
dateSentstringTime the reminder was sent
emailSentstringTime email was sent
voiceSentstringTime voice message was sent
statusinteger-1 = don't send reminder, 0 = not sent(not allowed), 1 = sent, 6 = confirmed by office, 9 = confirmed via SMS
responsestringResponse text received
responseTimestringTime response was received
Returns
Returns a success acknowledgement.
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/appointmentReminder/update' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'appointmentID=1' \
--data-urlencode 'text=value' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'Response