Trendsic Platform Service

<back to all web services

PayApplicationListRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/projects/{ProjectID}/pay-apps
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 PayApplication
    {
        public virtual int PayApplicationID { get; set; }
        public virtual Guid PayApplicationUID { get; set; }
        public virtual int ProjectID { get; set; }
        public virtual int PeriodNumber { get; set; }
        public virtual DateTime? PeriodStart { get; set; }
        public virtual DateTime? PeriodEnd { get; set; }
        public virtual string Status { get; set; }
        public virtual string BillingTemplate { get; set; }
        public virtual decimal RetainagePct { get; set; }
        public virtual decimal OriginalContractSum { get; set; }
        public virtual decimal NetChangeByCO { get; set; }
        public virtual decimal ContractSumToDate { get; set; }
        public virtual decimal CompletedStoredToDate { get; set; }
        public virtual decimal RetainageAmount { get; set; }
        public virtual decimal EarnedLessRetainage { get; set; }
        public virtual decimal LessPreviousCertificates { get; set; }
        public virtual decimal CurrentPaymentDue { get; set; }
        public virtual decimal BalanceToFinish { get; set; }
        public virtual int? InvoiceID { get; set; }
        public virtual DateTime? CertifiedAt { get; set; }
        public virtual string CertifiedBy { get; set; }
        public virtual string CreatedBy { get; set; }
        public virtual DateTime? CreatedAt { get; set; }
        public virtual DateTime? UpdatedAt { get; set; }
        public virtual List<PayApplicationLine> Lines { get; set; } = [];
    }

    public partial class PayApplicationLine
    {
        public virtual int PayApplicationLineID { get; set; }
        public virtual int PayApplicationID { get; set; }
        public virtual string CostCode { get; set; }
        public virtual string Description { get; set; }
        public virtual decimal ScheduledValue { get; set; }
        public virtual decimal FromPreviousPct { get; set; }
        public virtual decimal ThisPeriodPct { get; set; }
        public virtual decimal StoredMaterials { get; set; }
        public virtual bool IsChangeOrder { get; set; }
        public virtual int? ChangeOrderID { get; set; }
        public virtual int SortOrder { get; set; }
    }

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

    public partial class PayApplicationListResponse
    {
        public virtual ResponseStatus ResponseStatus { get; set; }
        public virtual int ProjectID { get; set; }
        public virtual List<PayApplication> Applications { get; set; } = [];
    }

}

C# PayApplicationListRequest 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}/pay-apps 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,
	Applications: 
	[
		{
			PayApplicationID: 0,
			PayApplicationUID: 00000000000000000000000000000000,
			ProjectID: 0,
			PeriodNumber: 0,
			PeriodStart: 0001-01-01,
			PeriodEnd: 0001-01-01,
			Status: String,
			BillingTemplate: String,
			RetainagePct: 0,
			OriginalContractSum: 0,
			NetChangeByCO: 0,
			ContractSumToDate: 0,
			CompletedStoredToDate: 0,
			RetainageAmount: 0,
			EarnedLessRetainage: 0,
			LessPreviousCertificates: 0,
			CurrentPaymentDue: 0,
			BalanceToFinish: 0,
			InvoiceID: 0,
			CertifiedAt: 0001-01-01,
			CertifiedBy: String,
			CreatedBy: String,
			CreatedAt: 0001-01-01,
			UpdatedAt: 0001-01-01,
			Lines: 
			[
				{
					PayApplicationLineID: 0,
					PayApplicationID: 0,
					CostCode: String,
					Description: String,
					ScheduledValue: 0,
					FromPreviousPct: 0,
					ThisPeriodPct: 0,
					StoredMaterials: 0,
					IsChangeOrder: False,
					ChangeOrderID: 0,
					SortOrder: 0
				}
			]
		}
	]
}