| Required roles: | Agent, Administrator | Requires any of the roles: | Worker, Agent, Administrator |
| GET | /v1/AgentContract/{AgentId} | ||
|---|---|---|---|
| PUT,OPTIONS | /v1/AgentContract |
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class AgentContractRequest
{
open var AgentContract:ArrayList<AgentContractExtended> = ArrayList<AgentContractExtended>()
open var AgentId:Int? = null
}
open class AgentContractExtended : Agent()
{
open var AgentContractId:Int? = null
open var AFAgreementReceivedDate:Date? = null
open var DirectDepositReceivedDate:Date? = null
open var DotNETCompleteDate:Date? = null
open var AssociateAppUploadedDate:Date? = null
open var LSWContractLinkSentDate:Date? = null
open var LSWContractDoneDate:Date? = null
open var LSWLifeAgentCode:String? = null
open var LSWAnnuityAgentCode:String? = null
open var LSWWebsiteUserId:String? = null
open var AMLCompletedDate:Date? = null
open var StateAnnuityTrainingCompletedDate:Date? = null
open var LSWProductTrainingCompletedDate:Date? = null
open var EOExpirationDate:Date? = null
open var SureLCLinkSentDate:Date? = null
open var AEContractDoneDate:Date? = null
open var AEAgentCode:String? = null
open var MGANorthAmericanContractSentDate:Date? = null
open var MGANorthAmericanAgentCode:String? = null
open var AmericoContractDoneDate:Date? = null
open var AmericoAgentCode:String? = null
open var MidlandContractDoneDate:Date? = null
open var MidlandAgentCode:String? = null
open var JacksonContractDoneDate:Date? = null
open var JacksonAgentCode:String? = null
open var VoyaContractDoneDate:Date? = null
open var VoyaAgentCode:String? = null
open var HoraceMannContractDoneDate:Date? = null
open var HoraceMannAgentCode:String? = null
open var GreatAmericanContractDoneDate:Date? = null
open var GreatAmericanAgentCode:String? = null
open var MutualOfOmahaContractDoneDate:Date? = null
open var MutualOfOmahaAgentCode:String? = null
open var AllanzContractDoneDate:Date? = null
open var AllanzAgentCode:String? = null
open var FGContractDoneDate:Date? = null
open var FGAgentCode:String? = null
open var ResidentLicenseState:String? = null
open var ResidentLicenseNumber:String? = null
open var ResidentLicenseExpirationDate:Date? = null
open var ContractingComplete:Date? = null
open var PackageMailed:Date? = null
open var TrackingNum:String? = null
open var ProtectiveContractDoneDate:Date? = null
open var ProtectiveCode:String? = null
open var AtheneContractDoneDate:Date? = null
open var AtheneCode:String? = null
open var ForestersContractDoneDate:Date? = null
open var ForestersCode:String? = null
open var ACHName:String? = null
open var ACHNumber:String? = null
open var ACHRouting:String? = null
open var ACHAccountType:String? = null
open var w9_1:String? = null
open var w9_2:String? = null
open var w9_3_1:String? = null
open var w9_3_2:String? = null
open var w9_3_3:String? = null
open var w9_3_4:String? = null
open var w9_3_5:String? = null
open var w9_3_6:String? = null
open var w9_3_7:String? = null
open var w9_3_8:String? = null
open var w9_4_1:String? = null
open var w9_4_2:String? = null
open var w9_5:String? = null
open var w9_6:String? = null
open var w9_7:String? = null
open var AgentRegistration:AgentRegistrationTemp? = null
open var AgentRegistrationAnswers:ArrayList<AgentRegistrationQuestionAnswer> = ArrayList<AgentRegistrationQuestionAnswer>()
open var AgentStateLicenses:ArrayList<AgentStateLicense> = ArrayList<AgentStateLicense>()
open var ContactCount:Int? = null
open var PayChexId:String? = null
open var AgentLevelLocked:Boolean? = null
open var SecurityLicense:String? = null
}
open class Agent
{
open var AgentId:Int? = null
open var Company:String? = null
open var AgentName:String? = null
open var FirstName:String? = null
open var LastName:String? = null
open var MiddleInitial:String? = null
open var Address1:String? = null
open var Address2:String? = null
open var City:String? = null
open var State:String? = null
open var Zip:String? = null
open var Country:String? = null
open var Email:String? = null
open var EmailSignature:String? = null
open var HomePhone:String? = null
open var CellPhone:String? = null
open var WorkPhone:String? = null
open var InsLicensed:Boolean? = null
open var AgreeToDisclosures:Boolean? = null
open var AgreeToDate:Date? = null
open var PaidDate:Date? = null
open var AgentNumber:String? = null
open var ReferringAgent:String? = null
open var PlacementAgent:String? = null
open var CreatedDate:Date? = null
open var UserId:UUID? = null
open var IsAgent:Boolean? = null
open var Package:String? = null
open var StoreName:String? = null
open var Notes:String? = null
open var Upline1:Int? = null
open var Upline2:Int? = null
open var Upline3:Int? = null
open var Upline4:Int? = null
open var MVPID:Int? = null
open var AVPID:Int? = null
open var RVPID:Int? = null
open var AgentLevel:BigDecimal? = null
open var IsMVP:Boolean? = null
open var IsRVP:Boolean? = null
open var IsAVP:Boolean? = null
open var IsAdmin:Boolean? = null
open var IsBusinessCardAdmin:Boolean? = null
open var TeamName:String? = null
open var LocationId:UUID? = null
open var CalendarId:UUID? = null
open var Rank:String? = null
open var NBC:Boolean? = null
open var Upline1Percent:BigDecimal? = null
open var Upline2Percent:BigDecimal? = null
open var Upline3Percent:BigDecimal? = null
open var Upline4Percent:BigDecimal? = null
open var AgentStatus:String? = null
open var Office:String? = null
open var DOB:Date? = null
open var SSN:String? = null
open var Fax:String? = null
open var BusinessEmail:String? = null
open var ModifiedDate:Date? = null
open var ModifiedBy:String? = null
open var TimeZone:String? = null
open var LeaderLocked:Boolean? = null
open var LastSubmittedBusinessDate:Date? = null
open var GracePeriodDate:Date? = null
open var Vested:Boolean? = null
open var DirectPay:Date? = null
open var DirectPayApprBy:String? = null
open var FactFinderBilling:BigDecimal? = null
open var FullName:String? = null
open var ByLastName:String? = null
open var IsSecurityLicensed:Boolean? = null
open var IsEncompassAdmin:Boolean? = null
open var ApiKey:UUID? = null
open var LastSessionId:String? = null
open var LastLogin:Date? = null
open var MfaActive:Boolean? = null
open var RequireMFA:Boolean? = null
open var SMSPhoneNumber:String? = null
open var VerifiedEmailStatus:Boolean? = null
open var VerifiedCellPhoneStatus:Boolean? = null
open var SchedulerUrl:String? = null
open var QueueDefaults:QueueDefault? = null
open var Roles:ArrayList<String> = ArrayList<String>()
open var PasswordUpdated:Boolean? = null
open var RestrictToSingleSession:Boolean? = null
}
open class QueueDefault
{
open var LocationId:UUID? = null
open var Services:ArrayList<UUID> = ArrayList<UUID>()
}
open class AgentRegistrationTemp
{
open var AgentRegistrationTempId:Int? = null
open var ApplicationId:String? = null
open var Company:String? = null
open var EIN:String? = null
open var FirstName:String? = null
open var MiddleName:String? = null
open var LastName:String? = null
open var Address1:String? = null
open var Address2:String? = null
open var City:String? = null
open var State:String? = null
open var Zip:String? = null
open var Email:String? = null
open var HomePhone:String? = null
open var CellPhone:String? = null
open var WorkPhone:String? = null
open var AgreeToDisclosures:Boolean? = null
open var AgreeToDate:Date? = null
open var PaidDate:Date? = null
open var AgentNumber:String? = null
open var Upline1Name:String? = null
open var Upline1:Int? = null
open var Upline2Name:String? = null
open var Upline2:Int? = null
open var RecruitedBy:String? = null
open var CreatedDate:Date? = null
open var DOB:Date? = null
open var SSN:String? = null
open var Password:String? = null
open var Upline1Percent:BigDecimal? = null
open var Upline2Percent:BigDecimal? = null
open var AgentId:Int? = null
open var AccountName:String? = null
open var AccountType:String? = null
open var AccountNumber:String? = null
open var AccountRouting:String? = null
open var w9_1:String? = null
open var w9_2:String? = null
open var w9_3_1:String? = null
open var w9_3_2:String? = null
open var w9_3_3:String? = null
open var w9_3_4:String? = null
open var w9_3_5:String? = null
open var w9_3_6:String? = null
open var w9_3_7:String? = null
open var w9_3_8:String? = null
open var w9_4_1:String? = null
open var w9_4_2:String? = null
open var w9_5:String? = null
open var w9_6:String? = null
open var w9_7:String? = null
open var IsSecurityLicensed:Boolean? = null
open var SecurityLicense:String? = null
open var Position:String? = null
open var School:String? = null
open var District:String? = null
open var StoreName:String? = null
}
open class AgentRegistrationQuestionAnswer : AgentRegistrationAnswer()
{
open var Details:String? = null
open var QuestionType:String? = null
open var Group:String? = null
open var IndexOrder:Int? = null
}
open class AgentRegistrationAnswer
{
open var AgentRegistrationTempId:Int? = null
open var QuestionId:Int? = null
open var AnswerYN:Boolean? = null
open var AnswerText:String? = null
open var DateCreated:Date? = null
}
open class AgentStateLicense
{
open var AgentRegistrationTempId:Int? = null
open var State:String? = null
open var LicenseNum:String? = null
}
open class AgentContractResponse
{
open var ResponseStatus:ResponseStatus? = null
open var AgentContract:ArrayList<AgentContractExtended> = ArrayList<AgentContractExtended>()
}
Kotlin AgentContractRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /v1/AgentContract/{AgentId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
AgentContract:
[
{
AgentContractId: 0,
AFAgreementReceivedDate: 0001-01-01,
DirectDepositReceivedDate: 0001-01-01,
DotNETCompleteDate: 0001-01-01,
AssociateAppUploadedDate: 0001-01-01,
LSWContractLinkSentDate: 0001-01-01,
LSWContractDoneDate: 0001-01-01,
LSWLifeAgentCode: String,
LSWAnnuityAgentCode: String,
LSWWebsiteUserId: String,
AMLCompletedDate: 0001-01-01,
StateAnnuityTrainingCompletedDate: 0001-01-01,
LSWProductTrainingCompletedDate: 0001-01-01,
EOExpirationDate: 0001-01-01,
SureLCLinkSentDate: 0001-01-01,
AEContractDoneDate: 0001-01-01,
AEAgentCode: String,
MGANorthAmericanContractSentDate: 0001-01-01,
MGANorthAmericanAgentCode: String,
AmericoContractDoneDate: 0001-01-01,
AmericoAgentCode: String,
MidlandContractDoneDate: 0001-01-01,
MidlandAgentCode: String,
JacksonContractDoneDate: 0001-01-01,
JacksonAgentCode: String,
VoyaContractDoneDate: 0001-01-01,
VoyaAgentCode: String,
HoraceMannContractDoneDate: 0001-01-01,
HoraceMannAgentCode: String,
GreatAmericanContractDoneDate: 0001-01-01,
GreatAmericanAgentCode: String,
MutualOfOmahaContractDoneDate: 0001-01-01,
MutualOfOmahaAgentCode: String,
AllanzContractDoneDate: 0001-01-01,
AllanzAgentCode: String,
FGContractDoneDate: 0001-01-01,
FGAgentCode: String,
ResidentLicenseState: String,
ResidentLicenseNumber: String,
ResidentLicenseExpirationDate: 0001-01-01,
ContractingComplete: 0001-01-01,
PackageMailed: 0001-01-01,
TrackingNum: String,
ProtectiveContractDoneDate: 0001-01-01,
ProtectiveCode: String,
AtheneContractDoneDate: 0001-01-01,
AtheneCode: String,
ForestersContractDoneDate: 0001-01-01,
ForestersCode: String,
ACHName: String,
ACHNumber: String,
ACHRouting: String,
ACHAccountType: 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,
AgentRegistration:
{
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
},
AgentRegistrationAnswers:
[
{
Details: String,
QuestionType: String,
Group: String,
IndexOrder: 0,
AgentRegistrationTempId: 0,
QuestionId: 0,
AnswerYN: False,
AnswerText: String,
DateCreated: 0001-01-01
}
],
AgentStateLicenses:
[
{
AgentRegistrationTempId: 0,
State: String,
LicenseNum: String
}
],
ContactCount: 0,
PayChexId: String,
AgentLevelLocked: False,
SecurityLicense: String,
AgentId: 0,
Company: String,
AgentName: String,
FirstName: String,
LastName: String,
MiddleInitial: String,
Address1: String,
Address2: String,
City: String,
State: String,
Zip: String,
Country: String,
Email: String,
EmailSignature: String,
HomePhone: String,
CellPhone: String,
WorkPhone: String,
InsLicensed: False,
AgreeToDisclosures: False,
AgreeToDate: 0001-01-01,
PaidDate: 0001-01-01,
AgentNumber: String,
ReferringAgent: String,
PlacementAgent: String,
CreatedDate: 0001-01-01,
UserId: 00000000000000000000000000000000,
IsAgent: False,
Package: String,
StoreName: String,
Notes: String,
Upline1: 0,
Upline2: 0,
Upline3: 0,
Upline4: 0,
MVPID: 0,
AVPID: 0,
RVPID: 0,
AgentLevel: 0,
IsMVP: False,
IsRVP: False,
IsAVP: False,
IsAdmin: False,
IsBusinessCardAdmin: False,
TeamName: String,
LocationId: 00000000000000000000000000000000,
CalendarId: 00000000000000000000000000000000,
Rank: String,
NBC: False,
Upline1Percent: 0,
Upline2Percent: 0,
Upline3Percent: 0,
Upline4Percent: 0,
AgentStatus: String,
Office: String,
DOB: 0001-01-01,
SSN: String,
Fax: String,
BusinessEmail: String,
ModifiedDate: 0001-01-01,
ModifiedBy: String,
TimeZone: String,
LeaderLocked: False,
LastSubmittedBusinessDate: 0001-01-01,
GracePeriodDate: 0001-01-01,
Vested: False,
DirectPay: 0001-01-01,
DirectPayApprBy: String,
FactFinderBilling: 0,
FullName: String,
ByLastName: String,
IsSecurityLicensed: False,
IsEncompassAdmin: False,
ApiKey: 00000000000000000000000000000000,
LastSessionId: String,
LastLogin: 0001-01-01,
MfaActive: False,
RequireMFA: False,
SMSPhoneNumber: String,
VerifiedEmailStatus: False,
VerifiedCellPhoneStatus: False,
SchedulerUrl: String,
QueueDefaults:
{
LocationId: 00000000000000000000000000000000,
Services:
[
00000000000000000000000000000000
]
},
Roles:
[
String
],
PasswordUpdated: False,
RestrictToSingleSession: False
}
],
AgentId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
AgentContract:
[
{
AgentContractId: 0,
AFAgreementReceivedDate: 0001-01-01,
DirectDepositReceivedDate: 0001-01-01,
DotNETCompleteDate: 0001-01-01,
AssociateAppUploadedDate: 0001-01-01,
LSWContractLinkSentDate: 0001-01-01,
LSWContractDoneDate: 0001-01-01,
LSWLifeAgentCode: String,
LSWAnnuityAgentCode: String,
LSWWebsiteUserId: String,
AMLCompletedDate: 0001-01-01,
StateAnnuityTrainingCompletedDate: 0001-01-01,
LSWProductTrainingCompletedDate: 0001-01-01,
EOExpirationDate: 0001-01-01,
SureLCLinkSentDate: 0001-01-01,
AEContractDoneDate: 0001-01-01,
AEAgentCode: String,
MGANorthAmericanContractSentDate: 0001-01-01,
MGANorthAmericanAgentCode: String,
AmericoContractDoneDate: 0001-01-01,
AmericoAgentCode: String,
MidlandContractDoneDate: 0001-01-01,
MidlandAgentCode: String,
JacksonContractDoneDate: 0001-01-01,
JacksonAgentCode: String,
VoyaContractDoneDate: 0001-01-01,
VoyaAgentCode: String,
HoraceMannContractDoneDate: 0001-01-01,
HoraceMannAgentCode: String,
GreatAmericanContractDoneDate: 0001-01-01,
GreatAmericanAgentCode: String,
MutualOfOmahaContractDoneDate: 0001-01-01,
MutualOfOmahaAgentCode: String,
AllanzContractDoneDate: 0001-01-01,
AllanzAgentCode: String,
FGContractDoneDate: 0001-01-01,
FGAgentCode: String,
ResidentLicenseState: String,
ResidentLicenseNumber: String,
ResidentLicenseExpirationDate: 0001-01-01,
ContractingComplete: 0001-01-01,
PackageMailed: 0001-01-01,
TrackingNum: String,
ProtectiveContractDoneDate: 0001-01-01,
ProtectiveCode: String,
AtheneContractDoneDate: 0001-01-01,
AtheneCode: String,
ForestersContractDoneDate: 0001-01-01,
ForestersCode: String,
ACHName: String,
ACHNumber: String,
ACHRouting: String,
ACHAccountType: 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,
AgentRegistration:
{
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
},
AgentRegistrationAnswers:
[
{
Details: String,
QuestionType: String,
Group: String,
IndexOrder: 0,
AgentRegistrationTempId: 0,
QuestionId: 0,
AnswerYN: False,
AnswerText: String,
DateCreated: 0001-01-01
}
],
AgentStateLicenses:
[
{
AgentRegistrationTempId: 0,
State: String,
LicenseNum: String
}
],
ContactCount: 0,
PayChexId: String,
AgentLevelLocked: False,
SecurityLicense: String,
AgentId: 0,
Company: String,
AgentName: String,
FirstName: String,
LastName: String,
MiddleInitial: String,
Address1: String,
Address2: String,
City: String,
State: String,
Zip: String,
Country: String,
Email: String,
EmailSignature: String,
HomePhone: String,
CellPhone: String,
WorkPhone: String,
InsLicensed: False,
AgreeToDisclosures: False,
AgreeToDate: 0001-01-01,
PaidDate: 0001-01-01,
AgentNumber: String,
ReferringAgent: String,
PlacementAgent: String,
CreatedDate: 0001-01-01,
UserId: 00000000000000000000000000000000,
IsAgent: False,
Package: String,
StoreName: String,
Notes: String,
Upline1: 0,
Upline2: 0,
Upline3: 0,
Upline4: 0,
MVPID: 0,
AVPID: 0,
RVPID: 0,
AgentLevel: 0,
IsMVP: False,
IsRVP: False,
IsAVP: False,
IsAdmin: False,
IsBusinessCardAdmin: False,
TeamName: String,
LocationId: 00000000000000000000000000000000,
CalendarId: 00000000000000000000000000000000,
Rank: String,
NBC: False,
Upline1Percent: 0,
Upline2Percent: 0,
Upline3Percent: 0,
Upline4Percent: 0,
AgentStatus: String,
Office: String,
DOB: 0001-01-01,
SSN: String,
Fax: String,
BusinessEmail: String,
ModifiedDate: 0001-01-01,
ModifiedBy: String,
TimeZone: String,
LeaderLocked: False,
LastSubmittedBusinessDate: 0001-01-01,
GracePeriodDate: 0001-01-01,
Vested: False,
DirectPay: 0001-01-01,
DirectPayApprBy: String,
FactFinderBilling: 0,
FullName: String,
ByLastName: String,
IsSecurityLicensed: False,
IsEncompassAdmin: False,
ApiKey: 00000000000000000000000000000000,
LastSessionId: String,
LastLogin: 0001-01-01,
MfaActive: False,
RequireMFA: False,
SMSPhoneNumber: String,
VerifiedEmailStatus: False,
VerifiedCellPhoneStatus: False,
SchedulerUrl: String,
QueueDefaults:
{
LocationId: 00000000000000000000000000000000,
Services:
[
00000000000000000000000000000000
]
},
Roles:
[
String
],
PasswordUpdated: False,
RestrictToSingleSession: False
}
]
}