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}

export class Listing
{
    public ID: number;
    public LISTINGDATE: string;
    public LISTINGTDATE: string;
    public POLICY: string;
    public OAGENT: string;
    public INSURED: string;
    public PREMIUM: string;
    public PART: string;
    public AMOUNT: number;
    public AGENTNM: string;
    public LISTINGCTYPE: string;
    public COMPANY: string;
    public APPROVED: string;
    public CARDCREDIT: string;
    public REGION: string;
    public FPAYOUT: string;
    public PROMOPTS: string;
    public APPCNT: string;
    public PARTPERCENT: string;
    public GROSS: number;
    public CITY: string;
    public STATE: string;
    public AGENTNO: string;
    public TYPE: string;
    public COMMRATE: string;
    public AgentID: number;
    public OAgentID: number;
    public FIELDPAYOUT: number;

    public constructor(init?: Partial<Listing>) { (Object as any).assign(this, init); }
}

export class ListingsResponse
{
    public ResponseStatus: ResponseStatus;
    public Listings: Listing[] = [];

    public constructor(init?: Partial<ListingsResponse>) { (Object as any).assign(this, init); }
}

export class SecuritiesListingsRequest
{
    public Listings: Listing[] = [];
    public AgentID: number;
    public ParamStartDate: string;
    public ParamEndDate: string;

    public constructor(init?: Partial<SecuritiesListingsRequest>) { (Object as any).assign(this, init); }
}

TypeScript SecuritiesListingsRequest 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.

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
		}
	]
}