Trendsic Platform Service

<back to all web services

PolicyReportRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/PolicyReport/{PolicyNumber}
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class PolicyReportRequest
{
    open var PolicyNumber:String? = null
}

open class PolicyReportResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var ReportData:ArrayList<CommissionListing> = ArrayList<CommissionListing>()
}

open class CommissionListing
{
    open var ID:Int? = null
    open var ProcessDate:Date? = null
    open var PaymentDate:Date? = null
    open var AgentId:Int? = null
    open var Agent:String? = null
    open var OAgentID:Int? = null
    open var OAgent:String? = null
    open var Policy:String? = null
    open var PolicyType:String? = null
    open var Insured:String? = null
    open var Premium:BigDecimal? = null
    open var Part:Double? = null
    open var PartPercent:Double? = null
    open var Amount:BigDecimal? = null
    open var Company:String? = null
    open var Gross:BigDecimal? = null
    open var AgentNumber:String? = null
    open var CommissionRate:Double? = null
    open var Description:String? = null
}

Kotlin PolicyReportRequest 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/PolicyReport/{PolicyNumber} 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
		}
	},
	ReportData: 
	[
		{
			ID: 0,
			ProcessDate: 0001-01-01,
			PaymentDate: 0001-01-01,
			AgentId: 0,
			Agent: String,
			OAgentID: 0,
			OAgent: String,
			Policy: String,
			PolicyType: String,
			Insured: String,
			Premium: 0,
			Part: 0,
			PartPercent: 0,
			Amount: 0,
			Company: String,
			Gross: 0,
			AgentNumber: String,
			CommissionRate: 0,
			Description: String
		}
	]
}