Trendsic Platform Service

<back to all web services

AgentRegistrationTempRequest

The following routes are available for this service:
POST,OPTIONS/v1/AgentRegistrationTemp
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class AgentRegistrationTemp:
    agent_registration_temp_id: int = 0
    application_id: Optional[str] = None
    company: Optional[str] = None
    ein: Optional[str] = None
    first_name: Optional[str] = None
    middle_name: Optional[str] = None
    last_name: Optional[str] = None
    address1: Optional[str] = None
    address2: Optional[str] = None
    city: Optional[str] = None
    state: Optional[str] = None
    zip: Optional[str] = None
    email: Optional[str] = None
    home_phone: Optional[str] = None
    cell_phone: Optional[str] = None
    work_phone: Optional[str] = None
    agree_to_disclosures: bool = False
    agree_to_date: datetime.datetime = datetime.datetime(1, 1, 1)
    paid_date: datetime.datetime = datetime.datetime(1, 1, 1)
    agent_number: Optional[str] = None
    upline1_name: Optional[str] = None
    upline1: int = 0
    upline2_name: Optional[str] = None
    upline2: int = 0
    recruited_by: Optional[str] = None
    created_date: datetime.datetime = datetime.datetime(1, 1, 1)
    dob: Optional[datetime.datetime] = None
    ssn: Optional[str] = None
    password: Optional[str] = None
    upline1_percent: Decimal = decimal.Decimal(0)
    upline2_percent: Decimal = decimal.Decimal(0)
    agent_id: int = 0
    account_name: Optional[str] = None
    account_type: Optional[str] = None
    account_number: Optional[str] = None
    account_routing: Optional[str] = None
    w9_1: Optional[str] = None
    w9_2: Optional[str] = None
    w9_3_1: Optional[str] = None
    w9_3_2: Optional[str] = None
    w9_3_3: Optional[str] = None
    w9_3_4: Optional[str] = None
    w9_3_5: Optional[str] = None
    w9_3_6: Optional[str] = None
    w9_3_7: Optional[str] = None
    w9_3_8: Optional[str] = None
    w9_4_1: Optional[str] = None
    w9_4_2: Optional[str] = None
    w9_5: Optional[str] = None
    w9_6: Optional[str] = None
    w9_7: Optional[str] = None
    is_security_licensed: bool = False
    security_license: Optional[str] = None
    position: Optional[str] = None
    school: Optional[str] = None
    district: Optional[str] = None
    store_name: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class AgentRegistrationTempResponse:
    success: bool = False
    message: Optional[str] = None
    response_status: Optional[ResponseStatus] = None
    agent_registration_temp_id: int = 0


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class AgentRegistrationTempRequest(AgentRegistrationTemp):
    pass

Python 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
}