Configuration & Audit
changelog
3 endpoints. Start at search to collect IDs, then resolve them through get.
Read operations
search changelog
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
officeIDsintegerNo description in the upstream reference.
classIDintegerNo description in the upstream reference.
referenceIDintegerNo description in the upstream reference.
dateChangedstringThe date this log was created
changeIDsintegerPrimary key for changelog
changelogIDsintegerPrimary key for changelog (alias)
includeDatainteger{0,1} Sends the resolved objects for the first 1000 IDs. If there are more than 1000 items an additional property changelogIDsNoDataExported will specify the items that are not included in the resolved changelog array.
Returns
changelogIDsarrayNo description in the upstream reference.
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/changelog/search' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'officeIDs=1' \
--data-urlencode 'classID=1' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'Response
get changelog
Get Bulk data for changelog. Accepts an array of changeIDs. Returns a max of 1000 records.
Parameters
changeIDsarrayNo description in the upstream reference.
Returns
changeIDintegerUnique ID
classIDintegerConstant number identifying change type. Possible Values: {"Employee":1,"Group":2,"Route":3,"Appointment":4,"Ticket":5,"PaymentProfile":6,"Subscription":7,"Customer":8,"Diagram":9,"InsectsAction":10,"ServiceTypesAction":11,"PreSetNotesAction":13,"SprayRigsAction":12,"AddOnsAction":15,"EquipmentTypesAction":14,"GenericFlagsAction":17,"DivisionsAction":20,"CancellationReasonsAction":18,"FrequencyAction":16,"VoiceMessagesAction":22,"Unit":21,"SalesAidesAction":26,"FormTemplatesAction":28,"RegionsAction":24,"DiagramMarkersAction":37,"LostReasonsAction":40,"BillingLetterTemplatesAction":29,"LocationAction":39,"ChemicalsAction":35,"CustomerSourcesAction":19,"NoteCategoriesAction":41,"SocialNetworkAction":38,"ContractTemplatesAction":27,"OfficeInfoAction":32,"DealsAction":30,"LeadStagesAction":25,"NoteTypesAction":36,"MerchantInfoAction":33,"VendorsAction":80,"AccessControlProfilesAction":23,"Document":42,"PreferencesAction":31,"CustomerCommunicationsAction":34,"ClockCategoriesAction":43,"ObjectionsAction":44,"CompetitorsAction":45,"CommissionRateAction":46,"CreditCardImportAction":47,"PreferencesBodyAction":50,"AdditionalContact":51,"StructureTemplatesAction":58,"ConditionTypesAction":55,"StructuresAction":60,"ConditionsAction":56,"ConditionTemplatesAction":57,"EmailTemplateAction":52,"EmailCategoryAction":53,"ExceptionTypesAction":59,"TimeClockEntriesAction":54,"Payment":61,"Task":62,"TimeClockSettingsAction":63,"VisualRouting":64,"TermiteReportAction":65,"TermiteFindingAction":66,"TermiteRecommendationAction":67,"TermiteAreaAction":68,"TermiteFindingTemplateAction":69,"TermiteRecommendationTemplateAction":70,"RenewalNoticeAction":71,"SubPropertyTypesAction":72,"ElementProfile":73,"BrainProfile":74,"NMIProfile":75,"SpreedlyProfile":76,"RoutesProfile":77,"PayrixProfile":79,"Equipment":78,"SkillsAction":81,"CustomFieldsAction":92,"AffiliateNetworkBillingOffice":93}
classstringName of the Class associated with the number. Possible values: Employee, Group, Route, Appointment, Ticket, PaymentProfile, Subscription, Customer, Diagram, InsectsAction, ServiceTypesAction, PreSetNotesAction, SprayRigsAction, AddOnsAction, EquipmentTypesAction, GenericFlagsAction, DivisionsAction, CancellationReasonsAction, FrequencyAction, VoiceMessagesAction, Unit, SalesAidesAction, FormTemplatesAction, RegionsAction, DiagramMarkersAction, LostReasonsAction, BillingLetterTemplatesAction, LocationAction, ChemicalsAction, CustomerSourcesAction, NoteCategoriesAction, SocialNetworkAction, ContractTemplatesAction, OfficeInfoAction, DealsAction, LeadStagesAction, NoteTypesAction, MerchantInfoAction, VendorsAction, AccessControlProfilesAction, Document, PreferencesAction, CustomerCommunicationsAction, ClockCategoriesAction, ObjectionsAction, CompetitorsAction, CommissionRateAction, CreditCardImportAction, PreferencesBodyAction, AdditionalContact, StructureTemplatesAction, ConditionTypesAction, StructuresAction, ConditionsAction, ConditionTemplatesAction, EmailTemplateAction, EmailCategoryAction, ExceptionTypesAction, TimeClockEntriesAction, Payment, Task, TimeClockSettingsAction, VisualRouting, TermiteReportAction, TermiteFindingAction, TermiteRecommendationAction, TermiteAreaAction, TermiteFindingTemplateAction, TermiteRecommendationTemplateAction, RenewalNoticeAction, SubPropertyTypesAction, ElementProfile, BrainProfile, NMIProfile, SpreedlyProfile, RoutesProfile, PayrixProfile, Equipment, SkillsAction, CustomFieldsAction, AffiliateNetworkBillingOffice
dateChangedstringDate this change was made.
employeeIDintegerID of employee who made the change.
notesobjectJSON encoded object representing the change that was made.
referenceIDintegerID of the specified class that was changed
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/changelog/get' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'changeIDs=value' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'Response
Fetch by id changelog
Get changelog data for single ID -- please provide a specific record ID in the URL structure.
Parameters
No parameters beyond authentication.
Returns
changeIDintegerUnique ID
classIDintegerConstant number identifying change type. Possible Values: {"Employee":1,"Group":2,"Route":3,"Appointment":4,"Ticket":5,"PaymentProfile":6,"Subscription":7,"Customer":8,"Diagram":9,"InsectsAction":10,"ServiceTypesAction":11,"PreSetNotesAction":13,"SprayRigsAction":12,"AddOnsAction":15,"EquipmentTypesAction":14,"GenericFlagsAction":17,"DivisionsAction":20,"CancellationReasonsAction":18,"FrequencyAction":16,"VoiceMessagesAction":22,"Unit":21,"SalesAidesAction":26,"FormTemplatesAction":28,"RegionsAction":24,"DiagramMarkersAction":37,"LostReasonsAction":40,"BillingLetterTemplatesAction":29,"LocationAction":39,"ChemicalsAction":35,"CustomerSourcesAction":19,"NoteCategoriesAction":41,"SocialNetworkAction":38,"ContractTemplatesAction":27,"OfficeInfoAction":32,"DealsAction":30,"LeadStagesAction":25,"NoteTypesAction":36,"MerchantInfoAction":33,"VendorsAction":80,"AccessControlProfilesAction":23,"Document":42,"PreferencesAction":31,"CustomerCommunicationsAction":34,"ClockCategoriesAction":43,"ObjectionsAction":44,"CompetitorsAction":45,"CommissionRateAction":46,"CreditCardImportAction":47,"PreferencesBodyAction":50,"AdditionalContact":51,"StructureTemplatesAction":58,"ConditionTypesAction":55,"StructuresAction":60,"ConditionsAction":56,"ConditionTemplatesAction":57,"EmailTemplateAction":52,"EmailCategoryAction":53,"ExceptionTypesAction":59,"TimeClockEntriesAction":54,"Payment":61,"Task":62,"TimeClockSettingsAction":63,"VisualRouting":64,"TermiteReportAction":65,"TermiteFindingAction":66,"TermiteRecommendationAction":67,"TermiteAreaAction":68,"TermiteFindingTemplateAction":69,"TermiteRecommendationTemplateAction":70,"RenewalNoticeAction":71,"SubPropertyTypesAction":72,"ElementProfile":73,"BrainProfile":74,"NMIProfile":75,"SpreedlyProfile":76,"RoutesProfile":77,"PayrixProfile":79,"Equipment":78,"SkillsAction":81,"CustomFieldsAction":92,"AffiliateNetworkBillingOffice":93}
classstringName of the Class associated with the number. Possible values: Employee, Group, Route, Appointment, Ticket, PaymentProfile, Subscription, Customer, Diagram, InsectsAction, ServiceTypesAction, PreSetNotesAction, SprayRigsAction, AddOnsAction, EquipmentTypesAction, GenericFlagsAction, DivisionsAction, CancellationReasonsAction, FrequencyAction, VoiceMessagesAction, Unit, SalesAidesAction, FormTemplatesAction, RegionsAction, DiagramMarkersAction, LostReasonsAction, BillingLetterTemplatesAction, LocationAction, ChemicalsAction, CustomerSourcesAction, NoteCategoriesAction, SocialNetworkAction, ContractTemplatesAction, OfficeInfoAction, DealsAction, LeadStagesAction, NoteTypesAction, MerchantInfoAction, VendorsAction, AccessControlProfilesAction, Document, PreferencesAction, CustomerCommunicationsAction, ClockCategoriesAction, ObjectionsAction, CompetitorsAction, CommissionRateAction, CreditCardImportAction, PreferencesBodyAction, AdditionalContact, StructureTemplatesAction, ConditionTypesAction, StructuresAction, ConditionsAction, ConditionTemplatesAction, EmailTemplateAction, EmailCategoryAction, ExceptionTypesAction, TimeClockEntriesAction, Payment, Task, TimeClockSettingsAction, VisualRouting, TermiteReportAction, TermiteFindingAction, TermiteRecommendationAction, TermiteAreaAction, TermiteFindingTemplateAction, TermiteRecommendationTemplateAction, RenewalNoticeAction, SubPropertyTypesAction, ElementProfile, BrainProfile, NMIProfile, SpreedlyProfile, RoutesProfile, PayrixProfile, Equipment, SkillsAction, CustomFieldsAction, AffiliateNetworkBillingOffice
dateChangedstringDate this change was made.
employeeIDintegerID of employee who made the change.
notesobjectJSON encoded object representing the change that was made.
referenceIDintegerID of the specified class that was changed
Request
curl -X POST 'https://{subdomain}.pestroutes.com/api/changelog/{id}' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'Response