Trendsic Platform Service

<back to all web services

PayApplicationDetailRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/projects/{ProjectID}/pay-apps/{PeriodNumber}
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class PayApplication
            Public Overridable Property PayApplicationID As Integer
            Public Overridable Property PayApplicationUID As Guid
            Public Overridable Property ProjectID As Integer
            Public Overridable Property PeriodNumber As Integer
            Public Overridable Property PeriodStart As Date?
            Public Overridable Property PeriodEnd As Date?
            Public Overridable Property Status As String
            Public Overridable Property BillingTemplate As String
            Public Overridable Property RetainagePct As Decimal
            Public Overridable Property OriginalContractSum As Decimal
            Public Overridable Property NetChangeByCO As Decimal
            Public Overridable Property ContractSumToDate As Decimal
            Public Overridable Property CompletedStoredToDate As Decimal
            Public Overridable Property RetainageAmount As Decimal
            Public Overridable Property EarnedLessRetainage As Decimal
            Public Overridable Property LessPreviousCertificates As Decimal
            Public Overridable Property CurrentPaymentDue As Decimal
            Public Overridable Property BalanceToFinish As Decimal
            Public Overridable Property InvoiceID As Integer?
            Public Overridable Property CertifiedAt As Date?
            Public Overridable Property CertifiedBy As String
            Public Overridable Property CreatedBy As String
            Public Overridable Property CreatedAt As Date?
            Public Overridable Property UpdatedAt As Date?
            Public Overridable Property Lines As List(Of PayApplicationLine) = New List(Of PayApplicationLine)
        End Class

        Public Partial Class PayApplicationDetailRequest
            Public Overridable Property ProjectID As Integer
            Public Overridable Property PeriodNumber As Integer
        End Class

        Public Partial Class PayApplicationLine
            Public Overridable Property PayApplicationLineID As Integer
            Public Overridable Property PayApplicationID As Integer
            Public Overridable Property CostCode As String
            Public Overridable Property Description As String
            Public Overridable Property ScheduledValue As Decimal
            Public Overridable Property FromPreviousPct As Decimal
            Public Overridable Property ThisPeriodPct As Decimal
            Public Overridable Property StoredMaterials As Decimal
            Public Overridable Property IsChangeOrder As Boolean
            Public Overridable Property ChangeOrderID As Integer?
            Public Overridable Property SortOrder As Integer
        End Class

        Public Partial Class PayApplicationResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property Application As PayApplication
        End Class
    End Namespace
End Namespace

VB.NET PayApplicationDetailRequest DTOs

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

HTTP + OTHER

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

GET /v1/projects/{ProjectID}/pay-apps/{PeriodNumber} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Application":{"PayApplicationID":0,"PayApplicationUID":"00000000000000000000000000000000","ProjectID":0,"PeriodNumber":0,"PeriodStart":"0001-01-01T00:00:00.0000000","PeriodEnd":"0001-01-01T00:00:00.0000000","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-01T00:00:00.0000000","CertifiedBy":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000","Lines":[{"PayApplicationLineID":0,"PayApplicationID":0,"CostCode":"String","Description":"String","ScheduledValue":0,"FromPreviousPct":0,"ThisPeriodPct":0,"StoredMaterials":0,"IsChangeOrder":false,"ChangeOrderID":0,"SortOrder":0}]}}