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
| Action | What it does |
|---|---|
| Add note | Add a note to a customer's account, optionally shown to technicians or the customer. |
| Cancel appointment | Cancel an appointment, with a reason. |
| Complete appointment | Mark an appointment completed, with the technician's notes. |
| Create customer | Add a customer to the key's office. |
| Delete note | Delete a customer note. |
| Get appointment | Get one appointment with its time window, technician, status and notes. |
| Get customers | Get full customer records by ID, up to 1,000 at a time, optionally with their subscriptions. |
| List employees | List employees: technicians, office staff or sales reps. |
| List note types | List the note types notes can be filed under. |
| List offices | List the offices the API key can reach, with their time zones and addresses. |
| List routes | List routes (a technician's day of appointments) in a date range, optionally only those the API may schedule onto. |
| List service types | List the service types (kinds of service) appointments can be for. |
| Schedule appointment | Schedule a service for a customer on a route or in a spot. |
| Search appointments | Find appointments by customer, status, technician, or the days they are scheduled, were added or were completed. |
| Search customers | Find customers by name, company, email, phone, ZIP, status or the days they were added or changed. |
| Search notes | Find customer notes, optionally for one customer or containing some words. |
| Search subscriptions | Find subscriptions (recurring services), optionally for one customer or only active ones. |
| Update appointment | Change an appointment's time window, length, technician, notes, route or spot. |
| Update customer | Change 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 ID
customer_idtextRequired - The customer's ID, from 'Search customers'.
- Note type
note_type_idtextRequired - The note type, as set up in FieldRoutes.
- Note
texttextRequired - The note.
- Date
datedate - The note's date. Defaults to today.
- Technicians see it
show_techniciantrue/false - Show the note to technicians on the mobile app.
- Customer sees it
show_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 ID
appointment_idtextRequired - The appointment's ID, from 'Search appointments'.
- Reason
reasontext - Why it is cancelled.
- Cancelled by
cancelled_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 ID
appointment_idtextRequired - The appointment's ID, from 'Search appointments'.
- Notes for the customer
completion_notestext - The technician's summary of the service.
- Office notes
office_notestext - Notes only office staff see.
- Completed by
completed_bytext - The employee marking it completed.
- Serviced inside
serviced_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 name
first_nametext - The customer's first name.
- Last name
last_nametext - The customer's last name.
- Company
company_nametext - The company name, for a commercial account.
- Email
emailtext - The customer's email address.
- Phone
phonetext - The customer's main phone number, 10 digits.
- Street address
addresstext - The service address.
- City
citytext - The service city.
- State
statetext - The two-letter state code, such as TX.
- ZIP code
zip_codetext - The service ZIP code.
- Notes
notestext - General notes on the customer.
- Active
activetrue/false - Whether the customer is active. Turning it off starts FieldRoutes' cancellation steps.
- Commercial
commercialtrue/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 ID
customer_idtextRequired - The customer's ID, from 'Search customers'.
- Note ID
note_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 ID
appointment_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 IDs
customer_idslistRequired - One or more customer IDs.
- Include subscriptions
include_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
- Kind
employee_typetext - Only this kind of employee. Leave empty for all.One of:
1(Technicians),0(Office staff),2(Sales reps). - Active
activetrue/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
- From
date_fromdate - Routes on or after this day.
- To
date_todate - Routes on or before this day.
- Technician
technician_idtext - The technician.
- Open to the API only
api_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 ID
customer_idtextRequired - The customer's ID, from 'Search customers'.
- Service type
service_type_idtextRequired - The kind of service.
- Window starts
start_timetime - When the arrival window opens, in Pacific time. Defaults to the service type's.
- Window ends
end_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.
- Technician
technician_idtext - The technician.
- Notes
notestext - Notes for the technician before the service.
- Route ID
route_idtext - The route (a technician's day) to put it on, from 'List routes'.
- Spot ID
spot_idtext - The time slot on a route to put it in. Takes priority over the route.
- Subscription ID
subscription_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 ID
customer_idtext - Only this customer's appointments.
- Status
statustext - Only appointments with this status.One of:
0(Pending),1(Completed),2(No show),-1(Cancelled),-2(Rescheduled). - Scheduled from
scheduled_fromdate - Appointments on or after this day.
- Scheduled to
scheduled_todate - Appointments on or before this day.
- Added from
added_fromdate - Appointments booked on or after this day.
- Completed on
completed_ondate - Appointments completed on this day.
- Technician
technician_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
- Active
activetrue/false - On for active customers, off for inactive. Leave empty for both.
- First name
first_nametext - Exact first name.
- Last name
last_nametext - Exact last name.
- Company
company_nametext - Company name.
- Email
emailtext - Main email address.
- Phone
phonetext - Any of their phone numbers, 10 digits.
- ZIP code
zip_codetext - Service ZIP code.
- Added from
added_fromdate - Customers added on or after this day.
- Added to
added_todate - Customers added on or before this day.
- Changed from
updated_fromdate - Customers changed on or after this day.
- Changed to
updated_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 ID
customer_idtext - Only this customer's notes.
- Contains
containstext - 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 ID
customer_idtext - Only this customer's subscriptions.
- Active
activetrue/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 ID
appointment_idtextRequired - The appointment's ID, from 'Search appointments'.
- Window starts
start_timetime - When the arrival window opens, in Pacific time. Defaults to the service type's.
- Window ends
end_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.
- Technician
technician_idtext - The technician.
- Notes
notestext - Notes for the technician before the service.
- Route ID
route_idtext - The route (a technician's day) to put it on, from 'List routes'.
- Spot ID
spot_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 ID
customer_idtextRequired - The customer's ID, from 'Search customers'.
- First name
first_nametext - The customer's first name.
- Last name
last_nametext - The customer's last name.
- Company
company_nametext - The company name, for a commercial account.
- Email
emailtext - The customer's email address.
- Phone
phonetext - The customer's main phone number, 10 digits.
- Street address
addresstext - The service address.
- City
citytext - The service city.
- State
statetext - The two-letter state code, such as TX.
- ZIP code
zip_codetext - The service ZIP code.
- Notes
notestext - General notes on the customer.
- Active
activetrue/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"
}