FieldRoutes API docs logoFieldRoutes API

Customers & Sales

customerFlag

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

Read operations

get/customerFlag/getTry it

get customerFlag

Get Bulk data for customerFlag. Accepts an array of customerIDs. Returns a max of 1000 records. This function has an addition standard filter for customerFlags that will help squelch unnecessary flags.

Parameters

customerIDsarray

No description in the upstream reference.

limitCustomerFlagsstring

Standard search filter. E.G. "limitCustomerFlags": {"operator":"IN","value":["myFlag","yourflag"}

Returns

customerIDinteger

CustomerID

flagstring

Flag Code

flagValuestring

Flag Value

Request

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

Response

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

Fetch by id customerFlag

Get customerFlag data for single ID -- please provide a specific record ID in the URL structure. This function has an addition standard filter for customerFlags that will help squelch unnecessary flags.

Parameters

limitCustomerFlagsstring

Standard search filter. E.G. "limitCustomerFlags": {"operator":"IN","value":["myFlag","yourflag"}

Returns

customerIDinteger

CustomerID

flagstring

Flag Code

flagValuestring

Flag Value

Request

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

Response

success:true
customerID:2124
flag:"sample-flag"
flagValue:"sample-flagValue"
}
}