Trendsic Platform Service

<back to all web services

AgentCrmRecruitRequest

Requires Authentication
Requires any of the roles:Worker, Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/AgentCrmRecruit/{AgentId}
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class AgentCrmRecruit
            Public Overridable Property Rank As String
            Public Overridable Property AgentLevel As String
            Public Overridable Property UL1FirstName As String
            Public Overridable Property UL1MiddleName As String
            Public Overridable Property UL1LastName As String
            Public Overridable Property UL2FirstName As String
            Public Overridable Property UL2MiddleName As String
            Public Overridable Property UL2LastName As String
            Public Overridable Property UL3FirstName As String
            Public Overridable Property UL3MiddleName As String
            Public Overridable Property UL3LastName As String
            Public Overridable Property UL4FirstName As String
            Public Overridable Property UL4MiddleName As String
            Public Overridable Property UL4LastName As String
            Public Overridable Property firstMVP As String
            Public Overridable Property lastMVP As String
            Public Overridable Property firstAVP As String
            Public Overridable Property lastAVP As String
            Public Overridable Property firstRVP As String
            Public Overridable Property lastRVP As String
            Public Overridable Property ResidentLicenseState As String
            Public Overridable Property ResidentLicenseExpirationDate As String
            Public Overridable Property AgentId As Integer
            Public Overridable Property AgentStatus As String
            Public Overridable Property Office As String
            Public Overridable Property Upline1Percent As Decimal
            Public Overridable Property Upline2Percent As Decimal
            Public Overridable Property Upline3Percent As Decimal
            Public Overridable Property Upline4Percent As Decimal
            Public Overridable Property FirstName As String
            Public Overridable Property LastName As String
            Public Overridable Property MiddleInitial As String
            Public Overridable Property Address1 As String
            Public Overridable Property Address2 As String
            Public Overridable Property City As String
            Public Overridable Property State As String
            Public Overridable Property Zip As String
            Public Overridable Property Email As String
            Public Overridable Property BusinessEmail As String
            Public Overridable Property HomePhone As String
            Public Overridable Property CellPhone As String
            Public Overridable Property WorkPhone As String
            Public Overridable Property Fax As String
            Public Overridable Property AgentNumber As String
            Public Overridable Property PlacementAgent As String
            Public Overridable Property CreatedDate As Date
            Public Overridable Property Level As String
            Public Overridable Property Package As String
            Public Overridable Property AppCount As Decimal
            Public Overridable Property Cashflow As Decimal
            Public Overridable Property TimeZone As String
            Public Overridable Property Tags As String
            Public Overridable Property Longitude As Decimal
            Public Overridable Property Latitude As Decimal
        End Class

        Public Partial Class AgentCrmRecruitRequest
            Public Overridable Property AgentID As Integer
            Public Overridable Property AgentCrmRecruit As List(Of AgentCrmRecruit) = New List(Of AgentCrmRecruit)
            Public Overridable Property StartDate As Date
            Public Overridable Property EndDate As Date
        End Class

        Public Partial Class AgentCrmRecruitResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property AgentCrmRecruit As List(Of AgentCrmRecruit) = New List(Of AgentCrmRecruit)
        End Class
    End Namespace
End Namespace

VB.NET AgentCrmRecruitRequest 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.

GET /v1/AgentCrmRecruit/{AgentId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
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
		}
	},
	AgentCrmRecruit: 
	[
		{
			Rank: String,
			AgentLevel: String,
			UL1FirstName: String,
			UL1MiddleName: String,
			UL1LastName: String,
			UL2FirstName: String,
			UL2MiddleName: String,
			UL2LastName: String,
			UL3FirstName: String,
			UL3MiddleName: String,
			UL3LastName: String,
			UL4FirstName: String,
			UL4MiddleName: String,
			UL4LastName: String,
			firstMVP: String,
			lastMVP: String,
			firstAVP: String,
			lastAVP: String,
			firstRVP: String,
			lastRVP: String,
			ResidentLicenseState: String,
			ResidentLicenseExpirationDate: String,
			AgentId: 0,
			AgentStatus: String,
			Office: String,
			Upline1Percent: 0,
			Upline2Percent: 0,
			Upline3Percent: 0,
			Upline4Percent: 0,
			FirstName: String,
			LastName: String,
			MiddleInitial: String,
			Address1: String,
			Address2: String,
			City: String,
			State: String,
			Zip: String,
			Email: String,
			BusinessEmail: String,
			HomePhone: String,
			CellPhone: String,
			WorkPhone: String,
			Fax: String,
			AgentNumber: String,
			PlacementAgent: String,
			CreatedDate: 0001-01-01,
			Level: String,
			Package: String,
			AppCount: 0,
			Cashflow: 0,
			TimeZone: String,
			Tags: String,
			Longitude: 0,
			Latitude: 0
		}
	]
}