FieldRoutes API docs logoFieldRoutes API

Scheduling

location

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

Read operations

get/location/getTry it

get location

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

Parameters

locationIDsarray

No description in the upstream reference.

Returns

locationIDinteger

No description in the upstream reference.

officeIDinteger

No description in the upstream reference.

namestring

No description in the upstream reference.

visibleinteger

No description in the upstream reference.

systeminteger

No description in the upstream reference.

Request

/location/get
curl -X POST 'https://{subdomain}.pestroutes.com/api/location/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/location/{id}Try it

Fetch by id location

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

Parameters

No parameters beyond authentication.

Returns

locationIDinteger

No description in the upstream reference.

officeIDinteger

No description in the upstream reference.

namestring

No description in the upstream reference.

visibleinteger

No description in the upstream reference.

systeminteger

No description in the upstream reference.

Request

/location/{id}
curl -X POST 'https://{subdomain}.pestroutes.com/api/location/{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
officeID:2602
name:"Quarterly Perimeter"
visible:0
system:2
}
}