Trendsic Platform Service

<back to all web services

ReleaseRetainageRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/projects/{ProjectID}/closeout/release-retainage
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 CloseoutStatus
    {
        public virtual int ProjectID { get; set; }
        public virtual int TotalItems { get; set; }
        public virtual int DoneCount { get; set; }
        public virtual int OutstandingCount { get; set; }
        public virtual bool AllClear { get; set; }
        public virtual decimal RetainageAmount { get; set; }
        public virtual bool RetainageReleased { get; set; }
        public virtual int? ReleasedPayApplicationID { get; set; }
        public virtual int? ReleasedInvoiceID { get; set; }
        public virtual DateTime? ReleasedAt { get; set; }
    }

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

    public partial class ReleaseRetainageResponse
    {
        public virtual ResponseStatus ResponseStatus { get; set; }
        public virtual int ProjectID { get; set; }
        public virtual CloseoutStatus Status { get; set; }
        public virtual int? PayApplicationID { get; set; }
        public virtual int? InvoiceID { get; set; }
        public virtual decimal RetainageReleased { get; set; }
    }

}

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

POST /v1/projects/{ProjectID}/closeout/release-retainage HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ProjectID: 0
}
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,
	Status: 
	{
		ProjectID: 0,
		TotalItems: 0,
		DoneCount: 0,
		OutstandingCount: 0,
		AllClear: False,
		RetainageAmount: 0,
		RetainageReleased: False,
		ReleasedPayApplicationID: 0,
		ReleasedInvoiceID: 0,
		ReleasedAt: 0001-01-01
	},
	PayApplicationID: 0,
	InvoiceID: 0,
	RetainageReleased: 0
}