FieldRoutes API docs logoFieldRoutes API

Scheduling

serviceType

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

Read operations

get/serviceType/getTry it

get serviceType

Get Bulk data for serviceType. Accepts an array of typeIDs. Returns a max of 1000 records.

Parameters

typeIDsarray

No description in the upstream reference.

Returns

typeIDinteger

Unique Identifier

officeIDinteger

Office ID this service type belongs to, it will be -1 if it is a Global service type

descriptionstring

Service type description

frequencyinteger

Service Type Frequecy. (-1 when it is As need, 0 when it is One Time, -3 when it is Custom Schedule)

defaultChargedouble

Service type default charge

categorystring

Service type category

reserviceinteger

Service is a reservice type

defaultLengthinteger

Default appointment duration in minutes

Request

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

Response

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

Fetch by id serviceType

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

Parameters

No parameters beyond authentication.

Returns

typeIDinteger

Unique Identifier

officeIDinteger

Office ID this service type belongs to, it will be -1 if it is a Global service type

descriptionstring

Service type description

frequencyinteger

Service Type Frequecy. (-1 when it is As need, 0 when it is One Time, -3 when it is Custom Schedule)

defaultChargedouble

Service type default charge

categorystring

Service type category

reserviceinteger

Service is a reservice type

defaultLengthinteger

Default appointment duration in minutes

Request

/serviceType/{id}
curl -X POST 'https://{subdomain}.pestroutes.com/api/serviceType/{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
typeID:8552
officeID:2602
description:"Sample value returned by the mock engine."
frequency:2
defaultCharge:98.5
category:"sample-category"
reservice:0
defaultLength:1
defaultInitialCharge:132.5
initialID:2098
minimumRecurringCharge:176.5
minimumInitialCharge:15.5
regularService:1
initial:2
glAccountID:1590
}
}