FieldRoutes API docs logoFieldRoutes API

Configuration & Audit

document

6 endpoints. Start at search to collect IDs, then resolve them through get.

Read operations

get/document/getTry it

get document

Get Bulk data for document. Accepts an array of uploadIDs. Returns a max of 1000 records.

Parameters

uploadIDsarray

No description in the upstream reference.

includeDocumentLinkinteger

Send as 1 to retrieve a link to the document on AWS with a 15 day TTL.

Returns

uploadIDinteger

Unique Identifier

officeIDinteger

No description in the upstream reference.

customerIDinteger

Customer ID

dateAddedstring

date this upload was added

addedByinteger

Employee ID that added this

descriptionstring

Description for this upload

showCustomerinteger

Set to 1 if this upload is visible to the customer

showTechinteger

Set to 1 if this upload is visible to the technician through TechRoutes.

Request

/document/get
curl -X POST 'https://{subdomain}.pestroutes.com/api/document/get' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'Accept: application/json' \
  --data-urlencode 'uploadIDs=value' \
  --data-urlencode 'includeDocumentLink=1' \
  --data-urlencode 'authenticationKey=<your-key>' \
  --data-urlencode 'authenticationToken=<your-token>'

Response

success:true
]
count:2
}
by id/document/{id}Try it

Fetch by id document

Get document data for single ID -- please provide a specific record ID in the URL structure.

Parameters

includeDocumentLinkinteger

Send as 1 to retrieve a link to the document on AWS with a 15 day TTL.

Returns

uploadIDinteger

Unique Identifier

officeIDinteger

No description in the upstream reference.

customerIDinteger

Customer ID

dateAddedstring

date this upload was added

addedByinteger

Employee ID that added this

descriptionstring

Description for this upload

showCustomerinteger

Set to 1 if this upload is visible to the customer

showTechinteger

Set to 1 if this upload is visible to the technician through TechRoutes.

Request

/document/{id}
curl -X POST 'https://{subdomain}.pestroutes.com/api/document/{id}' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'Accept: application/json' \
  --data-urlencode 'includeDocumentLink=1' \
  --data-urlencode 'authenticationKey=<your-key>' \
  --data-urlencode 'authenticationToken=<your-token>'

Response

success:true
uploadID:3567
officeID:2602
customerID:2124
dateAdded:"2026-08-10 00:00:00"
addedBy:1
description:"Sample value returned by the mock engine."
showCustomer:0
showTech:0
appointmentID:7501
prefix:1
}
}

Write operations

create/document/createTry it

create document

Upload file as multipart/form-data with parameter name uploadFile

Parameters

appointmentIDinteger

Appointment ID this document relates to

showCustomerboolean

If set true this document will be accessable to the customer it is attached to.

showTechboolean

If set true this document will be accessable to technicians servicing this customer.

Returns

Returns a success acknowledgement.

Request

/document/create
curl -X POST 'https://{subdomain}.pestroutes.com/api/document/create' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'Accept: application/json' \
  --data-urlencode 'appointmentID=1' \
  --data-urlencode 'showCustomer=value' \
  --data-urlencode 'authenticationKey=<your-key>' \
  --data-urlencode 'authenticationToken=<your-token>'

Response

success:true
documentID:4821
}
update/document/updateTry it

update document

Update the attributes of a customer upload.

Parameters

appointmentIDinteger

Appointment ID this document relates to

showCustomerboolean

If set true this document will be accessable to the customer it is attached to.

showTechboolean

If set true this document will be accessable to technicians servicing this customer. uploadID - integer - required ID of upload to update

Returns

Returns a success acknowledgement.

Request

/document/update
curl -X POST 'https://{subdomain}.pestroutes.com/api/document/update' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'Accept: application/json' \
  --data-urlencode 'appointmentID=1' \
  --data-urlencode 'showCustomer=value' \
  --data-urlencode 'authenticationKey=<your-key>' \
  --data-urlencode 'authenticationToken=<your-token>'

Response

success:true
documentID:4821
}
createEncoded/document/createEncodedTry it

createEncoded document

Allows file upload using a Base64 representation submitted through POST, GET or query string parameters

Parameters

appointmentIDinteger

Appointment ID this document relates to

showCustomerboolean

If set true this document will be accessable to the customer it is attached to.

showTechboolean

If set true this document will be accessable to technicians servicing this customer. encodedFile - string - required Base64 representation of a file. filename - string - required Name of encoded file

Returns

Returns a success acknowledgement.

Request

/document/createEncoded
curl -X POST 'https://{subdomain}.pestroutes.com/api/document/createEncoded' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'Accept: application/json' \
  --data-urlencode 'appointmentID=1' \
  --data-urlencode 'showCustomer=value' \
  --data-urlencode 'authenticationKey=<your-key>' \
  --data-urlencode 'authenticationToken=<your-token>'

Response

success:true
documentID:4821
}