| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/CommissionReport/{StartDate}/{EndDate} |
|---|
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 CommissionRecord
{
public virtual int Id { get; set; }
public virtual DateTime DateCreated { get; set; }
public virtual string AgentNumber { get; set; }
public virtual string AgentName { get; set; }
public virtual string PolicyNumber { get; set; }
public virtual string InsuredAnnuitant { get; set; }
public virtual DateTime ProcessDate { get; set; }
public virtual decimal Premium { get; set; }
public virtual decimal GrossCommission { get; set; }
public virtual double CommRate { get; set; }
public virtual double Part { get; set; }
public virtual DateTime PaymentDate { get; set; }
public virtual string PolicyType { get; set; }
public virtual string Company { get; set; }
public virtual int AgentId { get; set; }
public virtual DateTime DateProcessed { get; set; }
public virtual int CommissionBatchId { get; set; }
}
public partial class CommissionReportRequest
{
public virtual DateTime StartDate { get; set; }
public virtual DateTime EndDate { get; set; }
public virtual bool ShowProcessed { get; set; }
}
public partial class CommissionReportResponse
{
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual List<CommissionRecord> ReportData { get; set; } = [];
}
}
C# CommissionReportRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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-01T00:00:00.0000000","AgentNumber":"String","AgentName":"String","PolicyNumber":"String","InsuredAnnuitant":"String","ProcessDate":"0001-01-01T00:00:00.0000000","Premium":0,"GrossCommission":0,"CommRate":0,"Part":0,"PaymentDate":"0001-01-01T00:00:00.0000000","PolicyType":"String","Company":"String","AgentId":0,"DateProcessed":"0001-01-01T00:00:00.0000000","CommissionBatchId":0}]}