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}
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 CommissionRecord
            Public Overridable Property Id As Integer
            Public Overridable Property DateCreated As Date
            Public Overridable Property AgentNumber As String
            Public Overridable Property AgentName As String
            Public Overridable Property PolicyNumber As String
            Public Overridable Property InsuredAnnuitant As String
            Public Overridable Property ProcessDate As Date
            Public Overridable Property Premium As Decimal
            Public Overridable Property GrossCommission As Decimal
            Public Overridable Property CommRate As Double
            Public Overridable Property Part As Double
            Public Overridable Property PaymentDate As Date
            Public Overridable Property PolicyType As String
            Public Overridable Property Company As String
            Public Overridable Property AgentId As Integer
            Public Overridable Property DateProcessed As Date
            Public Overridable Property CommissionBatchId As Integer
        End Class

        Public Partial Class CommissionReportRequest
            Public Overridable Property StartDate As Date
            Public Overridable Property EndDate As Date
            Public Overridable Property ShowProcessed As Boolean
        End Class

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

VB.NET CommissionReportRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

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/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
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}]}