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

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

<ListingsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <AgentID>0</AgentID>
  <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>
  <ParamEndDate>0001-01-01T00:00:00</ParamEndDate>
  <ParamStartDate>0001-01-01T00:00:00</ParamStartDate>
</ListingsRequest>
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>