Trendsic Platform Service

<back to all web services

AgentRegistrationTempRequest

The following routes are available for this service:
POST,OPTIONS/v1/AgentRegistrationTemp
"use strict";
export class AgentRegistrationTemp {
    /** @param {{AgentRegistrationTempId?:number,ApplicationId?:string,Company?:string,EIN?:string,FirstName?:string,MiddleName?:string,LastName?:string,Address1?:string,Address2?:string,City?:string,State?:string,Zip?:string,Email?:string,HomePhone?:string,CellPhone?:string,WorkPhone?:string,AgreeToDisclosures?:boolean,AgreeToDate?:string,PaidDate?:string,AgentNumber?:string,Upline1Name?:string,Upline1?:number,Upline2Name?:string,Upline2?:number,RecruitedBy?:string,CreatedDate?:string,DOB?:string,SSN?:string,Password?:string,Upline1Percent?:number,Upline2Percent?:number,AgentId?:number,AccountName?:string,AccountType?:string,AccountNumber?:string,AccountRouting?:string,w9_1?:string,w9_2?:string,w9_3_1?:string,w9_3_2?:string,w9_3_3?:string,w9_3_4?:string,w9_3_5?:string,w9_3_6?:string,w9_3_7?:string,w9_3_8?:string,w9_4_1?:string,w9_4_2?:string,w9_5?:string,w9_6?:string,w9_7?:string,IsSecurityLicensed?:boolean,SecurityLicense?:string,Position?:string,School?:string,District?:string,StoreName?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    AgentRegistrationTempId;
    /** @type {string} */
    ApplicationId;
    /** @type {string} */
    Company;
    /** @type {string} */
    EIN;
    /** @type {string} */
    FirstName;
    /** @type {string} */
    MiddleName;
    /** @type {string} */
    LastName;
    /** @type {string} */
    Address1;
    /** @type {string} */
    Address2;
    /** @type {string} */
    City;
    /** @type {string} */
    State;
    /** @type {string} */
    Zip;
    /** @type {string} */
    Email;
    /** @type {string} */
    HomePhone;
    /** @type {string} */
    CellPhone;
    /** @type {string} */
    WorkPhone;
    /** @type {boolean} */
    AgreeToDisclosures;
    /** @type {string} */
    AgreeToDate;
    /** @type {string} */
    PaidDate;
    /** @type {string} */
    AgentNumber;
    /** @type {string} */
    Upline1Name;
    /** @type {number} */
    Upline1;
    /** @type {string} */
    Upline2Name;
    /** @type {number} */
    Upline2;
    /** @type {string} */
    RecruitedBy;
    /** @type {string} */
    CreatedDate;
    /** @type {?string} */
    DOB;
    /** @type {string} */
    SSN;
    /** @type {string} */
    Password;
    /** @type {number} */
    Upline1Percent;
    /** @type {number} */
    Upline2Percent;
    /** @type {number} */
    AgentId;
    /** @type {string} */
    AccountName;
    /** @type {string} */
    AccountType;
    /** @type {string} */
    AccountNumber;
    /** @type {string} */
    AccountRouting;
    /** @type {string} */
    w9_1;
    /** @type {string} */
    w9_2;
    /** @type {string} */
    w9_3_1;
    /** @type {string} */
    w9_3_2;
    /** @type {string} */
    w9_3_3;
    /** @type {string} */
    w9_3_4;
    /** @type {string} */
    w9_3_5;
    /** @type {string} */
    w9_3_6;
    /** @type {string} */
    w9_3_7;
    /** @type {string} */
    w9_3_8;
    /** @type {string} */
    w9_4_1;
    /** @type {string} */
    w9_4_2;
    /** @type {string} */
    w9_5;
    /** @type {string} */
    w9_6;
    /** @type {string} */
    w9_7;
    /** @type {boolean} */
    IsSecurityLicensed;
    /** @type {string} */
    SecurityLicense;
    /** @type {string} */
    Position;
    /** @type {string} */
    School;
    /** @type {string} */
    District;
    /** @type {string} */
    StoreName;
}
export class AgentRegistrationTempResponse {
    /** @param {{Success?:boolean,Message?:string,ResponseStatus?:ResponseStatus,AgentRegistrationTempId?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {boolean} */
    Success;
    /** @type {string} */
    Message;
    /** @type {ResponseStatus} */
    ResponseStatus;
    /** @type {number} */
    AgentRegistrationTempId;
}
export class AgentRegistrationTempRequest extends AgentRegistrationTemp {
    /** @param {{AgentRegistrationTempId?:number,ApplicationId?:string,Company?:string,EIN?:string,FirstName?:string,MiddleName?:string,LastName?:string,Address1?:string,Address2?:string,City?:string,State?:string,Zip?:string,Email?:string,HomePhone?:string,CellPhone?:string,WorkPhone?:string,AgreeToDisclosures?:boolean,AgreeToDate?:string,PaidDate?:string,AgentNumber?:string,Upline1Name?:string,Upline1?:number,Upline2Name?:string,Upline2?:number,RecruitedBy?:string,CreatedDate?:string,DOB?:string,SSN?:string,Password?:string,Upline1Percent?:number,Upline2Percent?:number,AgentId?:number,AccountName?:string,AccountType?:string,AccountNumber?:string,AccountRouting?:string,w9_1?:string,w9_2?:string,w9_3_1?:string,w9_3_2?:string,w9_3_3?:string,w9_3_4?:string,w9_3_5?:string,w9_3_6?:string,w9_3_7?:string,w9_3_8?:string,w9_4_1?:string,w9_4_2?:string,w9_5?:string,w9_6?:string,w9_7?:string,IsSecurityLicensed?:boolean,SecurityLicense?:string,Position?:string,School?:string,District?:string,StoreName?:string}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
}

JavaScript AgentRegistrationTempRequest 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/AgentRegistrationTemp HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<AgentRegistrationTempRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <AccountName>String</AccountName>
  <AccountNumber>String</AccountNumber>
  <AccountRouting>String</AccountRouting>
  <AccountType>String</AccountType>
  <Address1>String</Address1>
  <Address2>String</Address2>
  <AgentId>0</AgentId>
  <AgentNumber>String</AgentNumber>
  <AgentRegistrationTempId>0</AgentRegistrationTempId>
  <AgreeToDate>0001-01-01T00:00:00</AgreeToDate>
  <AgreeToDisclosures>false</AgreeToDisclosures>
  <ApplicationId>String</ApplicationId>
  <CellPhone>String</CellPhone>
  <City>String</City>
  <Company>String</Company>
  <CreatedDate>0001-01-01T00:00:00</CreatedDate>
  <DOB>0001-01-01T00:00:00</DOB>
  <District>String</District>
  <EIN>String</EIN>
  <Email>String</Email>
  <FirstName>String</FirstName>
  <HomePhone>String</HomePhone>
  <IsSecurityLicensed>false</IsSecurityLicensed>
  <LastName>String</LastName>
  <MiddleName>String</MiddleName>
  <PaidDate>0001-01-01T00:00:00</PaidDate>
  <Password>String</Password>
  <Position>String</Position>
  <RecruitedBy>String</RecruitedBy>
  <SSN>String</SSN>
  <School>String</School>
  <SecurityLicense>String</SecurityLicense>
  <State>String</State>
  <StoreName>String</StoreName>
  <Upline1>0</Upline1>
  <Upline1Name>String</Upline1Name>
  <Upline1Percent>0</Upline1Percent>
  <Upline2>0</Upline2>
  <Upline2Name>String</Upline2Name>
  <Upline2Percent>0</Upline2Percent>
  <WorkPhone>String</WorkPhone>
  <Zip>String</Zip>
  <w9_1>String</w9_1>
  <w9_2>String</w9_2>
  <w9_3_1>String</w9_3_1>
  <w9_3_2>String</w9_3_2>
  <w9_3_3>String</w9_3_3>
  <w9_3_4>String</w9_3_4>
  <w9_3_5>String</w9_3_5>
  <w9_3_6>String</w9_3_6>
  <w9_3_7>String</w9_3_7>
  <w9_3_8>String</w9_3_8>
  <w9_4_1>String</w9_4_1>
  <w9_4_2>String</w9_4_2>
  <w9_5>String</w9_5>
  <w9_6>String</w9_6>
  <w9_7>String</w9_7>
</AgentRegistrationTempRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<AgentRegistrationTempResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <AgentRegistrationTempId>0</AgentRegistrationTempId>
  <Message>String</Message>
  <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>
  <Success>false</Success>
</AgentRegistrationTempResponse>