Trendsic Platform Service

<back to all web services

ProductionRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET/v1/Production
GET/v1/Production/DateRange/{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 Production
            Public Overridable Property AgentId As Integer
            Public Overridable Property MVPID As Integer
            Public Overridable Property AVPID As Integer
            Public Overridable Property RVPID As Integer
            Public Overridable Property FirstName As String
            Public Overridable Property LastName As String
            Public Overridable Property MiddleInitial As String
            Public Overridable Property AgentLevel As Decimal
            Public Overridable Property Rank As String
            Public Overridable Property FullName As String
            Public Overridable Property IsMVP As Boolean
            Public Overridable Property IsRVP As Boolean
            Public Overridable Property IsAVP As Boolean
            Public Overridable Property PolicyCount As Integer
            Public Overridable Property AppCount As Double
            Public Overridable Property Points As Decimal
            Public Overridable Property Cashflow As Decimal
        End Class

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

        Public Partial Class ProductionResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property ReportData As List(Of Production) = New List(Of Production)
        End Class
    End Namespace
End Namespace

VB.NET ProductionRequest 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/Production 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"}},"ReportData":[{"AgentId":0,"MVPID":0,"AVPID":0,"RVPID":0,"FirstName":"String","LastName":"String","MiddleInitial":"String","AgentLevel":0,"Rank":"String","FullName":"String","IsMVP":false,"IsRVP":false,"IsAVP":false,"PolicyCount":0,"AppCount":0,"Points":0,"Cashflow":0}]}