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}

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 ListingsRequest
{
    public Listings: Listing[] = [];
    public AgentID: number;
    public ParamStartDate: string;
    public ParamEndDate: string;

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

TypeScript ListingsRequest DTOs

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

HTTP + OTHER

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/jsonl
Content-Type: text/jsonl
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/jsonl
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}]}