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}
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 CommissionListing
    {
        public virtual int ID { get; set; }
        public virtual DateTime ProcessDate { get; set; }
        public virtual DateTime PaymentDate { get; set; }
        public virtual int AgentId { get; set; }
        public virtual string Agent { get; set; }
        public virtual int OAgentID { get; set; }
        public virtual string OAgent { get; set; }
        public virtual string Policy { get; set; }
        public virtual string PolicyType { get; set; }
        public virtual string Insured { get; set; }
        public virtual decimal Premium { get; set; }
        public virtual double Part { get; set; }
        public virtual double PartPercent { get; set; }
        public virtual decimal Amount { get; set; }
        public virtual string Company { get; set; }
        public virtual decimal Gross { get; set; }
        public virtual string AgentNumber { get; set; }
        public virtual double CommissionRate { get; set; }
        public virtual string Description { get; set; }
    }

    public partial class PolicyReportRequest
    {
        public virtual string PolicyNumber { get; set; }
    }

    public partial class PolicyReportResponse
    {
        public virtual ResponseStatus ResponseStatus { get; set; }
        public virtual List<CommissionListing> ReportData { get; set; } = [];
    }

}

C# 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
		}
	]
}