Trendsic Platform Service

<back to all web services

KpiV2VisitsRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/dashboard/kpiv2/visits
KpiV2VisitsRequest Parameters:
NameParameterData TypeRequiredDescription
BranchIdbodyGuidNo
FromDatebodyDateTimeNo
ToDatebodyDateTimeNo
StationIdbodyGuid?No
EmployeeIdbodyGuid?No
OutcomebodystringNo
LineIdbodyGuid?No
PagebodyintNo
PageSizebodyintNo
KpiV2VisitsResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
VisitsformSvcVisitPageNo
SvcVisitPage Parameters:
NameParameterData TypeRequiredDescription
RowsformList<SvcVisitRow>No
TotalRowsformintNo
PageformintNo
PageSizeformintNo
OutcomeCountsformDictionary<string, int>No
ServicesformList<SvcChip>No
CanSeeStaffformboolNo
CanSeeFinancialformboolNo
SvcVisitRow Parameters:
NameParameterData TypeRequiredDescription
CheckinIdformGuidNo
TicketLabelformstringNo
LocalDateformDateTimeNo
LineIdformGuidNo
ServiceNameformstringNo
StationIdformGuid?No
StationNameformstringNo
EmployeeIdformGuid?No
EmployeeNameformstringNo
CustomerNameformstringNo
ContactIdformint?No
ContactAgentIdformint?No
CustomerIdformGuidNo
IsAppointmentformboolNo
LocalHereformDateTime?No
LocalCalledformDateTime?No
LocalStartformDateTime?No
LocalEndformDateTime?No
WaitSecformint?No
ServeSecformint?No
OutcomeformstringNo
Feeformdecimal?No
SvcChip Parameters:
NameParameterData TypeRequiredDescription
LineIdformGuidNo
NameformstringNo
NformintNo

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/visits 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","StationId":"00000000000000000000000000000000","EmployeeId":"00000000000000000000000000000000","Outcome":"String","LineId":"00000000000000000000000000000000","Page":0,"PageSize":0}
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"}},"Visits":{"Rows":[{"CheckinId":"00000000000000000000000000000000","TicketLabel":"String","LocalDate":"0001-01-01T00:00:00.0000000","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-01T00:00:00.0000000","LocalCalled":"0001-01-01T00:00:00.0000000","LocalStart":"0001-01-01T00:00:00.0000000","LocalEnd":"0001-01-01T00:00:00.0000000","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}}