| GET,OPTIONS | /v1/customercheckins/{Id}/timeline |
|---|
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 CheckinTimelineRequest
{
public virtual Guid Id { get; set; }
}
public partial class CheckinTimelineResponse
{
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual SvcTimeline Timeline { get; set; }
}
public partial class SvcTimeline
{
public virtual SvcVisitRow Visit { get; set; }
public virtual List<SvcTimelineStep> Steps { get; set; } = [];
public virtual int? WalkUpSec { get; set; }
}
public partial class SvcTimelineStep
{
public virtual DateTime AtUtc { get; set; }
public virtual DateTime LocalAt { get; set; }
public virtual string Kind { get; set; }
public virtual string StationName { get; set; }
public virtual string EmployeeName { get; set; }
}
public partial class SvcVisitRow
{
public virtual Guid CheckinId { get; set; }
public virtual string TicketLabel { get; set; }
public virtual DateTime LocalDate { get; set; }
public virtual Guid LineId { get; set; }
public virtual string ServiceName { get; set; }
public virtual Guid? StationId { get; set; }
public virtual string StationName { get; set; }
public virtual Guid? EmployeeId { get; set; }
public virtual string EmployeeName { get; set; }
public virtual string CustomerName { get; set; }
public virtual int? ContactId { get; set; }
public virtual int? ContactAgentId { get; set; }
public virtual Guid CustomerId { get; set; }
public virtual bool IsAppointment { get; set; }
public virtual DateTime? LocalHere { get; set; }
public virtual DateTime? LocalCalled { get; set; }
public virtual DateTime? LocalStart { get; set; }
public virtual DateTime? LocalEnd { get; set; }
public virtual int? WaitSec { get; set; }
public virtual int? ServeSec { get; set; }
public virtual string Outcome { get; set; }
public virtual decimal? Fee { get; set; }
}
}
C# CheckinTimelineRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/customercheckins/{Id}/timeline HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Timeline":{"Visit":{"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},"Steps":[{"AtUtc":"0001-01-01T00:00:00.0000000","LocalAt":"0001-01-01T00:00:00.0000000","Kind":"String","StationName":"String","EmployeeName":"String"}],"WalkUpSec":0}}