Trendsic Platform Service

<back to all web services

TimecardCheckInRequest

Requires Authentication
Required role:Administrator
The following routes are available for this service:
GET,POST,PUT,DELETE,OPTIONS/v1/TimeTracker/{CheckInId}
GET,POST,PUT,DELETE,OPTIONS/v1/TimeTracker

export class TimeCard
{
    public AgentId: number;
    public CheckInId: number;
    public DateLogged: string;
    public TimeIn: string;
    public TimeInDate: string;
    public TimeOut: string;
    public TimeOutDate: string;
    public TimeLogged: number;
    public PaymentType: number;
    public ServiceCodeId: number;
    public ServiceCode: string;
    public ServiceRate: number;
    public ServiceDescription: string;
    public WorkDescription: string;
    public AdjustedTimeIn: string;
    public AdjustedTimeInDate: string;
    public AdjustedTimeOut: string;
    public AdjustedTimeOutDate: string;
    public IsValid: boolean;
    public Adjusted: boolean;
    public ProjectID: number;
    public ProjectName: string;
    public ClientID: number;
    public ClientName: string;
    public CategoryID: number;
    public CategoryName: string;
    public JobID: number;
    public JobName: string;

    public constructor(init?: Partial<TimeCard>) { (Object as any).assign(this, init); }
}

export class TimecardCheckInResponse
{
    public ResponseStatus: ResponseStatus;
    public TimecardCheckIn: TimeCard[] = [];

    public constructor(init?: Partial<TimecardCheckInResponse>) { (Object as any).assign(this, init); }
}

export class TimecardCheckInRequest
{
    public CheckInId: number;
    public TimecardCheckIn: TimeCard[] = [];

    public constructor(init?: Partial<TimecardCheckInRequest>) { (Object as any).assign(this, init); }
}

TypeScript TimecardCheckInRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/TimeTracker/{CheckInId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	CheckInId: 0,
	TimecardCheckIn: 
	[
		{
			AgentId: 0,
			CheckInId: 0,
			DateLogged: 0001-01-01,
			TimeIn: PT0S,
			TimeInDate: 0001-01-01T00:00:00.0000000+00:00,
			TimeOut: PT0S,
			TimeOutDate: 0001-01-01T00:00:00.0000000+00:00,
			TimeLogged: 0,
			PaymentType: 0,
			ServiceCodeId: 0,
			ServiceCode: String,
			ServiceRate: 0,
			ServiceDescription: String,
			WorkDescription: String,
			AdjustedTimeIn: PT0S,
			AdjustedTimeInDate: 0001-01-01T00:00:00.0000000+00:00,
			AdjustedTimeOut: PT0S,
			AdjustedTimeOutDate: 0001-01-01T00:00:00.0000000+00:00,
			IsValid: False,
			Adjusted: False,
			ProjectID: 0,
			ProjectName: String,
			ClientID: 0,
			ClientName: String,
			CategoryID: 0,
			CategoryName: String,
			JobID: 0,
			JobName: String
		}
	]
}
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
		}
	},
	TimecardCheckIn: 
	[
		{
			AgentId: 0,
			CheckInId: 0,
			DateLogged: 0001-01-01,
			TimeIn: PT0S,
			TimeInDate: 0001-01-01T00:00:00.0000000+00:00,
			TimeOut: PT0S,
			TimeOutDate: 0001-01-01T00:00:00.0000000+00:00,
			TimeLogged: 0,
			PaymentType: 0,
			ServiceCodeId: 0,
			ServiceCode: String,
			ServiceRate: 0,
			ServiceDescription: String,
			WorkDescription: String,
			AdjustedTimeIn: PT0S,
			AdjustedTimeInDate: 0001-01-01T00:00:00.0000000+00:00,
			AdjustedTimeOut: PT0S,
			AdjustedTimeOutDate: 0001-01-01T00:00:00.0000000+00:00,
			IsValid: False,
			Adjusted: False,
			ProjectID: 0,
			ProjectName: String,
			ClientID: 0,
			ClientName: String,
			CategoryID: 0,
			CategoryName: String,
			JobID: 0,
			JobName: String
		}
	]
}