Trendsic Platform Service

<back to all web services

VisitExceptionsRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/visits/exceptions
VisitExceptionsResponse Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<ExceptionItem>No
MissedCountformintNo
SlaCountformintNo
SkippedCountformintNo
AtRiskCountformintNo
ResponseStatusformResponseStatusNo
ExceptionItem Parameters:
NameParameterData TypeRequiredDescription
KindformstringNo
VisitKeyformstringNo
JobIDformintNo
ProjectIDformintNo
AgreementIDformint?No
AgreementJobIDformint?No
OccurrenceDateformstringNo
CustomerNameformstringNo
LocationNameformstringNo
CityformstringNo
Latformdouble?No
Lngformdouble?No
AgeDaysformintNo
ReasonformstringNo
DurationMinutesformintNo
IsCommercialformboolNo
PreferredCrewIDformint?No

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/visits/exceptions HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Items":[{"Kind":"String","VisitKey":"String","JobID":0,"ProjectID":0,"AgreementID":0,"AgreementJobID":0,"OccurrenceDate":"String","CustomerName":"String","LocationName":"String","City":"String","Lat":0,"Lng":0,"AgeDays":0,"Reason":"String","DurationMinutes":0,"IsCommercial":false,"PreferredCrewID":0}],"MissedCount":0,"SlaCount":0,"SkippedCount":0,"AtRiskCount":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}