FieldRoutes API docs logoFieldRoutes API

Scheduling

cancellationReason

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

Read operations

get/cancellationReason/getTry it

get cancellationReason

Get Bulk data for cancellationReason. Accepts an array of reasonIDs. Returns a max of 1000 records.

Parameters

reasonIDsarray

No description in the upstream reference.

Returns

reasonIDinteger

No description in the upstream reference.

officeIDinteger

No description in the upstream reference.

visibleinteger

Used by the FieldRoutes application to hide/show reasons from staff

systemReservedinteger

Used by the FieldRoutes application to specify fixed system actions

reasonstring

Description of the cancellation reason

Request

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

Response

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

Fetch by id cancellationReason

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

Parameters

No parameters beyond authentication.

Returns

reasonIDinteger

No description in the upstream reference.

officeIDinteger

No description in the upstream reference.

visibleinteger

Used by the FieldRoutes application to hide/show reasons from staff

systemReservedinteger

Used by the FieldRoutes application to specify fixed system actions

reasonstring

Description of the cancellation reason

Request

/cancellationReason/{id}
curl -X POST 'https://{subdomain}.pestroutes.com/api/cancellationReason/{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
reasonID:4850
officeID:2602
visible:0
systemReserved:1
reason:"sample-reason"
}
}