FieldRoutes

App · 19 actions

Run your pest control or lawn care business in FieldRoutes: find and add customers, schedule, update, cancel and complete appointments, read subscriptions and routes, and keep notes.

Actions

ActionWhat it does
Add noteAdd a note to a customer's account, optionally shown to technicians or the customer.
Cancel appointmentCancel an appointment, with a reason.
Complete appointmentMark an appointment completed, with the technician's notes.
Create customerAdd a customer to the key's office.
Delete noteDelete a customer note.
Get appointmentGet one appointment with its time window, technician, status and notes.
Get customersGet full customer records by ID, up to 1,000 at a time, optionally with their subscriptions.
List employeesList employees: technicians, office staff or sales reps.
List note typesList the note types notes can be filed under.
List officesList the offices the API key can reach, with their time zones and addresses.
List routesList routes (a technician's day of appointments) in a date range, optionally only those the API may schedule onto.
List service typesList the service types (kinds of service) appointments can be for.
Schedule appointmentSchedule a service for a customer on a route or in a spot.
Search appointmentsFind appointments by customer, status, technician, or the days they are scheduled, were added or were completed.
Search customersFind customers by name, company, email, phone, ZIP, status or the days they were added or changed.
Search notesFind customer notes, optionally for one customer or containing some words.
Search subscriptionsFind subscriptions (recurring services), optionally for one customer or only active ones.
Update appointmentChange an appointment's time window, length, technician, notes, route or spot.
Update customerChange a customer's name, contact details, address, notes or status.

Add note

Add a note to a customer's account, optionally shown to technicians or the customer.

Inputs

Customer IDcustomer_idtextRequired
The customer's ID, from 'Search customers'.
Note typenote_type_idtextRequired
The note type, as set up in FieldRoutes.
NotetexttextRequired
The note.
Datedatedate
The note's date. Defaults to today.
Technicians see itshow_techniciantrue/false
Show the note to technicians on the mobile app.
Customer sees itshow_customertrue/false
Show the note to the customer in notifications and the portal.

Outputs

note_idtext
The new note's ID
Example output
{
  "note_id": "7001"
}

Cancel appointment

Cancel an appointment, with a reason. It can't be undone through the API.

Inputs

Appointment IDappointment_idtextRequired
The appointment's ID, from 'Search appointments'.
Reasonreasontext
Why it is cancelled.
Cancelled bycancelled_bytext
The employee cancelling it.

Outputs

appointment_idtext
The appointment
cancelledtrue/false
True once cancelled
Example output
{
  "appointment_id": "5001",
  "cancelled": true
}

Complete appointment

Mark an appointment completed, with the technician's notes. This runs FieldRoutes' completion steps, such as invoicing.

Inputs

Appointment IDappointment_idtextRequired
The appointment's ID, from 'Search appointments'.
Notes for the customercompletion_notestext
The technician's summary of the service.
Office notesoffice_notestext
Notes only office staff see.
Completed bycompleted_bytext
The employee marking it completed.
Serviced insideserviced_interiortrue/false
On if the interior was serviced.

Outputs

appointmentobject
The appointment
completedtrue/false
True once completed
Example output
{
  "appointment": {
    "appointmentID": "5001",
    "assignedTech": "21",
    "customerID": "101",
    "date": "2026-12-02",
    "dateAdded": "2026-11-30 08:05:00",
    "dateCompleted": "0000-00-00",
    "duration": "30",
    "end": "10:00:00",
    "notes": "Gate code 1234",
    "routeID": "301",
    "servicedBy": "0",
    "spotID": "9001",
    "start": "08:00:00",
    "status": "1",
    "statusText": "Completed",
    "subscriptionID": "-1",
    "type": "4"
  },
  "completed": true
}

Create customer

Add a customer to the key's office. Give a first name, last name or company.

Inputs

First namefirst_nametext
The customer's first name.
Last namelast_nametext
The customer's last name.
Companycompany_nametext
The company name, for a commercial account.
Emailemailtext
The customer's email address.
Phonephonetext
The customer's main phone number, 10 digits.
Street addressaddresstext
The service address.
Citycitytext
The service city.
Statestatetext
The two-letter state code, such as TX.
ZIP codezip_codetext
The service ZIP code.
Notesnotestext
General notes on the customer.
Activeactivetrue/false
Whether the customer is active. Turning it off starts FieldRoutes' cancellation steps.
Commercialcommercialtrue/false
A commercial (not residential) account.

Outputs

customerobject
The new customer
customer_idtext
The new customer's ID
Example output
{
  "customer": {
    "address": "100 Main St",
    "balance": "0.00",
    "city": "Austin",
    "companyName": "",
    "customerID": "101",
    "dateAdded": "2026-11-30 08:00:00",
    "dateUpdated": "2026-11-30 08:00:00",
    "email": "jane@example.com",
    "fname": "Jane",
    "lname": "Doe",
    "officeID": "1",
    "phone1": "5125550100",
    "state": "TX",
    "status": "1",
    "statusText": "Active",
    "zip": "78701"
  },
  "customer_id": "101"
}

Delete note

Delete a customer note. It can't be undone.

Inputs

Customer IDcustomer_idtextRequired
The customer's ID, from 'Search customers'.
Note IDnote_idtextRequired
The note's ID, from 'Add note' or 'Search notes'.

Outputs

deletedtrue/false
True once deleted
note_idtext
The note deleted
Example output
{
  "deleted": true,
  "note_id": "7001"
}

Get appointment

Get one appointment with its time window, technician, status and notes.

Inputs

Appointment IDappointment_idtextRequired
The appointment's ID, from 'Search appointments'.

Outputs

appointmentobject
The appointment
Example output
{
  "appointment": {
    "appointmentID": "5001",
    "assignedTech": "21",
    "customerID": "101",
    "date": "2026-12-02",
    "dateAdded": "2026-11-30 08:05:00",
    "dateCompleted": "0000-00-00",
    "duration": "30",
    "end": "10:00:00",
    "notes": "Gate code 1234",
    "routeID": "301",
    "servicedBy": "0",
    "spotID": "9001",
    "start": "08:00:00",
    "status": "0",
    "statusText": "Pending",
    "subscriptionID": "-1",
    "type": "4"
  }
}

Get customers

Get full customer records by ID, up to 1,000 at a time, optionally with their subscriptions.

Inputs

Customer IDscustomer_idslistRequired
One or more customer IDs.
Include subscriptionsinclude_subscriptionstrue/false
Also return each customer's subscriptions.

Outputs

countnumber
How many were returned
customerslist
The customers
Example output
{
  "count": 1,
  "customers": [
    {
      "address": "100 Main St",
      "balance": "0.00",
      "city": "Austin",
      "companyName": "",
      "customerID": "101",
      "dateAdded": "2026-11-30 08:00:00",
      "dateUpdated": "2026-11-30 08:00:00",
      "email": "jane@example.com",
      "fname": "Jane",
      "lname": "Doe",
      "officeID": "1",
      "phone1": "5125550100",
      "state": "TX",
      "status": "1",
      "statusText": "Active",
      "zip": "78701"
    }
  ]
}

List employees

List employees: technicians, office staff or sales reps.

Inputs

Kindemployee_typetext
Only this kind of employee. Leave empty for all.One of: 1 (Technicians), 0 (Office staff), 2 (Sales reps).
Activeactivetrue/false
On for active employees (FieldRoutes' default), off for inactive.

Outputs

countnumber
How many records were returned (at most 1,000)
employeeslist
The employees
idslist
The IDs of every match
totalnumber
How many match in all
Example output
{
  "count": 1,
  "employees": [
    {
      "active": "1",
      "email": "sam@example.com",
      "employeeID": "21",
      "fname": "Sam",
      "lname": "Tech",
      "phone": "5125550101",
      "type": "1"
    }
  ],
  "ids": [
    "21"
  ],
  "total": 1
}

List note types

List the note types notes can be filed under.

Inputs

None.

Outputs

contactTypeslist
The note types
countnumber
How many records were returned (at most 1,000)
idslist
The IDs of every match
totalnumber
How many match in all
Example output
{
  "contactTypes": [
    {
      "contactType": "General",
      "contactTypeID": "7",
      "visible": "1"
    }
  ],
  "count": 1,
  "ids": [
    "7"
  ],
  "total": 1
}

List offices

List the offices the API key can reach, with their time zones and addresses.

Inputs

None.

Outputs

countnumber
How many records were returned (at most 1,000)
idslist
The IDs of every match
officeslist
The offices
totalnumber
How many match in all
Example output
{
  "count": 1,
  "ids": [
    "1"
  ],
  "offices": [
    {
      "city": "Austin",
      "officeID": "1",
      "officeName": "Austin",
      "state": "TX",
      "timeZone": "America/Chicago"
    }
  ],
  "total": 1
}

List routes

List routes (a technician's day of appointments) in a date range, optionally only those the API may schedule onto.

Inputs

Fromdate_fromdate
Routes on or after this day.
Todate_todate
Routes on or before this day.
Techniciantechnician_idtext
The technician.
Open to the API onlyapi_can_scheduletrue/false
Only routes the API may put appointments on.

Outputs

countnumber
How many records were returned (at most 1,000)
idslist
The IDs of every match
routeslist
The routes
totalnumber
How many match in all
Example output
{
  "count": 1,
  "ids": [
    "301"
  ],
  "routes": [
    {
      "apiCanSchedule": "1",
      "assignedTech": "21",
      "date": "2026-12-02",
      "groupTitle": "North",
      "routeID": "301",
      "title": "Sam - North"
    }
  ],
  "total": 1
}

List service types

List the service types (kinds of service) appointments can be for.

Inputs

None.

Outputs

countnumber
How many records were returned (at most 1,000)
idslist
The IDs of every match
serviceTypeslist
The service types
totalnumber
How many match in all
Example output
{
  "count": 1,
  "ids": [
    "4"
  ],
  "serviceTypes": [
    {
      "category": "Pest Control",
      "defaultCharge": "99.00",
      "defaultLength": "30",
      "description": "General pest",
      "typeID": "4"
    }
  ],
  "total": 1
}

Schedule appointment

Schedule a service for a customer on a route or in a spot. The route must let the API schedule onto it.

Inputs

Customer IDcustomer_idtextRequired
The customer's ID, from 'Search customers'.
Service typeservice_type_idtextRequired
The kind of service.
Window startsstart_timetime
When the arrival window opens, in Pacific time. Defaults to the service type's.
Window endsend_timetime
When the arrival window closes, in Pacific time.
Length (minutes)durationnumber
How long the service takes. Defaults to the service type's.At least 1.
Techniciantechnician_idtext
The technician.
Notesnotestext
Notes for the technician before the service.
Route IDroute_idtext
The route (a technician's day) to put it on, from 'List routes'.
Spot IDspot_idtext
The time slot on a route to put it in. Takes priority over the route.
Subscription IDsubscription_idtext
The subscription it belongs to. Leave empty for a one-off service.

Outputs

appointmentobject
The new appointment
appointment_idtext
The new appointment's ID
Example output
{
  "appointment": {
    "appointmentID": "5001",
    "assignedTech": "21",
    "customerID": "101",
    "date": "2026-12-02",
    "dateAdded": "2026-11-30 08:05:00",
    "dateCompleted": "0000-00-00",
    "duration": "30",
    "end": "10:00:00",
    "notes": "Gate code 1234",
    "routeID": "301",
    "servicedBy": "0",
    "spotID": "9001",
    "start": "08:00:00",
    "status": "0",
    "statusText": "Pending",
    "subscriptionID": "-1",
    "type": "4"
  },
  "appointment_id": "5001"
}

Search appointments

Find appointments by customer, status, technician, or the days they are scheduled, were added or were completed. Without a status, pending and completed ones are found. Returns up to 1,000 full records.

Inputs

Customer IDcustomer_idtext
Only this customer's appointments.
Statusstatustext
Only appointments with this status.One of: 0 (Pending), 1 (Completed), 2 (No show), -1 (Cancelled), -2 (Rescheduled).
Scheduled fromscheduled_fromdate
Appointments on or after this day.
Scheduled toscheduled_todate
Appointments on or before this day.
Added fromadded_fromdate
Appointments booked on or after this day.
Completed oncompleted_ondate
Appointments completed on this day.
Techniciantechnician_idtext
The technician.

Outputs

appointmentslist
The appointments
countnumber
How many records were returned (at most 1,000)
idslist
The IDs of every match
totalnumber
How many match in all
Example output
{
  "appointments": [
    {
      "appointmentID": "5001",
      "assignedTech": "21",
      "customerID": "101",
      "date": "2026-12-02",
      "dateAdded": "2026-11-30 08:05:00",
      "dateCompleted": "0000-00-00",
      "duration": "30",
      "end": "10:00:00",
      "notes": "Gate code 1234",
      "routeID": "301",
      "servicedBy": "0",
      "spotID": "9001",
      "start": "08:00:00",
      "status": "0",
      "statusText": "Pending",
      "subscriptionID": "-1",
      "type": "4"
    }
  ],
  "count": 1,
  "ids": [
    "5001"
  ],
  "total": 1
}

Search customers

Find customers by name, company, email, phone, ZIP, status or the days they were added or changed. Returns up to 1,000 full records.

Inputs

Activeactivetrue/false
On for active customers, off for inactive. Leave empty for both.
First namefirst_nametext
Exact first name.
Last namelast_nametext
Exact last name.
Companycompany_nametext
Company name.
Emailemailtext
Main email address.
Phonephonetext
Any of their phone numbers, 10 digits.
ZIP codezip_codetext
Service ZIP code.
Added fromadded_fromdate
Customers added on or after this day.
Added toadded_todate
Customers added on or before this day.
Changed fromupdated_fromdate
Customers changed on or after this day.
Changed toupdated_todate
Customers changed on or before this day.

Outputs

countnumber
How many records were returned (at most 1,000)
customerslist
The customers
idslist
The IDs of every match
totalnumber
How many match in all
Example output
{
  "count": 1,
  "customers": [
    {
      "address": "100 Main St",
      "balance": "0.00",
      "city": "Austin",
      "companyName": "",
      "customerID": "101",
      "dateAdded": "2026-11-30 08:00:00",
      "dateUpdated": "2026-11-30 08:00:00",
      "email": "jane@example.com",
      "fname": "Jane",
      "lname": "Doe",
      "officeID": "1",
      "phone1": "5125550100",
      "state": "TX",
      "status": "1",
      "statusText": "Active",
      "zip": "78701"
    }
  ],
  "ids": [
    "101"
  ],
  "total": 1
}

Search notes

Find customer notes, optionally for one customer or containing some words.

Inputs

Customer IDcustomer_idtext
Only this customer's notes.
Containscontainstext
Only notes with these words in them.

Outputs

countnumber
How many records were returned (at most 1,000)
idslist
The IDs of every match
noteslist
The notes
totalnumber
How many match in all
Example output
{
  "count": 1,
  "ids": [
    "7001"
  ],
  "notes": [
    {
      "customerID": "101",
      "date": "2026-11-30",
      "employeeName": "Sam Tech",
      "noteID": "7001",
      "notes": "Called about pricing",
      "typeID": "7"
    }
  ],
  "total": 1
}

Search subscriptions

Find subscriptions (recurring services), optionally for one customer or only active ones. Returns up to 1,000 full records.

Inputs

Customer IDcustomer_idtext
Only this customer's subscriptions.
Activeactivetrue/false
On for active subscriptions, off for inactive.

Outputs

countnumber
How many records were returned (at most 1,000)
idslist
The IDs of every match
subscriptionslist
The subscriptions
totalnumber
How many match in all
Example output
{
  "count": 1,
  "ids": [
    "8001"
  ],
  "subscriptions": [
    {
      "active": "1",
      "customerID": "101",
      "dateAdded": "2026-01-15 09:00:00",
      "frequency": "90",
      "lastCompleted": "2026-11-30",
      "nextService": "2027-02-28",
      "recurringCharge": "99.00",
      "serviceType": "General pest",
      "subscriptionID": "8001"
    }
  ],
  "total": 1
}

Update appointment

Change an appointment's time window, length, technician, notes, route or spot. Only the fields given change.

Inputs

Appointment IDappointment_idtextRequired
The appointment's ID, from 'Search appointments'.
Window startsstart_timetime
When the arrival window opens, in Pacific time. Defaults to the service type's.
Window endsend_timetime
When the arrival window closes, in Pacific time.
Length (minutes)durationnumber
How long the service takes. Defaults to the service type's.At least 1.
Techniciantechnician_idtext
The technician.
Notesnotestext
Notes for the technician before the service.
Route IDroute_idtext
The route (a technician's day) to put it on, from 'List routes'.
Spot IDspot_idtext
The time slot on a route to put it in. Takes priority over the route.

Outputs

appointmentobject
The appointment
appointment_idtext
The appointment's ID
Example output
{
  "appointment": {
    "appointmentID": "5001",
    "assignedTech": "21",
    "customerID": "101",
    "date": "2026-12-02",
    "dateAdded": "2026-11-30 08:05:00",
    "dateCompleted": "0000-00-00",
    "duration": "30",
    "end": "10:00:00",
    "notes": "Dog in yard",
    "routeID": "301",
    "servicedBy": "0",
    "spotID": "9001",
    "start": "08:00:00",
    "status": "0",
    "statusText": "Pending",
    "subscriptionID": "-1",
    "type": "4"
  },
  "appointment_id": "5001"
}

Update customer

Change a customer's name, contact details, address, notes or status. Only the fields given change.

Inputs

Customer IDcustomer_idtextRequired
The customer's ID, from 'Search customers'.
First namefirst_nametext
The customer's first name.
Last namelast_nametext
The customer's last name.
Companycompany_nametext
The company name, for a commercial account.
Emailemailtext
The customer's email address.
Phonephonetext
The customer's main phone number, 10 digits.
Street addressaddresstext
The service address.
Citycitytext
The service city.
Statestatetext
The two-letter state code, such as TX.
ZIP codezip_codetext
The service ZIP code.
Notesnotestext
General notes on the customer.
Activeactivetrue/false
Whether the customer is active. Turning it off starts FieldRoutes' cancellation steps.

Outputs

customerobject
The customer
customer_idtext
The customer's ID
Example output
{
  "customer": {
    "address": "100 Main St",
    "balance": "0.00",
    "city": "Austin",
    "companyName": "",
    "customerID": "101",
    "dateAdded": "2026-11-30 08:00:00",
    "dateUpdated": "2026-11-30 08:00:00",
    "email": "jane@example.com",
    "fname": "Jane",
    "lname": "Doe",
    "officeID": "1",
    "phone1": "5125550199",
    "state": "TX",
    "status": "1",
    "statusText": "Active",
    "zip": "78701"
  },
  "customer_id": "101"
}

On this page