Trendsic Platform Service

<back to all web services

CertifiedPayrollListRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/projects/{ProjectID}/certified-payroll
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 CertifiedPayroll
    {
        public virtual int CertifiedPayrollID { get; set; }
        public virtual Guid CertifiedPayrollUID { get; set; }
        public virtual int ProjectID { get; set; }
        public virtual int PayrollNumber { get; set; }
        public virtual DateTime? WeekEnding { get; set; }
        public virtual string Status { get; set; }
        public virtual decimal DbeParticipationPct { get; set; }
        public virtual decimal DbeGoalPct { get; set; }
        public virtual decimal OjtApprenticeHours { get; set; }
        public virtual decimal OjtApprenticeGoalHours { get; set; }
        public virtual int WorkerCount { get; set; }
        public virtual decimal TotalHoursST { get; set; }
        public virtual decimal TotalHoursOT { get; set; }
        public virtual decimal TotalGrossPay { get; set; }
        public virtual int FlaggedCount { get; set; }
        public virtual string SubmittedBy { get; set; }
        public virtual DateTime? SubmittedAt { get; set; }
        public virtual string CreatedBy { get; set; }
        public virtual DateTime? CreatedAt { get; set; }
        public virtual DateTime? UpdatedAt { get; set; }
        public virtual List<CertifiedPayrollLine> Lines { get; set; } = [];
        public virtual string DeterminationNo { get; set; }
        public virtual string DeterminationType { get; set; }
    }

    public partial class CertifiedPayrollLine
    {
        public virtual int CertifiedPayrollLineID { get; set; }
        public virtual int CertifiedPayrollID { get; set; }
        public virtual string WorkerName { get; set; }
        public virtual int? ContactID { get; set; }
        public virtual string Classification { get; set; }
        public virtual decimal HoursST { get; set; }
        public virtual decimal HoursOT { get; set; }
        public virtual decimal BaseRate { get; set; }
        public virtual decimal FringeRate { get; set; }
        public virtual decimal FringeCashRate { get; set; }
        public virtual decimal FringePlanRate { get; set; }
        public virtual decimal GrossPay { get; set; }
        public virtual bool Flagged { get; set; }
        public virtual decimal RestitutionAmount { get; set; }
        public virtual string RestitutionNote { get; set; }
        public virtual decimal RequiredBase { get; set; }
        public virtual decimal RequiredFringe { get; set; }
        public virtual int SortOrder { get; set; }
    }

    public partial class CertifiedPayrollListRequest
    {
        public virtual int ProjectID { get; set; }
    }

    public partial class CertifiedPayrollListResponse
    {
        public virtual ResponseStatus ResponseStatus { get; set; }
        public virtual int ProjectID { get; set; }
        public virtual List<CertifiedPayroll> Payrolls { get; set; } = [];
    }

}

C# CertifiedPayrollListRequest 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.

GET /v1/projects/{ProjectID}/certified-payroll HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
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
		}
	},
	ProjectID: 0,
	Payrolls: 
	[
		{
			CertifiedPayrollID: 0,
			CertifiedPayrollUID: 00000000000000000000000000000000,
			ProjectID: 0,
			PayrollNumber: 0,
			WeekEnding: 0001-01-01,
			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-01,
			CreatedBy: String,
			CreatedAt: 0001-01-01,
			UpdatedAt: 0001-01-01,
			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
		}
	]
}