Trendsic Platform Service

<back to all web services

ListingsRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,POST,PUT,DELETE,OPTIONS/v1/Listings/{ID}
GET,POST,PUT,DELETE,OPTIONS/v1/Listings
GET,POST,PUT,DELETE,OPTIONS/v1/Listings/DateRange/{ParamStartDate}/{ParamEndDate}/{AgentID}
GET,POST,PUT,DELETE,OPTIONS/v1/Listings/DateRange/{ParamStartDate}/{ParamEndDate}
"use strict";
export class Listing {
    /** @param {{ID?:number,LISTINGDATE?:string,LISTINGTDATE?:string,POLICY?:string,OAGENT?:string,INSURED?:string,PREMIUM?:string,PART?:string,AMOUNT?:number,AGENTNM?:string,LISTINGCTYPE?:string,COMPANY?:string,APPROVED?:string,CARDCREDIT?:string,REGION?:string,FPAYOUT?:string,PROMOPTS?:string,APPCNT?:string,PARTPERCENT?:string,GROSS?:number,CITY?:string,STATE?:string,AGENTNO?:string,TYPE?:string,COMMRATE?:string,AgentID?:number,OAgentID?:number,FIELDPAYOUT?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    ID;
    /** @type {string} */
    LISTINGDATE;
    /** @type {string} */
    LISTINGTDATE;
    /** @type {string} */
    POLICY;
    /** @type {string} */
    OAGENT;
    /** @type {string} */
    INSURED;
    /** @type {string} */
    PREMIUM;
    /** @type {string} */
    PART;
    /** @type {number} */
    AMOUNT;
    /** @type {string} */
    AGENTNM;
    /** @type {string} */
    LISTINGCTYPE;
    /** @type {string} */
    COMPANY;
    /** @type {string} */
    APPROVED;
    /** @type {string} */
    CARDCREDIT;
    /** @type {string} */
    REGION;
    /** @type {string} */
    FPAYOUT;
    /** @type {string} */
    PROMOPTS;
    /** @type {string} */
    APPCNT;
    /** @type {string} */
    PARTPERCENT;
    /** @type {number} */
    GROSS;
    /** @type {string} */
    CITY;
    /** @type {string} */
    STATE;
    /** @type {string} */
    AGENTNO;
    /** @type {string} */
    TYPE;
    /** @type {string} */
    COMMRATE;
    /** @type {number} */
    AgentID;
    /** @type {number} */
    OAgentID;
    /** @type {number} */
    FIELDPAYOUT;
}
export class ListingsResponse {
    /** @param {{ResponseStatus?:ResponseStatus,Listings?:Listing[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {ResponseStatus} */
    ResponseStatus;
    /** @type {Listing[]} */
    Listings = [];
}
export class ListingsRequest {
    /** @param {{Listings?:Listing[],AgentID?:number,ParamStartDate?:string,ParamEndDate?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {Listing[]} */
    Listings = [];
    /** @type {number} */
    AgentID;
    /** @type {string} */
    ParamStartDate;
    /** @type {string} */
    ParamEndDate;
}

JavaScript ListingsRequest DTOs

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

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/Listings/{ID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Listings":[{"ID":0,"LISTINGDATE":"0001-01-01T00:00:00.0000000","LISTINGTDATE":"0001-01-01T00:00:00.0000000","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}],"AgentID":0,"ParamStartDate":"0001-01-01T00:00:00.0000000","ParamEndDate":"0001-01-01T00:00:00.0000000"}
HTTP/1.1 200 OK
Content-Type: text/csv
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-01T00:00:00.0000000","LISTINGTDATE":"0001-01-01T00:00:00.0000000","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}]}