Trendsic Platform Service

<back to all web services

CertifiedPayrollRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/projects/{ProjectID}/certified-payroll/{Week}
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class CertifiedPayrollRequest
{
    open var ProjectID:Int? = null
    open var Week:String? = null
}

open class CertifiedPayrollResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var Payroll:CertifiedPayroll? = null
}

open class CertifiedPayroll
{
    open var CertifiedPayrollID:Int? = null
    open var CertifiedPayrollUID:UUID? = null
    open var ProjectID:Int? = null
    open var PayrollNumber:Int? = null
    open var WeekEnding:Date? = null
    open var Status:String? = null
    open var DbeParticipationPct:BigDecimal? = null
    open var DbeGoalPct:BigDecimal? = null
    open var OjtApprenticeHours:BigDecimal? = null
    open var OjtApprenticeGoalHours:BigDecimal? = null
    open var WorkerCount:Int? = null
    open var TotalHoursST:BigDecimal? = null
    open var TotalHoursOT:BigDecimal? = null
    open var TotalGrossPay:BigDecimal? = null
    open var FlaggedCount:Int? = null
    open var SubmittedBy:String? = null
    open var SubmittedAt:Date? = null
    open var CreatedBy:String? = null
    open var CreatedAt:Date? = null
    open var UpdatedAt:Date? = null
    open var Lines:ArrayList<CertifiedPayrollLine> = ArrayList<CertifiedPayrollLine>()
    open var DeterminationNo:String? = null
    open var DeterminationType:String? = null
}

open class CertifiedPayrollLine
{
    open var CertifiedPayrollLineID:Int? = null
    open var CertifiedPayrollID:Int? = null
    open var WorkerName:String? = null
    open var ContactID:Int? = null
    open var Classification:String? = null
    open var HoursST:BigDecimal? = null
    open var HoursOT:BigDecimal? = null
    open var BaseRate:BigDecimal? = null
    open var FringeRate:BigDecimal? = null
    open var FringeCashRate:BigDecimal? = null
    open var FringePlanRate:BigDecimal? = null
    open var GrossPay:BigDecimal? = null
    open var Flagged:Boolean? = null
    open var RestitutionAmount:BigDecimal? = null
    open var RestitutionNote:String? = null
    open var RequiredBase:BigDecimal? = null
    open var RequiredFringe:BigDecimal? = null
    open var SortOrder:Int? = null
}

Kotlin CertifiedPayrollRequest 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.

GET /v1/projects/{ProjectID}/certified-payroll/{Week} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
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"}},"Payroll":{"CertifiedPayrollID":0,"CertifiedPayrollUID":"00000000000000000000000000000000","ProjectID":0,"PayrollNumber":0,"WeekEnding":"0001-01-01T00:00:00.0000000","Status":"String","DbeParticipationPct":0,"DbeGoalPct":0,"OjtApprenticeHours":0,"OjtApprenticeGoalHours":0,"WorkerCount":0,"TotalHoursST":0,"TotalHoursOT":0,"TotalGrossPay":0,"FlaggedCount":0,"SubmittedBy":"String","SubmittedAt":"0001-01-01T00:00:00.0000000","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000","Lines":[{"CertifiedPayrollLineID":0,"CertifiedPayrollID":0,"WorkerName":"String","ContactID":0,"Classification":"String","HoursST":0,"HoursOT":0,"BaseRate":0,"FringeRate":0,"FringeCashRate":0,"FringePlanRate":0,"GrossPay":0,"Flagged":false,"RestitutionAmount":0,"RestitutionNote":"String","RequiredBase":0,"RequiredFringe":0,"SortOrder":0}],"DeterminationNo":"String","DeterminationType":"String"}}