| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/Securities/DateRange/{ParamStartDate}/{ParamEndDate}/{AgentID} | ||
|---|---|---|---|
| GET,OPTIONS | /v1/Securities/DateRange/{ParamStartDate}/{ParamEndDate} |
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 Listing
Public Overridable Property ID As Integer
Public Overridable Property LISTINGDATE As Date
Public Overridable Property LISTINGTDATE As Date
Public Overridable Property POLICY As String
Public Overridable Property OAGENT As String
Public Overridable Property INSURED As String
Public Overridable Property PREMIUM As String
Public Overridable Property PART As String
Public Overridable Property AMOUNT As Decimal
Public Overridable Property AGENTNM As String
Public Overridable Property LISTINGCTYPE As String
Public Overridable Property COMPANY As String
Public Overridable Property APPROVED As String
Public Overridable Property CARDCREDIT As String
Public Overridable Property REGION As String
Public Overridable Property FPAYOUT As String
Public Overridable Property PROMOPTS As String
Public Overridable Property APPCNT As String
Public Overridable Property PARTPERCENT As String
Public Overridable Property GROSS As Decimal
Public Overridable Property CITY As String
Public Overridable Property STATE As String
Public Overridable Property AGENTNO As String
Public Overridable Property TYPE As String
Public Overridable Property COMMRATE As String
Public Overridable Property AgentID As Integer
Public Overridable Property OAgentID As Integer
Public Overridable Property FIELDPAYOUT As Decimal
End Class
Public Partial Class ListingsResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property Listings As List(Of Listing) = New List(Of Listing)
End Class
Public Partial Class SecuritiesListingsRequest
Public Overridable Property Listings As List(Of Listing) = New List(Of Listing)
Public Overridable Property AgentID As Integer
Public Overridable Property ParamStartDate As Date
Public Overridable Property ParamEndDate As Date
End Class
End Namespace
End Namespace
VB.NET SecuritiesListingsRequest 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.
GET /v1/Securities/DateRange/{ParamStartDate}/{ParamEndDate}/{AgentID} 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
}
},
Listings:
[
{
ID: 0,
LISTINGDATE: 0001-01-01,
LISTINGTDATE: 0001-01-01,
POLICY: String,
OAGENT: String,
INSURED: String,
PREMIUM: String,
PART: String,
AMOUNT: 0,
AGENTNM: String,
LISTINGCTYPE: String,
COMPANY: String,
APPROVED: String,
CARDCREDIT: String,
REGION: String,
FPAYOUT: String,
PROMOPTS: String,
APPCNT: String,
PARTPERCENT: String,
GROSS: 0,
CITY: String,
STATE: String,
AGENTNO: String,
TYPE: String,
COMMRATE: String,
AgentID: 0,
OAgentID: 0,
FIELDPAYOUT: 0
}
]
}