PestPac

App · 21 actions

Find customers' locations, add contacts, and follow service orders, invoices and leads in WorkWave PestPac.

Actions

ActionWhat it does
Add a contactAdd a contact to a service location.
Create a locationCreate a service location (a customer's property) in a branch.
Find bill-to accountsFind bill-to accounts (who pays) by a name, phone number or email address, or by their IDs.
Find contactsFind contacts by a name, phone number or email address, or by their IDs.
Find invoicesFind invoices by invoice number, order number or order ID.
Find locationsFind service locations by a name, address, phone number or email address.
Get a locationGet a service location's details.
Get a lookup listGet one of PestPac's lists of choices, such as its employees, services, schedules or tax codes.
Get a service orderGet a service order's details.
Get a service setupGet a recurring service setup: its service, schedule, route and price.
Get an invoiceGet an invoice's details.
List a bill-to's paymentsList the payments a bill-to account has made.
List a location's contactsList the contacts at a service location.
List a location's documentsList the documents filed against a service location.
List a location's service ordersList the service orders for a service location.
List a location's service setupsList the recurring service setups at a service location.
List a location's unpaid invoicesList the invoices still to be paid for a service location.
List leadsList sales leads, optionally for one branch.
List service ordersList service orders, optionally for a range of work dates, a branch or a type.
List webhooksList the webhooks set up for the company.
Update a contactChange a contact's details.

Add a contact

Add a contact to a service location.

Inputs

Location IDlocation_idnumberRequired
PestPac's ID for the location the contact belongs to.
First namefirst_nametextRequired
The contact's first name.
Last namelast_nametextRequired
The contact's last name.
Emailemailtext
The contact's email address.
Phonephonetext
The contact's phone number.
Mobile phonemobile_phonetext
The contact's mobile number.
Addressaddresstext
The street address.
Address line 2address2text
The second line of the address.
Citycitytext
The city.
Statestatetext
The state, as its two-letter code.
ZIP codeziptext
The ZIP code.
Commentcommenttext
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 namefirst_nametextRequired
The customer's first name.
Last namelast_nametextRequired
The customer's last name.
AddressaddresstextRequired
The street address.
Address line 2address2text
The second line of the address.
CitycitytextRequired
The city.
StatestatetextRequired
The state, as its two-letter code.
ZIP codeziptextRequired
The ZIP code.
PhonephonetextRequired
The customer's phone number.
EmailemailtextRequired
The customer's email address.
BranchbranchtextRequired
The branch the location belongs to, as PestPac names it.
Typelocation_typetextRequired
The location's type, such as Residential or Commercial, as PestPac names it.
Tax codetax_codetextRequired
The location's tax code, as in Lookup list's TaxCodes.
Mobile phonemobile_phonetext
The customer's mobile number.
Countycountytext
The county.
Commentcommenttext
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

Searchqtext
What to look for.
Bill-to IDsidstext
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

Searchqtext
What to look for.
Contact IDsidstext
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 numberinvoice_numbertext
The invoice number.
Order numberorder_numbertext
The service order's number.
Order IDorder_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

Searchqtext
What to look for: a name, address, phone number or email address.
Location IDsidstext
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 IDlocation_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

ListlookuptextRequired
Which list.One of: Employees, Schedules, Services, ServiceClasses (Service classes), Routes, TaxCodes (Tax codes), TaskTypes (Task types), TargetPests (Target pests), TechnicianRegions (Technician regions).
Branch IDbranch_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 IDorder_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 IDsetup_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 IDinvoice_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 IDbill_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 IDlocation_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 IDlocation_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 IDlocation_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 IDlocation_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 IDlocation_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

Branchbranchtext
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 datestart_datedate
Only orders worked on or after this date.
To work dateend_datedate
Only orders worked on or before this date.
Postedpostedtrue/false
On for only posted (completed) orders, off for only unposted ones.
In progressin_progresstrue/false
On for only orders being worked now.
Branchbranchtext
Only orders in this branch.
Order typeorder_typetext
Only orders of this type, as PestPac names it.
Order numberorder_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 IDcontact_idnumberRequired
PestPac's ID for the contact (its ContactID).
First namefirst_nametext
The contact's first name.
Last namelast_nametext
The contact's last name.
Emailemailtext
The contact's email address.
Phonephonetext
The contact's phone number.
Mobile phonemobile_phonetext
The contact's mobile number.
Addressaddresstext
The street address.
Address line 2address2text
The second line of the address.
Citycitytext
The city.
Statestatetext
The state, as its two-letter code.
ZIP codeziptext
The ZIP code.
Commentcommenttext
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"
  }
}

On this page