PestPac
App · 21 actions
Find customers' locations, add contacts, and follow service orders, invoices and leads in WorkWave PestPac.
Actions
| Action | What it does |
|---|---|
| Add a contact | Add a contact to a service location. |
| Create a location | Create a service location (a customer's property) in a branch. |
| Find bill-to accounts | Find bill-to accounts (who pays) by a name, phone number or email address, or by their IDs. |
| Find contacts | Find contacts by a name, phone number or email address, or by their IDs. |
| Find invoices | Find invoices by invoice number, order number or order ID. |
| Find locations | Find service locations by a name, address, phone number or email address. |
| Get a location | Get a service location's details. |
| Get a lookup list | Get one of PestPac's lists of choices, such as its employees, services, schedules or tax codes. |
| Get a service order | Get a service order's details. |
| Get a service setup | Get a recurring service setup: its service, schedule, route and price. |
| Get an invoice | Get an invoice's details. |
| List a bill-to's payments | List the payments a bill-to account has made. |
| List a location's contacts | List the contacts at a service location. |
| List a location's documents | List the documents filed against a service location. |
| List a location's service orders | List the service orders for a service location. |
| List a location's service setups | List the recurring service setups at a service location. |
| List a location's unpaid invoices | List the invoices still to be paid for a service location. |
| List leads | List sales leads, optionally for one branch. |
| List service orders | List service orders, optionally for a range of work dates, a branch or a type. |
| List webhooks | List the webhooks set up for the company. |
| Update a contact | Change a contact's details. |
Add a contact
Add a contact to a service location.
Inputs
- Location ID
location_idnumberRequired - PestPac's ID for the location the contact belongs to.
- First name
first_nametextRequired - The contact's first name.
- Last name
last_nametextRequired - The contact's last name.
- Email
emailtext - The contact's email address.
- Phone
phonetext - The contact's phone number.
- Mobile phone
mobile_phonetext - The contact's mobile number.
- Address
addresstext - The street address.
- Address line 2
address2text - The second line of the address.
- City
citytext - The city.
- State
statetext - The state, as its two-letter code.
- ZIP code
ziptext - The ZIP code.
- Comment
commenttext - A comment about the contact.
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"Address": "example",
"City": "example",
"Comment": "example",
"ContactID": 1,
"EMail": "example",
"FirstName": "example",
"LastName": "example",
"LocationID": 1,
"MobilePhone": "example",
"Phone": "example",
"State": "example",
"Zip": "example"
}
}Create a location
Create a service location (a customer's property) in a branch.
Inputs
- First name
first_nametextRequired - The customer's first name.
- Last name
last_nametextRequired - The customer's last name.
- Address
addresstextRequired - The street address.
- Address line 2
address2text - The second line of the address.
- City
citytextRequired - The city.
- State
statetextRequired - The state, as its two-letter code.
- ZIP code
ziptextRequired - The ZIP code.
- Phone
phonetextRequired - The customer's phone number.
- Email
emailtextRequired - The customer's email address.
- Branch
branchtextRequired - The branch the location belongs to, as PestPac names it.
- Type
location_typetextRequired - The location's type, such as Residential or Commercial, as PestPac names it.
- Tax code
tax_codetextRequired - The location's tax code, as in Lookup list's TaxCodes.
- Mobile phone
mobile_phonetext - The customer's mobile number.
- County
countytext - The county.
- Comment
commenttext - A comment about the location.
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"Active": true,
"Address": "example",
"Address2": "example",
"BillToID": 1,
"Branch": "example",
"City": "example",
"Company": "example",
"EMail": "example",
"FirstName": "example",
"LastName": "example",
"Latitude": 1,
"LocationCode": "example",
"LocationID": 1,
"LocationInstructions": "example",
"Longitude": 1,
"MobilePhone": "example",
"Phone": "example",
"ServiceInstructions": "example",
"State": "example",
"Type": "example",
"Zip": "example"
}
}Find bill-to accounts
Find bill-to accounts (who pays) by a name, phone number or email address, or by their IDs.
Inputs
- Search
qtext - What to look for.
- Bill-to IDs
idstext - Bill-to IDs to read, separated by commas.
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"records": [
{
"Address": "example",
"Balance": 1,
"BillToID": 1,
"City": "example",
"Company": "example",
"EMail": "example",
"FirstName": "example",
"LastName": "example",
"Phone": "example",
"State": "example",
"Zip": "example"
}
]
}
}Find contacts
Find contacts by a name, phone number or email address, or by their IDs.
Inputs
- Search
qtext - What to look for.
- Contact IDs
idstext - Contact IDs to read, separated by commas.
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"records": [
{
"Address": "example",
"City": "example",
"Comment": "example",
"ContactID": 1,
"EMail": "example",
"FirstName": "example",
"LastName": "example",
"LocationID": 1,
"MobilePhone": "example",
"Phone": "example",
"State": "example",
"Zip": "example"
}
]
}
}Find invoices
Find invoices by invoice number, order number or order ID.
Inputs
- Invoice number
invoice_numbertext - The invoice number.
- Order number
order_numbertext - The service order's number.
- Order ID
order_idnumber - PestPac's ID for the service order.
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"records": [
{
"Balance": 1,
"BillToID": 1,
"InvoiceDate": "example",
"InvoiceID": 1,
"InvoiceNumber": "example",
"LocationID": 1,
"OrderID": 1,
"Status": "example",
"Total": 1
}
]
}
}Find locations
Find service locations by a name, address, phone number or email address.
Inputs
- Search
qtext - What to look for: a name, address, phone number or email address.
- Location IDs
idstext - Location IDs to read, separated by commas.
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"records": [
{
"Active": true,
"Address": "example",
"Address2": "example",
"BillToID": 1,
"Branch": "example",
"City": "example",
"Company": "example",
"EMail": "example",
"FirstName": "example",
"LastName": "example",
"Latitude": 1,
"LocationCode": "example",
"LocationID": 1,
"LocationInstructions": "example",
"Longitude": 1,
"MobilePhone": "example",
"Phone": "example",
"ServiceInstructions": "example",
"State": "example",
"Type": "example",
"Zip": "example"
}
]
}
}Get a location
Get a service location's details.
Inputs
- Location ID
location_idnumberRequired - PestPac's ID for the location (its LocationID).
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"Active": true,
"Address": "example",
"Address2": "example",
"BillToID": 1,
"Branch": "example",
"City": "example",
"Company": "example",
"EMail": "example",
"FirstName": "example",
"LastName": "example",
"Latitude": 1,
"LocationCode": "example",
"LocationID": 1,
"LocationInstructions": "example",
"Longitude": 1,
"MobilePhone": "example",
"Phone": "example",
"ServiceInstructions": "example",
"State": "example",
"Type": "example",
"Zip": "example"
}
}Get a lookup list
Get one of PestPac's lists of choices, such as its employees, services, schedules or tax codes.
Inputs
- List
lookuptextRequired - Which list.One of:
Employees,Schedules,Services,ServiceClasses(Service classes),Routes,TaxCodes(Tax codes),TaskTypes(Task types),TargetPests(Target pests),TechnicianRegions(Technician regions). - Branch ID
branch_idtext - Only choices for this branch.
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"records": [
{}
]
}
}Get a service order
Get a service order's details.
Inputs
- Order ID
order_idnumberRequired - PestPac's ID for the service order (its OrderID).
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"BillToID": 1,
"LocationID": 1,
"OrderID": 1,
"OrderInstructions": "example",
"OrderNumber": "example",
"Posted": true,
"RouteID": 1,
"ServiceCode": "example",
"ServiceType": "example",
"Status": "example",
"Technician": "example",
"Total": 1,
"WorkDate": "example"
}
}Get a service setup
Get a recurring service setup: its service, schedule, route and price.
Inputs
- Setup ID
setup_idnumberRequired - PestPac's ID for the service setup.
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"Active": true,
"LocationID": 1,
"Price": 1,
"Route": "example",
"Schedule": "example",
"ServiceCode": "example",
"SetupID": 1,
"StartDate": "example"
}
}Get an invoice
Get an invoice's details.
Inputs
- Invoice ID
invoice_idnumberRequired - PestPac's ID for the invoice.
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"Balance": 1,
"BillToID": 1,
"InvoiceDate": "example",
"InvoiceID": 1,
"InvoiceNumber": "example",
"LocationID": 1,
"OrderID": 1,
"Status": "example",
"Total": 1
}
}List a bill-to's payments
List the payments a bill-to account has made.
Inputs
- Bill-to ID
bill_to_idnumberRequired - PestPac's ID for the bill-to account.
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"records": [
{
"Amount": 1,
"BillToID": 1,
"MethodOfPayment": "example",
"PaymentDate": "example",
"PaymentID": 1,
"PaymentType": "example"
}
]
}
}List a location's contacts
List the contacts at a service location.
Inputs
- Location ID
location_idnumberRequired - PestPac's ID for the location (its LocationID).
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"records": [
{
"Address": "example",
"City": "example",
"Comment": "example",
"ContactID": 1,
"EMail": "example",
"FirstName": "example",
"LastName": "example",
"LocationID": 1,
"MobilePhone": "example",
"Phone": "example",
"State": "example",
"Zip": "example"
}
]
}
}List a location's documents
List the documents filed against a service location.
Inputs
- Location ID
location_idnumberRequired - PestPac's ID for the location (its LocationID).
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"records": [
{
"Date": "example",
"DocumentID": 1,
"LocationID": 1,
"Name": "example",
"Tags": "example",
"URL": "example"
}
]
}
}List a location's service orders
List the service orders for a service location.
Inputs
- Location ID
location_idnumberRequired - PestPac's ID for the location (its LocationID).
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"records": [
{
"BillToID": 1,
"LocationID": 1,
"OrderID": 1,
"OrderInstructions": "example",
"OrderNumber": "example",
"Posted": true,
"RouteID": 1,
"ServiceCode": "example",
"ServiceType": "example",
"Status": "example",
"Technician": "example",
"Total": 1,
"WorkDate": "example"
}
]
}
}List a location's service setups
List the recurring service setups at a service location.
Inputs
- Location ID
location_idnumberRequired - PestPac's ID for the location (its LocationID).
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"records": [
{
"Active": true,
"LocationID": 1,
"Price": 1,
"Route": "example",
"Schedule": "example",
"ServiceCode": "example",
"SetupID": 1,
"StartDate": "example"
}
]
}
}List a location's unpaid invoices
List the invoices still to be paid for a service location.
Inputs
- Location ID
location_idnumberRequired - PestPac's ID for the location (its LocationID).
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"records": [
{
"Balance": 1,
"BillToID": 1,
"InvoiceDate": "example",
"InvoiceID": 1,
"InvoiceNumber": "example",
"LocationID": 1,
"OrderID": 1,
"Status": "example",
"Total": 1
}
]
}
}List leads
List sales leads, optionally for one branch.
Inputs
- Branch
branchtext - Only leads in this branch.
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"records": [
{
"Branch": "example",
"Company": "example",
"EMail": "example",
"EnteredDate": "example",
"FirstName": "example",
"LastName": "example",
"LeadID": 1,
"Phone": "example",
"Source": "example",
"Status": "example"
}
]
}
}List service orders
List service orders, optionally for a range of work dates, a branch or a type.
Inputs
- From work date
start_datedate - Only orders worked on or after this date.
- To work date
end_datedate - Only orders worked on or before this date.
- Posted
postedtrue/false - On for only posted (completed) orders, off for only unposted ones.
- In progress
in_progresstrue/false - On for only orders being worked now.
- Branch
branchtext - Only orders in this branch.
- Order type
order_typetext - Only orders of this type, as PestPac names it.
- Order number
order_numbertext - Only the order with this number.
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"records": [
{
"BillToID": 1,
"LocationID": 1,
"OrderID": 1,
"OrderInstructions": "example",
"OrderNumber": "example",
"Posted": true,
"RouteID": 1,
"ServiceCode": "example",
"ServiceType": "example",
"Status": "example",
"Technician": "example",
"Total": 1,
"WorkDate": "example"
}
]
}
}List webhooks
List the webhooks set up for the company.
Inputs
None.
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"records": [
{
"EntityType": "example",
"action": "example",
"id": "example",
"includeEntityBody": true,
"postToUrl": "example"
}
]
}
}Update a contact
Change a contact's details. Fields left empty keep what the contact has.
Inputs
- Contact ID
contact_idnumberRequired - PestPac's ID for the contact (its ContactID).
- First name
first_nametext - The contact's first name.
- Last name
last_nametext - The contact's last name.
- Email
emailtext - The contact's email address.
- Phone
phonetext - The contact's phone number.
- Mobile phone
mobile_phonetext - The contact's mobile number.
- Address
addresstext - The street address.
- Address line 2
address2text - The second line of the address.
- City
citytext - The city.
- State
statetext - The state, as its two-letter code.
- ZIP code
ziptext - The ZIP code.
- Comment
commenttext - A comment about the contact.
Outputs
dataobject- The response from PestPac.
Example output
{
"data": {
"Address": "example",
"City": "example",
"Comment": "example",
"ContactID": 1,
"EMail": "example",
"FirstName": "example",
"LastName": "example",
"LocationID": 1,
"MobilePhone": "example",
"Phone": "example",
"State": "example",
"Zip": "example"
}
}