| POST,OPTIONS | /v1/dashboard/kpiv2/visits |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| BranchId | body | Guid | No | |
| FromDate | body | DateTime | No | |
| ToDate | body | DateTime | No | |
| StationId | body | Guid? | No | |
| EmployeeId | body | Guid? | No | |
| Outcome | body | string | No | |
| LineId | body | Guid? | No | |
| Page | body | int | No | |
| PageSize | body | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Visits | form | SvcVisitPage | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Rows | form | List<SvcVisitRow> | No | |
| TotalRows | form | int | No | |
| Page | form | int | No | |
| PageSize | form | int | No | |
| OutcomeCounts | form | Dictionary<string, int> | No | |
| Services | form | List<SvcChip> | No | |
| CanSeeStaff | form | bool | No | |
| CanSeeFinancial | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CheckinId | form | Guid | No | |
| TicketLabel | form | string | No | |
| LocalDate | form | DateTime | No | |
| LineId | form | Guid | No | |
| ServiceName | form | string | No | |
| StationId | form | Guid? | No | |
| StationName | form | string | No | |
| EmployeeId | form | Guid? | No | |
| EmployeeName | form | string | No | |
| CustomerName | form | string | No | |
| ContactId | form | int? | No | |
| ContactAgentId | form | int? | No | |
| CustomerId | form | Guid | No | |
| IsAppointment | form | bool | No | |
| LocalHere | form | DateTime? | No | |
| LocalCalled | form | DateTime? | No | |
| LocalStart | form | DateTime? | No | |
| LocalEnd | form | DateTime? | No | |
| WaitSec | form | int? | No | |
| ServeSec | form | int? | No | |
| Outcome | form | string | No | |
| Fee | form | decimal? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| LineId | form | Guid | No | |
| Name | form | string | No | |
| N | form | int | 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/visits 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,
StationId: 00000000000000000000000000000000,
EmployeeId: 00000000000000000000000000000000,
Outcome: String,
LineId: 00000000000000000000000000000000,
Page: 0,
PageSize: 0
}
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
}
},
Visits:
{
Rows:
[
{
CheckinId: 00000000000000000000000000000000,
TicketLabel: String,
LocalDate: 0001-01-01,
LineId: 00000000000000000000000000000000,
ServiceName: String,
StationId: 00000000000000000000000000000000,
StationName: String,
EmployeeId: 00000000000000000000000000000000,
EmployeeName: String,
CustomerName: String,
ContactId: 0,
ContactAgentId: 0,
CustomerId: 00000000000000000000000000000000,
IsAppointment: False,
LocalHere: 0001-01-01,
LocalCalled: 0001-01-01,
LocalStart: 0001-01-01,
LocalEnd: 0001-01-01,
WaitSec: 0,
ServeSec: 0,
Outcome: String,
Fee: 0
}
],
TotalRows: 0,
Page: 0,
PageSize: 0,
OutcomeCounts:
{
String: 0
},
Services:
[
{
LineId: 00000000000000000000000000000000,
Name: String,
N: 0
}
],
CanSeeStaff: False,
CanSeeFinancial: False
}
}