| GET | /v1/CustomersInLine/{LocationId} | ||
|---|---|---|---|
| GET | /v1/CustomersInLine |
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CRM.AgencyPlatform.API.Internal;
namespace CRM.AgencyPlatform.API.Internal
{
public partial class CustomerInLineObject
{
public virtual Guid Id { get; set; }
public virtual string Name { get; set; }
public virtual string FullName { get; set; }
public virtual DateTime SignInTime { get; set; }
public virtual DateTime AdjustedSignInTime { get; set; }
public virtual int Status { get; set; }
public virtual int TaskTime { get; set; }
public virtual bool Completed { get; set; }
public virtual bool SendReminders { get; set; }
public virtual DateTime CompletedTime { get; set; }
public virtual Guid EmployeeId { get; set; }
public virtual string Employee { get; set; }
public virtual string Line { get; set; }
public virtual string Description { get; set; }
public virtual Guid ServiceId { get; set; }
public virtual Guid StationId { get; set; }
public virtual string StationName { get; set; }
}
public partial class CustomersInLine
{
public virtual Guid ApiKey { get; set; }
public virtual Guid LocationId { get; set; }
public virtual bool clientIsLoading { get; set; }
}
public partial class CustomersInLineResponse
{
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual List<CustomerInLineObject> Customers { get; set; } = [];
}
}
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
}
]
}