Trendsic Platform Service

<back to all web services

CommissionListingRequest

Requires Authentication
Requires any of the roles:Agent, Administrator, Agent, Administrator, Agent, Administrator, Agent, Administrator
The following routes are available for this service:
GET,DELETE,OPTIONS/v1/CommissionListing/{CommissionListingId}
GET,POST,PUT,OPTIONS/v1/CommissionListing/
namespace CRM.AgencyPlatform.API.Internal

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type CommissionListing() = 
        member val ID:Int32 = new Int32() with get,set
        member val ProcessDate:DateTime = new DateTime() with get,set
        member val PaymentDate:DateTime = new DateTime() with get,set
        member val AgentId:Int32 = new Int32() with get,set
        member val Agent:String = null with get,set
        member val OAgentID:Int32 = new Int32() with get,set
        member val OAgent:String = null with get,set
        member val Policy:String = null with get,set
        member val PolicyType:String = null with get,set
        member val Insured:String = null with get,set
        member val Premium:Decimal = new Decimal() with get,set
        member val Part:Double = new Double() with get,set
        member val PartPercent:Double = new Double() with get,set
        member val Amount:Decimal = new Decimal() with get,set
        member val Company:String = null with get,set
        member val Gross:Decimal = new Decimal() with get,set
        member val AgentNumber:String = null with get,set
        member val CommissionRate:Double = new Double() with get,set
        member val Description:String = null with get,set

    [<AllowNullLiteral>]
    type CommissionListingResponse() = 
        member val ResponseStatus:ResponseStatus = null with get,set
        member val CommissionListings:ResizeArray<CommissionListing> = new ResizeArray<CommissionListing>() with get,set
        member val CommissionListingId:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type CommissionListingRequest() = 
        member val CommissionListings:ResizeArray<CommissionListing> = new ResizeArray<CommissionListing>() with get,set
        member val CommissionListing:CommissionListing = null with get,set
        member val CommissionListingId:Int32 = new Int32() with get,set

F# CommissionListingRequest 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.

POST /v1/CommissionListing/ HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	CommissionListings: 
	[
		{
			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
		}
	],
	CommissionListing: 
	{
		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
	},
	CommissionListingId: 0
}
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
		}
	},
	CommissionListings: 
	[
		{
			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
		}
	],
	CommissionListingId: 0
}