Trendsic Platform Service

<back to all web services

CommissionReportRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/CommissionReport/{StartDate}/{EndDate}

export class CommissionRecord
{
    public Id: number;
    public DateCreated: string;
    public AgentNumber: string;
    public AgentName: string;
    public PolicyNumber: string;
    public InsuredAnnuitant: string;
    public ProcessDate: string;
    public Premium: number;
    public GrossCommission: number;
    public CommRate: number;
    public Part: number;
    public PaymentDate: string;
    public PolicyType: string;
    public Company: string;
    public AgentId: number;
    public DateProcessed: string;
    public CommissionBatchId: number;

    public constructor(init?: Partial<CommissionRecord>) { (Object as any).assign(this, init); }
}

export class CommissionReportResponse
{
    public ResponseStatus: ResponseStatus;
    public ReportData: CommissionRecord[] = [];

    public constructor(init?: Partial<CommissionReportResponse>) { (Object as any).assign(this, init); }
}

export class CommissionReportRequest
{
    public StartDate: string;
    public EndDate: string;
    public ShowProcessed: boolean;

    public constructor(init?: Partial<CommissionReportRequest>) { (Object as any).assign(this, init); }
}

TypeScript CommissionReportRequest 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/CommissionReport/{StartDate}/{EndDate} 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,
			DateCreated: 0001-01-01,
			AgentNumber: String,
			AgentName: String,
			PolicyNumber: String,
			InsuredAnnuitant: String,
			ProcessDate: 0001-01-01,
			Premium: 0,
			GrossCommission: 0,
			CommRate: 0,
			Part: 0,
			PaymentDate: 0001-01-01,
			PolicyType: String,
			Company: String,
			AgentId: 0,
			DateProcessed: 0001-01-01,
			CommissionBatchId: 0
		}
	]
}