Trendsic Platform Service

<back to all web services

ClockInOutRequest

Requires Authentication
Requires any of the roles:Worker, Agent, Administrator
The following routes are available for this service:
POST,OPTIONS/v1/TimeTracker/ClockInOut
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class ClockInOutRequest
{
    open var Timecard:TimeCard? = null
}

open class TimeCard
{
    open var AgentId:Int? = null
    open var CheckInId:Int? = null
    open var DateLogged:Date? = null
    open var TimeIn:TimeSpan? = null
    open var TimeInDate:Date? = null
    open var TimeOut:TimeSpan? = null
    open var TimeOutDate:Date? = null
    open var TimeLogged:BigDecimal? = null
    open var PaymentType:Int? = null
    open var ServiceCodeId:Int? = null
    open var ServiceCode:String? = null
    open var ServiceRate:BigDecimal? = null
    open var ServiceDescription:String? = null
    open var WorkDescription:String? = null
    open var AdjustedTimeIn:TimeSpan? = null
    open var AdjustedTimeInDate:Date? = null
    open var AdjustedTimeOut:TimeSpan? = null
    open var AdjustedTimeOutDate:Date? = null
    open var IsValid:Boolean? = null
    open var Adjusted:Boolean? = null
    open var ProjectID:Int? = null
    open var ProjectName:String? = null
    open var ClientID:Int? = null
    open var ClientName:String? = null
    open var CategoryID:Int? = null
    open var CategoryName:String? = null
    open var JobID:Int? = null
    open var JobName:String? = null
}

open class ClockInOutResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var response:Boolean? = null
}

Kotlin ClockInOutRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /v1/TimeTracker/ClockInOut HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Timecard":{"AgentId":0,"CheckInId":0,"DateLogged":"0001-01-01T00:00:00.0000000","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: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"response":false}