| POST,OPTIONS | /v1/dashboard/kpiv2/branch |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| BranchId | body | Guid | No | |
| FromDate | body | DateTime | No | |
| ToDate | body | DateTime | No | |
| Compare | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Branch | form | SvcBranchDetail | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Branch | form | SvcBranchRow | No | |
| Windows | form | List<SvcWindowRow> | No | |
| Clerks | form | List<SvcClerkRow> | No | |
| Unassigned | form | SvcMetrics | No | |
| NoClerk | form | SvcMetrics | No | |
| PerWindowAverage | form | SvcAverage | No | |
| PerClerkAverage | form | SvcAverage | No | |
| OpenDays | form | int | No | |
| IsLive | form | bool | No | |
| Comparison | form | SvcComparison | No | |
| Coverage | form | SvcCoverage | No | |
| Services | form | List<SvcServiceRow> | No | |
| ByHour | form | List<SvcHourRow> | No | |
| Alerts | form | List<SvcAlert> | No | |
| TotalsAgree | form | bool | No | |
| CanSeeStaff | form | bool | No | |
| CanSeeFinancial | form | bool | No | |
| CanSeePay | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| BranchId | form | Guid | No | |
| Name | form | string | No | |
| StateCode | form | string | No | |
| ZoneCode | form | string | No | |
| TimeZone | form | string | No | |
| Windows | form | int | No | |
| RecordingSinceUtc | form | DateTime? | No | |
| SessionsSinceUtc | form | DateTime? | No | |
| Metrics | form | SvcMetrics | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Checkins | form | int | No | |
| Walkins | form | int | No | |
| Appts | form | int | No | |
| Served | form | int | No | |
| NoShows | form | int | No | |
| ApptNoShows | form | int | No | |
| CancelledAtWindow | form | int | No | |
| Abandoned | form | int | No | |
| Called | form | int | No | |
| CalledUp | form | int | No | |
| AbandonRate | form | double? | No | |
| NoShowRate | form | double? | No | |
| AvgServiceSec | form | double? | No | |
| MedianServiceSec | form | double? | No | |
| AvgWaitSec | form | double? | No | |
| MaxWaitSec | form | int | No | |
| AvgWalkUpSec | form | double? | No | |
| ExpectedServiceSec | form | double? | No | |
| SignedSec | form | long | No | |
| ServingSec | form | long | No | |
| PausedSec | form | long | No | |
| IdleSec | form | long | No | |
| UnstaffedSec | form | long | No | |
| Utilization | form | double? | No | |
| IdleShare | form | double? | No | |
| PausedShare | form | double? | No | |
| Sessions | form | int | No | |
| OpenDays | form | int | No | |
| FeesEarned | form | decimal? | No | |
| AvgFee | form | decimal? | No | |
| FeesPerStaffedHour | form | decimal? | No | |
| ExpectedFeesPerStaffedHour | form | decimal? | No | |
| LaborCost | form | decimal? | No | |
| LaborPartial | form | bool | No | |
| MissingCostEmployeeIds | form | List<Guid> | No | |
| MissingCost | form | List<SvcNamedTime> | No | |
| LaborLocked | form | bool | No | |
| Contribution | form | decimal? | No | |
| LostFees | form | decimal? | No | |
| LostNoShowFees | form | decimal? | No | |
| Mix | form | Dictionary<Guid, int> | No | |
| HourlyServed | form | int[] | No | |
| HourlyFees | form | decimal[] | No | |
| HourlyCost | form | decimal[] | No | |
| Tints | form | List<SvcTint> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | Guid | No | |
| Name | form | string | No | |
| SignedSec | form | long | No | |
| Served | form | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Field | form | string | No | |
| Tone | form | string | No | |
| Reason | form | string | No | |
| Value | form | double? | No | |
| Reference | form | double? | No | |
| BranchValue | form | double? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| StationId | form | Guid | No | |
| Name | form | string | No | |
| Clerks | form | List<SvcNamedTime> | No | |
| NeverStaffed | form | bool | No | |
| LastStaffedUtc | form | DateTime? | No | |
| LastStaffedBy | form | string | No | |
| Metrics | form | SvcMetrics | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| EmployeeId | form | Guid | No | |
| Name | form | string | No | |
| Windows | form | List<SvcNamedTime> | No | |
| LoadedRate | form | decimal? | No | |
| RateSet | form | bool | No | |
| RateLocked | form | bool | No | |
| Metrics | form | SvcMetrics | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Count | form | int | No | |
| Served | form | double | No | |
| AvgServiceSec | form | double? | No | |
| MedianServiceSec | form | double? | No | |
| AvgWaitSec | form | double? | No | |
| Utilization | form | double? | No | |
| IdleSec | form | double | No | |
| PausedSec | form | double | No | |
| NoShows | form | double | No | |
| SignedSec | form | double | No | |
| FeesEarned | form | decimal? | No | |
| FeesPerStaffedHour | form | decimal? | No | |
| LaborCost | form | decimal? | No | |
| Contribution | form | decimal? | No | |
| LostNoShowFees | form | decimal? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Mode | form | string | No | |
| FromDate | form | DateTime? | No | |
| ToDate | form | DateTime? | No | |
| CutoffMinute | form | int? | No | |
| HasData | form | bool | No | |
| Metrics | form | SvcMetrics | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| StartLocalMinute | form | int | No | |
| BucketMinutes | form | int | No | |
| Rows | form | List<SvcCoverageRow> | No | |
| InLine | form | List<double> | No | |
| GapBands | form | List<int[]> | No | |
| Days | form | int | No | |
| NotRecorded | form | bool | No | |
| FutureFromIndex | form | int? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| StationId | form | Guid | No | |
| Name | form | string | No | |
| Buckets | form | List<SvcCoverageBucket> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ServingPct | form | double | No | |
| IdlePct | form | double | No | |
| PausedPct | form | double | No | |
| UnstaffedPct | form | double | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| LineId | form | Guid | No | |
| Name | form | string | No | |
| Completed | form | int | No | |
| AvgServiceSec | form | double? | No | |
| BranchAvgServiceSec | form | double? | No | |
| FeesEarned | form | decimal? | No | |
| FeeCurrent | form | decimal? | No | |
| FeeMin | form | decimal? | No | |
| FeeMax | form | decimal? | No | |
| FeePerMinute | form | decimal? | No | |
| BranchFeePerMinute | form | decimal? | No | |
| FeeChanges | form | List<SvcFeeChange> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| LocationId | form | Guid | No | |
| OnDate | form | DateTime | No | |
| FromFee | form | decimal | No | |
| ToFee | form | decimal | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| LocalHour | form | int | No | |
| Served | form | int | No | |
| FeesEarned | form | decimal? | No | |
| CostToStaff | form | decimal? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Level | form | string | No | |
| View | form | string | No | |
| Code | form | string | No | |
| StationId | form | Guid? | No | |
| EmployeeId | form | Guid? | No | |
| BranchId | form | Guid? | No | |
| LineId | form | Guid? | No | |
| Name | form | string | No | |
| OtherLineId | form | Guid? | No | |
| OtherName | form | string | No | |
| StationIds | form | List<Guid> | No | |
| Values | form | Dictionary<string, double> | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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: text/jsv
Content-Type: text/jsv
Content-Length: length
{
BranchId: 00000000000000000000000000000000,
FromDate: 0001-01-01,
ToDate: 0001-01-01,
Compare: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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-01,
SessionsSinceUtc: 0001-01-01,
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-01,
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-01,
ToDate: 0001-01-01,
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-01,
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
}
}