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}
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 CommissionListing
            Public Overridable Property ID As Integer
            Public Overridable Property ProcessDate As Date
            Public Overridable Property PaymentDate As Date
            Public Overridable Property AgentId As Integer
            Public Overridable Property Agent As String
            Public Overridable Property OAgentID As Integer
            Public Overridable Property OAgent As String
            Public Overridable Property Policy As String
            Public Overridable Property PolicyType As String
            Public Overridable Property Insured As String
            Public Overridable Property Premium As Decimal
            Public Overridable Property Part As Double
            Public Overridable Property PartPercent As Double
            Public Overridable Property Amount As Decimal
            Public Overridable Property Company As String
            Public Overridable Property Gross As Decimal
            Public Overridable Property AgentNumber As String
            Public Overridable Property CommissionRate As Double
            Public Overridable Property Description As String
        End Class

        Public Partial Class PolicyReportRequest
            Public Overridable Property PolicyNumber As String
        End Class

        Public Partial Class PolicyReportResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property ReportData As List(Of CommissionListing) = New List(Of CommissionListing)
        End Class
    End Namespace
End Namespace

VB.NET 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
		}
	]
}