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

POST /v1/AgentRegistrationTemp HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	AgentRegistrationTempId: 0,
	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: False,
	AgreeToDate: 0001-01-01,
	PaidDate: 0001-01-01,
	AgentNumber: String,
	Upline1Name: String,
	Upline1: 0,
	Upline2Name: String,
	Upline2: 0,
	RecruitedBy: String,
	CreatedDate: 0001-01-01,
	DOB: 0001-01-01,
	SSN: String,
	Password: String,
	Upline1Percent: 0,
	Upline2Percent: 0,
	AgentId: 0,
	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: False,
	SecurityLicense: String,
	Position: String,
	School: String,
	District: String,
	StoreName: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Success: False,
	Message: String,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	AgentRegistrationTempId: 0
}