| Requires any of the roles: | Agent, Administrator, Agent, Administrator, Agent, Administrator, Agent, Administrator |
| GET,POST,DELETE,OPTIONS | /v1/CustomerCheckins/{Id} | ||
|---|---|---|---|
| GET,POST,DELETE,OPTIONS | /v1/CustomerCheckins |
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 CheckinInformation
{
public virtual Guid Id { get; set; }
public virtual Guid LocationId { get; set; }
public virtual string LocationName { get; set; }
public virtual Guid? CustomerId { get; set; }
public virtual bool? QuestionnaireSubmitted { get; set; }
public virtual string Name { get; set; }
public virtual string Description { get; set; }
public virtual int TotalServiceDurationMinutes { get; set; }
public virtual decimal TotalCost { get; set; }
public virtual bool SendQuestionnaire { get; set; }
public virtual bool RequireUpload { get; set; }
public virtual List<LineQuestion> Questions { get; set; } = [];
public virtual List<Line> Lines { get; set; } = [];
}
public partial class CustomerCheckinObject
{
public virtual Guid Id { get; set; }
public virtual Guid LineId { get; set; }
public virtual Guid CustomerId { get; set; }
public virtual Guid EmployeeId { get; set; }
public virtual Guid LocationId { get; set; }
public virtual Guid StationId { get; set; }
public virtual DateTime SignInTime { get; set; }
public virtual DateTime AdjustedSignInTime { get; set; }
public virtual bool SendReminders { get; set; }
public virtual int Status { get; set; }
public virtual int TaskTime { get; set; }
public virtual bool Completed { get; set; }
public virtual DateTime CompletedTime { get; set; }
public virtual bool QuestionnaireSubmitted { get; set; }
public virtual List<Guid> LineIds { get; set; } = [];
}
public partial class CustomerCheckins
: CustomerCheckinObject
{
public virtual Guid ApiKey { get; set; }
}
public partial class CustomerCheckinsResponse
{
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual List<CustomerCheckinObject> CustomerCheckins { get; set; } = [];
public virtual CheckinInformation CustomerCheckinRequirements { get; set; }
}
public partial class Line
{
public virtual Guid Id { get; set; }
public virtual Guid LocationId { get; set; }
public virtual string LocationName { get; set; }
public virtual string Name { get; set; }
public virtual string Description { get; set; }
public virtual int ServiceDurationMinutes { get; set; }
public virtual int WaitTime { get; set; }
public virtual decimal Cost { get; set; }
public virtual int? UpperThreshold { get; set; }
public virtual int? LowerThreshold { get; set; }
public virtual bool Active { get; set; }
public virtual DateTime? EntDate { get; set; }
public virtual DateTime? ModDate { get; set; }
public virtual bool SendQuestionnaire { get; set; }
public virtual bool RequireUpload { get; set; }
public virtual string UploadMessage { get; set; }
public virtual List<LineImage> LineImages { get; set; } = [];
}
public partial class LineImage
{
public virtual Guid? ImageId { get; set; }
public virtual string FileName { get; set; }
public virtual string ImageTitle { get; set; }
public virtual DateTime UploadDate { get; set; }
}
public partial class LineQuestion
{
public virtual int Id { get; set; }
public virtual Guid CustomerCheckInId { get; set; }
public virtual Guid LineId { get; set; }
public virtual string Question { get; set; }
public virtual string Answer { get; set; }
public virtual bool Active { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/CustomerCheckins/{Id} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CustomerCheckins xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<AdjustedSignInTime>0001-01-01T00:00:00</AdjustedSignInTime>
<Completed>false</Completed>
<CompletedTime>0001-01-01T00:00:00</CompletedTime>
<CustomerId>00000000-0000-0000-0000-000000000000</CustomerId>
<EmployeeId>00000000-0000-0000-0000-000000000000</EmployeeId>
<Id>00000000-0000-0000-0000-000000000000</Id>
<LineId>00000000-0000-0000-0000-000000000000</LineId>
<LineIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>00000000-0000-0000-0000-000000000000</d2p1:guid>
</LineIds>
<LocationId>00000000-0000-0000-0000-000000000000</LocationId>
<QuestionnaireSubmitted>false</QuestionnaireSubmitted>
<SendReminders>false</SendReminders>
<SignInTime>0001-01-01T00:00:00</SignInTime>
<StationId>00000000-0000-0000-0000-000000000000</StationId>
<Status>0</Status>
<TaskTime>0</TaskTime>
<ApiKey>00000000-0000-0000-0000-000000000000</ApiKey>
</CustomerCheckins>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<CustomerCheckinsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<CustomerCheckinRequirements>
<CustomerId>00000000-0000-0000-0000-000000000000</CustomerId>
<Description>String</Description>
<Id>00000000-0000-0000-0000-000000000000</Id>
<Lines>
<Line>
<Active>false</Active>
<Cost>0</Cost>
<Description>String</Description>
<EntDate>0001-01-01T00:00:00</EntDate>
<Id>00000000-0000-0000-0000-000000000000</Id>
<LineImages>
<LineImage>
<FileName>String</FileName>
<ImageId>00000000-0000-0000-0000-000000000000</ImageId>
<ImageTitle>String</ImageTitle>
<UploadDate>0001-01-01T00:00:00</UploadDate>
</LineImage>
</LineImages>
<LocationId>00000000-0000-0000-0000-000000000000</LocationId>
<LocationName>String</LocationName>
<LowerThreshold>0</LowerThreshold>
<ModDate>0001-01-01T00:00:00</ModDate>
<Name>String</Name>
<RequireUpload>false</RequireUpload>
<SendQuestionnaire>false</SendQuestionnaire>
<ServiceDurationMinutes>0</ServiceDurationMinutes>
<UploadMessage>String</UploadMessage>
<UpperThreshold>0</UpperThreshold>
<WaitTime>0</WaitTime>
</Line>
</Lines>
<LocationId>00000000-0000-0000-0000-000000000000</LocationId>
<LocationName>String</LocationName>
<Name>String</Name>
<QuestionnaireSubmitted>false</QuestionnaireSubmitted>
<Questions>
<LineQuestion>
<Active>false</Active>
<Answer>String</Answer>
<CustomerCheckInId>00000000-0000-0000-0000-000000000000</CustomerCheckInId>
<Id>0</Id>
<LineId>00000000-0000-0000-0000-000000000000</LineId>
<Question>String</Question>
</LineQuestion>
</Questions>
<RequireUpload>false</RequireUpload>
<SendQuestionnaire>false</SendQuestionnaire>
<TotalCost>0</TotalCost>
<TotalServiceDurationMinutes>0</TotalServiceDurationMinutes>
</CustomerCheckinRequirements>
<CustomerCheckins>
<CustomerCheckinObject>
<AdjustedSignInTime>0001-01-01T00:00:00</AdjustedSignInTime>
<Completed>false</Completed>
<CompletedTime>0001-01-01T00:00:00</CompletedTime>
<CustomerId>00000000-0000-0000-0000-000000000000</CustomerId>
<EmployeeId>00000000-0000-0000-0000-000000000000</EmployeeId>
<Id>00000000-0000-0000-0000-000000000000</Id>
<LineId>00000000-0000-0000-0000-000000000000</LineId>
<LineIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:guid>00000000-0000-0000-0000-000000000000</d4p1:guid>
</LineIds>
<LocationId>00000000-0000-0000-0000-000000000000</LocationId>
<QuestionnaireSubmitted>false</QuestionnaireSubmitted>
<SendReminders>false</SendReminders>
<SignInTime>0001-01-01T00:00:00</SignInTime>
<StationId>00000000-0000-0000-0000-000000000000</StationId>
<Status>0</Status>
<TaskTime>0</TaskTime>
</CustomerCheckinObject>
</CustomerCheckins>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
</CustomerCheckinsResponse>