FieldRoutes API docs logoFieldRoutes API

Field Operations

employeeLocation

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

Read operations

get/employeeLocation/getTry it

get employeeLocation

Get Bulk data for employeeLocation. Accepts an array of locationIDs. Returns a max of 1000 records.

Parameters

locationIDsarray

No description in the upstream reference.

Returns

locationIDinteger

Primary key.

employeeIDinteger

EmployeeID the location is assigned to

officeIDinteger

No description in the upstream reference.

timeinteger

time the location check-in took place

latitudedouble

latitude of the check-in

longitudedouble

longitude of the check-in

Request

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

Response

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

Fetch by id employeeLocation

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

Parameters

No parameters beyond authentication.

Returns

locationIDinteger

Primary key.

employeeIDinteger

EmployeeID the location is assigned to

officeIDinteger

No description in the upstream reference.

timeinteger

time the location check-in took place

latitudedouble

latitude of the check-in

longitudedouble

longitude of the check-in

Request

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

Response

success:true
locationID:5539
employeeID:5916
officeID:2602
time:2
latitude:81.5
longitude:132.5
}
}