Trendsic Platform Service

<back to all web services

KpiV2BranchRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/dashboard/kpiv2/branch
KpiV2BranchRequest Parameters:
NameParameterData TypeRequiredDescription
BranchIdbodyGuidNo
FromDatebodyDateTimeNo
ToDatebodyDateTimeNo
ComparebodystringNo
KpiV2BranchResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
BranchformSvcBranchDetailNo
SvcBranchDetail Parameters:
NameParameterData TypeRequiredDescription
BranchformSvcBranchRowNo
WindowsformList<SvcWindowRow>No
ClerksformList<SvcClerkRow>No
UnassignedformSvcMetricsNo
NoClerkformSvcMetricsNo
PerWindowAverageformSvcAverageNo
PerClerkAverageformSvcAverageNo
OpenDaysformintNo
IsLiveformboolNo
ComparisonformSvcComparisonNo
CoverageformSvcCoverageNo
ServicesformList<SvcServiceRow>No
ByHourformList<SvcHourRow>No
AlertsformList<SvcAlert>No
TotalsAgreeformboolNo
CanSeeStaffformboolNo
CanSeeFinancialformboolNo
CanSeePayformboolNo
SvcBranchRow Parameters:
NameParameterData TypeRequiredDescription
BranchIdformGuidNo
NameformstringNo
StateCodeformstringNo
ZoneCodeformstringNo
TimeZoneformstringNo
WindowsformintNo
RecordingSinceUtcformDateTime?No
SessionsSinceUtcformDateTime?No
MetricsformSvcMetricsNo
SvcMetrics Parameters:
NameParameterData TypeRequiredDescription
CheckinsformintNo
WalkinsformintNo
ApptsformintNo
ServedformintNo
NoShowsformintNo
ApptNoShowsformintNo
CancelledAtWindowformintNo
AbandonedformintNo
CalledformintNo
CalledUpformintNo
AbandonRateformdouble?No
NoShowRateformdouble?No
AvgServiceSecformdouble?No
MedianServiceSecformdouble?No
AvgWaitSecformdouble?No
MaxWaitSecformintNo
AvgWalkUpSecformdouble?No
ExpectedServiceSecformdouble?No
SignedSecformlongNo
ServingSecformlongNo
PausedSecformlongNo
IdleSecformlongNo
UnstaffedSecformlongNo
Utilizationformdouble?No
IdleShareformdouble?No
PausedShareformdouble?No
SessionsformintNo
OpenDaysformintNo
FeesEarnedformdecimal?No
AvgFeeformdecimal?No
FeesPerStaffedHourformdecimal?No
ExpectedFeesPerStaffedHourformdecimal?No
LaborCostformdecimal?No
LaborPartialformboolNo
MissingCostEmployeeIdsformList<Guid>No
MissingCostformList<SvcNamedTime>No
LaborLockedformboolNo
Contributionformdecimal?No
LostFeesformdecimal?No
LostNoShowFeesformdecimal?No
MixformDictionary<Guid, int>No
HourlyServedformint[]No
HourlyFeesformdecimal[]No
HourlyCostformdecimal[]No
TintsformList<SvcTint>No
SvcNamedTime Parameters:
NameParameterData TypeRequiredDescription
IdformGuidNo
NameformstringNo
SignedSecformlongNo
ServedformintNo
SvcTint Parameters:
NameParameterData TypeRequiredDescription
FieldformstringNo
ToneformstringNo
ReasonformstringNo
Valueformdouble?No
Referenceformdouble?No
BranchValueformdouble?No
SvcWindowRow Parameters:
NameParameterData TypeRequiredDescription
StationIdformGuidNo
NameformstringNo
ClerksformList<SvcNamedTime>No
NeverStaffedformboolNo
LastStaffedUtcformDateTime?No
LastStaffedByformstringNo
MetricsformSvcMetricsNo
SvcClerkRow Parameters:
NameParameterData TypeRequiredDescription
EmployeeIdformGuidNo
NameformstringNo
WindowsformList<SvcNamedTime>No
LoadedRateformdecimal?No
RateSetformboolNo
RateLockedformboolNo
MetricsformSvcMetricsNo
SvcAverage Parameters:
NameParameterData TypeRequiredDescription
CountformintNo
ServedformdoubleNo
AvgServiceSecformdouble?No
MedianServiceSecformdouble?No
AvgWaitSecformdouble?No
Utilizationformdouble?No
IdleSecformdoubleNo
PausedSecformdoubleNo
NoShowsformdoubleNo
SignedSecformdoubleNo
FeesEarnedformdecimal?No
FeesPerStaffedHourformdecimal?No
LaborCostformdecimal?No
Contributionformdecimal?No
LostNoShowFeesformdecimal?No
SvcComparison Parameters:
NameParameterData TypeRequiredDescription
ModeformstringNo
FromDateformDateTime?No
ToDateformDateTime?No
CutoffMinuteformint?No
HasDataformboolNo
MetricsformSvcMetricsNo
SvcCoverage Parameters:
NameParameterData TypeRequiredDescription
StartLocalMinuteformintNo
BucketMinutesformintNo
RowsformList<SvcCoverageRow>No
InLineformList<double>No
GapBandsformList<int[]>No
DaysformintNo
NotRecordedformboolNo
FutureFromIndexformint?No
SvcCoverageRow Parameters:
NameParameterData TypeRequiredDescription
StationIdformGuidNo
NameformstringNo
BucketsformList<SvcCoverageBucket>No
SvcCoverageBucket Parameters:
NameParameterData TypeRequiredDescription
ServingPctformdoubleNo
IdlePctformdoubleNo
PausedPctformdoubleNo
UnstaffedPctformdoubleNo
SvcServiceRow Parameters:
NameParameterData TypeRequiredDescription
LineIdformGuidNo
NameformstringNo
CompletedformintNo
AvgServiceSecformdouble?No
BranchAvgServiceSecformdouble?No
FeesEarnedformdecimal?No
FeeCurrentformdecimal?No
FeeMinformdecimal?No
FeeMaxformdecimal?No
FeePerMinuteformdecimal?No
BranchFeePerMinuteformdecimal?No
FeeChangesformList<SvcFeeChange>No
SvcFeeChange Parameters:
NameParameterData TypeRequiredDescription
LocationIdformGuidNo
OnDateformDateTimeNo
FromFeeformdecimalNo
ToFeeformdecimalNo
SvcHourRow Parameters:
NameParameterData TypeRequiredDescription
LocalHourformintNo
ServedformintNo
FeesEarnedformdecimal?No
CostToStaffformdecimal?No
SvcAlert Parameters:
NameParameterData TypeRequiredDescription
LevelformstringNo
ViewformstringNo
CodeformstringNo
StationIdformGuid?No
EmployeeIdformGuid?No
BranchIdformGuid?No
LineIdformGuid?No
NameformstringNo
OtherLineIdformGuid?No
OtherNameformstringNo
StationIdsformList<Guid>No
ValuesformDictionary<string, double>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.

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

{"BranchId":"00000000000000000000000000000000","FromDate":"0001-01-01T00:00:00.0000000","ToDate":"0001-01-01T00:00:00.0000000","Compare":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Branch":{"Branch":{"BranchId":"00000000000000000000000000000000","Name":"String","StateCode":"String","ZoneCode":"String","TimeZone":"String","Windows":0,"RecordingSinceUtc":"0001-01-01T00:00:00.0000000","SessionsSinceUtc":"0001-01-01T00:00:00.0000000","Metrics":{"Checkins":0,"Walkins":0,"Appts":0,"Served":0,"NoShows":0,"ApptNoShows":0,"CancelledAtWindow":0,"Abandoned":0,"Called":0,"CalledUp":0,"AbandonRate":0,"NoShowRate":0,"AvgServiceSec":0,"MedianServiceSec":0,"AvgWaitSec":0,"MaxWaitSec":0,"AvgWalkUpSec":0,"ExpectedServiceSec":0,"SignedSec":0,"ServingSec":0,"PausedSec":0,"IdleSec":0,"UnstaffedSec":0,"Utilization":0,"IdleShare":0,"PausedShare":0,"Sessions":0,"OpenDays":0,"FeesEarned":0,"AvgFee":0,"FeesPerStaffedHour":0,"ExpectedFeesPerStaffedHour":0,"LaborCost":0,"LaborPartial":false,"MissingCostEmployeeIds":["00000000000000000000000000000000"],"MissingCost":[{"Id":"00000000000000000000000000000000","Name":"String","SignedSec":0,"Served":0}],"LaborLocked":false,"Contribution":0,"LostFees":0,"LostNoShowFees":0,"Mix":{"00000000000000000000000000000000":0},"HourlyServed":[0],"HourlyFees":[0],"HourlyCost":[0],"Tints":[{"Field":"String","Tone":"String","Reason":"String","Value":0,"Reference":0,"BranchValue":0}]}},"Windows":[{"StationId":"00000000000000000000000000000000","Name":"String","Clerks":[{"Id":"00000000000000000000000000000000","Name":"String","SignedSec":0,"Served":0}],"NeverStaffed":false,"LastStaffedUtc":"0001-01-01T00:00:00.0000000","LastStaffedBy":"String","Metrics":{"Checkins":0,"Walkins":0,"Appts":0,"Served":0,"NoShows":0,"ApptNoShows":0,"CancelledAtWindow":0,"Abandoned":0,"Called":0,"CalledUp":0,"AbandonRate":0,"NoShowRate":0,"AvgServiceSec":0,"MedianServiceSec":0,"AvgWaitSec":0,"MaxWaitSec":0,"AvgWalkUpSec":0,"ExpectedServiceSec":0,"SignedSec":0,"ServingSec":0,"PausedSec":0,"IdleSec":0,"UnstaffedSec":0,"Utilization":0,"IdleShare":0,"PausedShare":0,"Sessions":0,"OpenDays":0,"FeesEarned":0,"AvgFee":0,"FeesPerStaffedHour":0,"ExpectedFeesPerStaffedHour":0,"LaborCost":0,"LaborPartial":false,"MissingCostEmployeeIds":["00000000000000000000000000000000"],"MissingCost":[{"Id":"00000000000000000000000000000000","Name":"String","SignedSec":0,"Served":0}],"LaborLocked":false,"Contribution":0,"LostFees":0,"LostNoShowFees":0,"Mix":{"00000000000000000000000000000000":0},"HourlyServed":[0],"HourlyFees":[0],"HourlyCost":[0],"Tints":[{"Field":"String","Tone":"String","Reason":"String","Value":0,"Reference":0,"BranchValue":0}]}}],"Clerks":[{"EmployeeId":"00000000000000000000000000000000","Name":"String","Windows":[{"Id":"00000000000000000000000000000000","Name":"String","SignedSec":0,"Served":0}],"LoadedRate":0,"RateSet":false,"RateLocked":false,"Metrics":{"Checkins":0,"Walkins":0,"Appts":0,"Served":0,"NoShows":0,"ApptNoShows":0,"CancelledAtWindow":0,"Abandoned":0,"Called":0,"CalledUp":0,"AbandonRate":0,"NoShowRate":0,"AvgServiceSec":0,"MedianServiceSec":0,"AvgWaitSec":0,"MaxWaitSec":0,"AvgWalkUpSec":0,"ExpectedServiceSec":0,"SignedSec":0,"ServingSec":0,"PausedSec":0,"IdleSec":0,"UnstaffedSec":0,"Utilization":0,"IdleShare":0,"PausedShare":0,"Sessions":0,"OpenDays":0,"FeesEarned":0,"AvgFee":0,"FeesPerStaffedHour":0,"ExpectedFeesPerStaffedHour":0,"LaborCost":0,"LaborPartial":false,"MissingCostEmployeeIds":["00000000000000000000000000000000"],"MissingCost":[{"Id":"00000000000000000000000000000000","Name":"String","SignedSec":0,"Served":0}],"LaborLocked":false,"Contribution":0,"LostFees":0,"LostNoShowFees":0,"Mix":{"00000000000000000000000000000000":0},"HourlyServed":[0],"HourlyFees":[0],"HourlyCost":[0],"Tints":[{"Field":"String","Tone":"String","Reason":"String","Value":0,"Reference":0,"BranchValue":0}]}}],"Unassigned":{"Checkins":0,"Walkins":0,"Appts":0,"Served":0,"NoShows":0,"ApptNoShows":0,"CancelledAtWindow":0,"Abandoned":0,"Called":0,"CalledUp":0,"AbandonRate":0,"NoShowRate":0,"AvgServiceSec":0,"MedianServiceSec":0,"AvgWaitSec":0,"MaxWaitSec":0,"AvgWalkUpSec":0,"ExpectedServiceSec":0,"SignedSec":0,"ServingSec":0,"PausedSec":0,"IdleSec":0,"UnstaffedSec":0,"Utilization":0,"IdleShare":0,"PausedShare":0,"Sessions":0,"OpenDays":0,"FeesEarned":0,"AvgFee":0,"FeesPerStaffedHour":0,"ExpectedFeesPerStaffedHour":0,"LaborCost":0,"LaborPartial":false,"MissingCostEmployeeIds":["00000000000000000000000000000000"],"MissingCost":[{"Id":"00000000000000000000000000000000","Name":"String","SignedSec":0,"Served":0}],"LaborLocked":false,"Contribution":0,"LostFees":0,"LostNoShowFees":0,"Mix":{"00000000000000000000000000000000":0},"HourlyServed":[0],"HourlyFees":[0],"HourlyCost":[0],"Tints":[{"Field":"String","Tone":"String","Reason":"String","Value":0,"Reference":0,"BranchValue":0}]},"NoClerk":{"Checkins":0,"Walkins":0,"Appts":0,"Served":0,"NoShows":0,"ApptNoShows":0,"CancelledAtWindow":0,"Abandoned":0,"Called":0,"CalledUp":0,"AbandonRate":0,"NoShowRate":0,"AvgServiceSec":0,"MedianServiceSec":0,"AvgWaitSec":0,"MaxWaitSec":0,"AvgWalkUpSec":0,"ExpectedServiceSec":0,"SignedSec":0,"ServingSec":0,"PausedSec":0,"IdleSec":0,"UnstaffedSec":0,"Utilization":0,"IdleShare":0,"PausedShare":0,"Sessions":0,"OpenDays":0,"FeesEarned":0,"AvgFee":0,"FeesPerStaffedHour":0,"ExpectedFeesPerStaffedHour":0,"LaborCost":0,"LaborPartial":false,"MissingCostEmployeeIds":["00000000000000000000000000000000"],"MissingCost":[{"Id":"00000000000000000000000000000000","Name":"String","SignedSec":0,"Served":0}],"LaborLocked":false,"Contribution":0,"LostFees":0,"LostNoShowFees":0,"Mix":{"00000000000000000000000000000000":0},"HourlyServed":[0],"HourlyFees":[0],"HourlyCost":[0],"Tints":[{"Field":"String","Tone":"String","Reason":"String","Value":0,"Reference":0,"BranchValue":0}]},"PerWindowAverage":{"Count":0,"Served":0,"AvgServiceSec":0,"MedianServiceSec":0,"AvgWaitSec":0,"Utilization":0,"IdleSec":0,"PausedSec":0,"NoShows":0,"SignedSec":0,"FeesEarned":0,"FeesPerStaffedHour":0,"LaborCost":0,"Contribution":0,"LostNoShowFees":0},"PerClerkAverage":{"Count":0,"Served":0,"AvgServiceSec":0,"MedianServiceSec":0,"AvgWaitSec":0,"Utilization":0,"IdleSec":0,"PausedSec":0,"NoShows":0,"SignedSec":0,"FeesEarned":0,"FeesPerStaffedHour":0,"LaborCost":0,"Contribution":0,"LostNoShowFees":0},"OpenDays":0,"IsLive":false,"Comparison":{"Mode":"String","FromDate":"0001-01-01T00:00:00.0000000","ToDate":"0001-01-01T00:00:00.0000000","CutoffMinute":0,"HasData":false,"Metrics":{"Checkins":0,"Walkins":0,"Appts":0,"Served":0,"NoShows":0,"ApptNoShows":0,"CancelledAtWindow":0,"Abandoned":0,"Called":0,"CalledUp":0,"AbandonRate":0,"NoShowRate":0,"AvgServiceSec":0,"MedianServiceSec":0,"AvgWaitSec":0,"MaxWaitSec":0,"AvgWalkUpSec":0,"ExpectedServiceSec":0,"SignedSec":0,"ServingSec":0,"PausedSec":0,"IdleSec":0,"UnstaffedSec":0,"Utilization":0,"IdleShare":0,"PausedShare":0,"Sessions":0,"OpenDays":0,"FeesEarned":0,"AvgFee":0,"FeesPerStaffedHour":0,"ExpectedFeesPerStaffedHour":0,"LaborCost":0,"LaborPartial":false,"MissingCostEmployeeIds":["00000000000000000000000000000000"],"MissingCost":[{"Id":"00000000000000000000000000000000","Name":"String","SignedSec":0,"Served":0}],"LaborLocked":false,"Contribution":0,"LostFees":0,"LostNoShowFees":0,"Mix":{"00000000000000000000000000000000":0},"HourlyServed":[0],"HourlyFees":[0],"HourlyCost":[0],"Tints":[{"Field":"String","Tone":"String","Reason":"String","Value":0,"Reference":0,"BranchValue":0}]}},"Coverage":{"StartLocalMinute":0,"BucketMinutes":0,"Rows":[{"StationId":"00000000000000000000000000000000","Name":"String","Buckets":[{"ServingPct":0,"IdlePct":0,"PausedPct":0,"UnstaffedPct":0}]}],"InLine":[0],"GapBands":[[0]],"Days":0,"NotRecorded":false,"FutureFromIndex":0},"Services":[{"LineId":"00000000000000000000000000000000","Name":"String","Completed":0,"AvgServiceSec":0,"BranchAvgServiceSec":0,"FeesEarned":0,"FeeCurrent":0,"FeeMin":0,"FeeMax":0,"FeePerMinute":0,"BranchFeePerMinute":0,"FeeChanges":[{"LocationId":"00000000000000000000000000000000","OnDate":"0001-01-01T00:00:00.0000000","FromFee":0,"ToFee":0}]}],"ByHour":[{"LocalHour":0,"Served":0,"FeesEarned":0,"CostToStaff":0}],"Alerts":[{"Level":"String","View":"String","Code":"String","StationId":"00000000000000000000000000000000","EmployeeId":"00000000000000000000000000000000","BranchId":"00000000000000000000000000000000","LineId":"00000000000000000000000000000000","Name":"String","OtherLineId":"00000000000000000000000000000000","OtherName":"String","StationIds":["00000000000000000000000000000000"],"Values":{"String":0}}],"TotalsAgree":false,"CanSeeStaff":false,"CanSeeFinancial":false,"CanSeePay":false}}