Trendsic Platform Service

<back to all web services

SecuritiesListingsRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/Securities/DateRange/{ParamStartDate}/{ParamEndDate}/{AgentID}
GET,OPTIONS/v1/Securities/DateRange/{ParamStartDate}/{ParamEndDate}
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class SecuritiesListingsRequest
{
    open var Listings:ArrayList<Listing> = ArrayList<Listing>()
    open var AgentID:Int? = null
    open var ParamStartDate:Date? = null
    open var ParamEndDate:Date? = null
}

open class Listing
{
    open var ID:Int? = null
    open var LISTINGDATE:Date? = null
    open var LISTINGTDATE:Date? = null
    open var POLICY:String? = null
    open var OAGENT:String? = null
    open var INSURED:String? = null
    open var PREMIUM:String? = null
    open var PART:String? = null
    open var AMOUNT:BigDecimal? = null
    open var AGENTNM:String? = null
    open var LISTINGCTYPE:String? = null
    open var COMPANY:String? = null
    open var APPROVED:String? = null
    open var CARDCREDIT:String? = null
    open var REGION:String? = null
    open var FPAYOUT:String? = null
    open var PROMOPTS:String? = null
    open var APPCNT:String? = null
    open var PARTPERCENT:String? = null
    open var GROSS:BigDecimal? = null
    open var CITY:String? = null
    open var STATE:String? = null
    open var AGENTNO:String? = null
    open var TYPE:String? = null
    open var COMMRATE:String? = null
    open var AgentID:Int? = null
    open var OAgentID:Int? = null
    open var FIELDPAYOUT:BigDecimal? = null
}

open class ListingsResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var Listings:ArrayList<Listing> = ArrayList<Listing>()
}

Kotlin SecuritiesListingsRequest DTOs

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

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ListingsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Listings>
    <Listing>
      <AGENTNM>String</AGENTNM>
      <AGENTNO>String</AGENTNO>
      <AMOUNT>0</AMOUNT>
      <APPCNT>String</APPCNT>
      <APPROVED>String</APPROVED>
      <AgentID>0</AgentID>
      <CARDCREDIT>String</CARDCREDIT>
      <CITY>String</CITY>
      <COMMRATE>String</COMMRATE>
      <COMPANY>String</COMPANY>
      <FIELDPAYOUT>0</FIELDPAYOUT>
      <FPAYOUT>String</FPAYOUT>
      <GROSS>0</GROSS>
      <ID>0</ID>
      <INSURED>String</INSURED>
      <LISTINGCTYPE>String</LISTINGCTYPE>
      <LISTINGDATE>0001-01-01T00:00:00</LISTINGDATE>
      <LISTINGTDATE>0001-01-01T00:00:00</LISTINGTDATE>
      <OAGENT>String</OAGENT>
      <OAgentID>0</OAgentID>
      <PART>String</PART>
      <PARTPERCENT>String</PARTPERCENT>
      <POLICY>String</POLICY>
      <PREMIUM>String</PREMIUM>
      <PROMOPTS>String</PROMOPTS>
      <REGION>String</REGION>
      <STATE>String</STATE>
      <TYPE>String</TYPE>
    </Listing>
  </Listings>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</ListingsResponse>