| GET | /v1/CustomersInLine/{LocationId} | ||
|---|---|---|---|
| GET | /v1/CustomersInLine |
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class CustomerInLineObject
Public Overridable Property Id As Guid
Public Overridable Property Name As String
Public Overridable Property FullName As String
Public Overridable Property SignInTime As Date
Public Overridable Property AdjustedSignInTime As Date
Public Overridable Property Status As Integer
Public Overridable Property TaskTime As Integer
Public Overridable Property Completed As Boolean
Public Overridable Property SendReminders As Boolean
Public Overridable Property CompletedTime As Date
Public Overridable Property EmployeeId As Guid
Public Overridable Property Employee As String
Public Overridable Property Line As String
Public Overridable Property Description As String
Public Overridable Property ServiceId As Guid
Public Overridable Property StationId As Guid
Public Overridable Property StationName As String
End Class
Public Partial Class CustomersInLine
Public Overridable Property ApiKey As Guid
Public Overridable Property LocationId As Guid
Public Overridable Property clientIsLoading As Boolean
End Class
Public Partial Class CustomersInLineResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property Customers As List(Of CustomerInLineObject) = New List(Of CustomerInLineObject)
End Class
End Namespace
End Namespace
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.
GET /v1/CustomersInLine/{LocationId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
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
}
},
Customers:
[
{
Id: 00000000000000000000000000000000,
Name: String,
FullName: String,
SignInTime: 0001-01-01,
AdjustedSignInTime: 0001-01-01,
Status: 0,
TaskTime: 0,
Completed: False,
SendReminders: False,
CompletedTime: 0001-01-01,
EmployeeId: 00000000000000000000000000000000,
Employee: String,
Line: String,
Description: String,
ServiceId: 00000000000000000000000000000000,
StationId: 00000000000000000000000000000000,
StationName: String
}
]
}