Trendsic Platform Service

<back to all web services

AgentRecruitRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/AgentRecruit
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 AgentRecruit
            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 Company As String
            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 Country As String
            Public Overridable Property Email As String
            Public Overridable Property HomePhone As String
            Public Overridable Property CellPhone As String
            Public Overridable Property WorkPhone As String
            Public Overridable Property AgentNumber As String
            Public Overridable Property PlacementAgentName As String
            Public Overridable Property PlacementAgent As String
            Public Overridable Property CreatedDate As Date
            Public Overridable Property Level As String
            Public Overridable Property LastLoginDate As Date
            Public Overridable Property Package As String
            Public Overridable Property AppCount As Decimal
            Public Overridable Property Cashflow As Decimal
        End Class

        Public Partial Class AgentRecruitRequest
            Public Overridable Property AgentRecruit As List(Of AgentRecruit) = New List(Of AgentRecruit)
            Public Overridable Property StartDate As Date
            Public Overridable Property EndDate As Date
        End Class

        Public Partial Class AgentRecruitResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property AgentRecruit As List(Of AgentRecruit) = New List(Of AgentRecruit)
        End Class
    End Namespace
End Namespace

VB.NET AgentRecruitRequest 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/AgentRecruit 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
		}
	},
	AgentRecruit: 
	[
		{
			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,
			Company: String,
			FirstName: String,
			LastName: String,
			MiddleInitial: String,
			Address1: String,
			Address2: String,
			City: String,
			State: String,
			Zip: String,
			Country: String,
			Email: String,
			HomePhone: String,
			CellPhone: String,
			WorkPhone: String,
			AgentNumber: String,
			PlacementAgentName: String,
			PlacementAgent: String,
			CreatedDate: 0001-01-01,
			Level: 0,
			LastLoginDate: 0001-01-01,
			Package: String,
			AppCount: 0,
			Cashflow: 0
		}
	]
}