Trendsic Platform Service

<back to all web services

KpiV2Request

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/dashboard/kpiv2
KpiV2Request Parameters:
NameParameterData TypeRequiredDescription
FromDatebodyDateTimeNo
ToDatebodyDateTimeNo
LocationIdsbodyList<Guid>No
KpiV2Response Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
StatsformList<DashboardStatTile>No
TrendformList<DashboardSeries>No
ServicesByTypeformDashboardSeriesNo
LocationLeaderboardformList<KpiV2LocationRow>No
WorkerProductivityformList<KpiV2WorkerRow>No
HeatmapformList<KpiV2HeatPoint>No
LiveQueueformList<KpiV2LiveRow>No
DashboardStatTile Parameters:
NameParameterData TypeRequiredDescription
KeyformstringNo
LabelformstringNo
ValueformdoubleNo
PreviousValueformdouble?No
UnitformstringNo
DeltaPctformdouble?No
DashboardSeries Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
PointsformList<DashboardSeriesPoint>No
DashboardSeriesPoint Parameters:
NameParameterData TypeRequiredDescription
LabelformstringNo
ValueformdoubleNo
KpiV2LocationRow Parameters:
NameParameterData TypeRequiredDescription
LocationNameformstringNo
WalkinsformintNo
CompletedformintNo
AvgServiceMinutesformdoubleNo
AbandonmentPctformdoubleNo
KpiV2WorkerRow Parameters:
NameParameterData TypeRequiredDescription
WorkerNameformstringNo
CompletedformintNo
AvgServiceMinutesformdoubleNo
KpiV2HeatPoint Parameters:
NameParameterData TypeRequiredDescription
DowformintNo
HrformintNo
CntformintNo
KpiV2LiveRow Parameters:
NameParameterData TypeRequiredDescription
LocationNameformstringNo
WaitingformintNo
InProgressformintNo

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

HTTP + CSV

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

POST /v1/dashboard/kpiv2 HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"FromDate":"0001-01-01T00:00:00.0000000","ToDate":"0001-01-01T00:00:00.0000000","LocationIds":["00000000000000000000000000000000"]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Stats":[{"Key":"String","Label":"String","Value":0,"PreviousValue":0,"Unit":"String","DeltaPct":null}],"Trend":[{"Name":"String","Points":[{"Label":"String","Value":0}]}],"ServicesByType":{"Name":"String","Points":[{"Label":"String","Value":0}]},"LocationLeaderboard":[{"LocationName":"String","Walkins":0,"Completed":0,"AvgServiceMinutes":0,"AbandonmentPct":0}],"WorkerProductivity":[{"WorkerName":"String","Completed":0,"AvgServiceMinutes":0}],"Heatmap":[{"Dow":0,"Hr":0,"Cnt":0}],"LiveQueue":[{"LocationName":"String","Waiting":0,"InProgress":0}]}