Trendsic Platform Service

<back to all web services

CheckinTimelineRequest

Requires Authentication
The following routes are available for this service:
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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CheckinTimelineResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <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>
  <Timeline>
    <Steps>
      <SvcTimelineStep>
        <AtUtc>0001-01-01T00:00:00</AtUtc>
        <EmployeeName>String</EmployeeName>
        <Kind>String</Kind>
        <LocalAt>0001-01-01T00:00:00</LocalAt>
        <StationName>String</StationName>
      </SvcTimelineStep>
    </Steps>
    <Visit>
      <CheckinId>00000000-0000-0000-0000-000000000000</CheckinId>
      <ContactAgentId>0</ContactAgentId>
      <ContactId>0</ContactId>
      <CustomerId>00000000-0000-0000-0000-000000000000</CustomerId>
      <CustomerName>String</CustomerName>
      <EmployeeId>00000000-0000-0000-0000-000000000000</EmployeeId>
      <EmployeeName>String</EmployeeName>
      <Fee>0</Fee>
      <IsAppointment>false</IsAppointment>
      <LineId>00000000-0000-0000-0000-000000000000</LineId>
      <LocalCalled>0001-01-01T00:00:00</LocalCalled>
      <LocalDate>0001-01-01T00:00:00</LocalDate>
      <LocalEnd>0001-01-01T00:00:00</LocalEnd>
      <LocalHere>0001-01-01T00:00:00</LocalHere>
      <LocalStart>0001-01-01T00:00:00</LocalStart>
      <Outcome>String</Outcome>
      <ServeSec>0</ServeSec>
      <ServiceName>String</ServiceName>
      <StationId>00000000-0000-0000-0000-000000000000</StationId>
      <StationName>String</StationName>
      <TicketLabel>String</TicketLabel>
      <WaitSec>0</WaitSec>
    </Visit>
    <WalkUpSec>0</WalkUpSec>
  </Timeline>
</CheckinTimelineResponse>