Trendsic Platform Service

<back to all web services

AgentPromotionRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/AgentPromotion/{StartDate}
GET,OPTIONS/v1/AgentPromotion/{StartDate}/{EndDate}
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 AgentPromotion
            Public Overridable Property AgentPromotionId As Integer
            Public Overridable Property AgentId As Integer
            Public Overridable Property FirstName As String
            Public Overridable Property LastName As String
            Public Overridable Property FullName As String
            Public Overridable Property PreviousLevel As Decimal
            Public Overridable Property PreviousRank As String
            Public Overridable Property NewLevel As Decimal
            Public Overridable Property NewRank As String
            Public Overridable Property CashFlow As Decimal
            Public Overridable Property AppCount As Integer
            Public Overridable Property DateCreated As Date
        End Class

        Public Partial Class AgentPromotionRequest
            Public Overridable Property StartDate As Date
            Public Overridable Property EndDate As Date
        End Class

        Public Partial Class AgentPromotionResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property AgentPromotion As List(Of AgentPromotion) = New List(Of AgentPromotion)
        End Class
    End Namespace
End Namespace

VB.NET AgentPromotionRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/AgentPromotion/{StartDate} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"AgentPromotion":[{"AgentPromotionId":0,"AgentId":0,"FirstName":"String","LastName":"String","FullName":"String String","PreviousLevel":0,"PreviousRank":"String","NewLevel":0,"NewRank":"String","CashFlow":0,"AppCount":0,"DateCreated":"0001-01-01T00:00:00.0000000"}]}