| Requires any of the roles: | Agent, Administrator, Agent, Administrator, Agent, Administrator, Agent, Administrator |
| GET,DELETE,OPTIONS | /v1/CommissionListing/{CommissionListingId} | ||
|---|---|---|---|
| GET,POST,PUT,OPTIONS | /v1/CommissionListing/ |
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 CommissionListing
Public Overridable Property ID As Integer
Public Overridable Property ProcessDate As Date
Public Overridable Property PaymentDate As Date
Public Overridable Property AgentId As Integer
Public Overridable Property Agent As String
Public Overridable Property OAgentID As Integer
Public Overridable Property OAgent As String
Public Overridable Property Policy As String
Public Overridable Property PolicyType As String
Public Overridable Property Insured As String
Public Overridable Property Premium As Decimal
Public Overridable Property Part As Double
Public Overridable Property PartPercent As Double
Public Overridable Property Amount As Decimal
Public Overridable Property Company As String
Public Overridable Property Gross As Decimal
Public Overridable Property AgentNumber As String
Public Overridable Property CommissionRate As Double
Public Overridable Property Description As String
End Class
Public Partial Class CommissionListingRequest
Public Overridable Property CommissionListings As List(Of CommissionListing) = New List(Of CommissionListing)
Public Overridable Property CommissionListing As CommissionListing
Public Overridable Property CommissionListingId As Integer
End Class
Public Partial Class CommissionListingResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property CommissionListings As List(Of CommissionListing) = New List(Of CommissionListing)
Public Overridable Property CommissionListingId As Integer
End Class
End Namespace
End Namespace
VB.NET CommissionListingRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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
}