Trendsic Platform Service

<back to all web services

VisitBoardRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/visits/board
VisitBoardRequest Parameters:
NameParameterData TypeRequiredDescription
DatequerystringNo
VisitBoardResponse Parameters:
NameParameterData TypeRequiredDescription
DateformstringNo
CrewsformList<CrewColumn>No
UnassignedformList<VisitCard>No
ReadinessformBoardReadinessNo
ResponseStatusformResponseStatusNo
CrewColumn Parameters:
NameParameterData TypeRequiredDescription
CrewIDformintNo
CrewNameformstringNo
CrewColorformstringNo
MemberCountformintNo
VisitsformList<VisitCard>No
DriveMilesformdoubleNo
DriveMinutesformintNo
OnSiteMinutesformintNo
BillablePctformintNo
VisitCard Parameters:
NameParameterData TypeRequiredDescription
VisitKeyformstringNo
JobIDformintNo
ProjectIDformintNo
ProjectUIDformstringNo
AgreementJobIDformint?No
ScheduledDateformstringNo
CustomerNameformstringNo
JobNameformstringNo
LocationNameformstringNo
CityformstringNo
ZipformstringNo
Latformdouble?No
Lngformdouble?No
CrewIDformint?No
CrewNameformstringNo
SortOrderformintNo
StatusformstringNo
DurationMinutesformintNo
EtaWindowformstringNo
IsCommercialformboolNo
BoardReadiness Parameters:
NameParameterData TypeRequiredDescription
TotalVisitsformintNo
AssignedformintNo
UnassignedformintNo
ConflictsformintNo
AssignedPctformintNo

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

HTTP + JSV

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

GET /v1/visits/board HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Date: String,
	Crews: 
	[
		{
			CrewID: 0,
			CrewName: String,
			CrewColor: String,
			MemberCount: 0,
			Visits: 
			[
				{
					VisitKey: String,
					JobID: 0,
					ProjectID: 0,
					ProjectUID: String,
					AgreementJobID: 0,
					ScheduledDate: String,
					CustomerName: String,
					JobName: String,
					LocationName: String,
					City: String,
					Zip: String,
					Lat: 0,
					Lng: 0,
					CrewID: 0,
					CrewName: String,
					SortOrder: 0,
					Status: String,
					DurationMinutes: 0,
					EtaWindow: String,
					IsCommercial: False
				}
			],
			DriveMiles: 0,
			DriveMinutes: 0,
			OnSiteMinutes: 0,
			BillablePct: 0
		}
	],
	Unassigned: 
	[
		{
			VisitKey: String,
			JobID: 0,
			ProjectID: 0,
			ProjectUID: String,
			AgreementJobID: 0,
			ScheduledDate: String,
			CustomerName: String,
			JobName: String,
			LocationName: String,
			City: String,
			Zip: String,
			Lat: 0,
			Lng: 0,
			CrewID: 0,
			CrewName: String,
			SortOrder: 0,
			Status: String,
			DurationMinutes: 0,
			EtaWindow: String,
			IsCommercial: False
		}
	],
	Readiness: 
	{
		TotalVisits: 0,
		Assigned: 0,
		Unassigned: 0,
		Conflicts: 0,
		AssignedPct: 0
	},
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}