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}
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class ProductionRequest
{
    open var StartDate:Date? = null
    open var EndDate:Date? = null
}

open class ProductionResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var ReportData:ArrayList<Production> = ArrayList<Production>()
}

open class Production
{
    open var AgentId:Int? = null
    open var MVPID:Int? = null
    open var AVPID:Int? = null
    open var RVPID:Int? = null
    open var FirstName:String? = null
    open var LastName:String? = null
    open var MiddleInitial:String? = null
    open var AgentLevel:BigDecimal? = null
    open var Rank:String? = null
    open var FullName:String? = null
    open var IsMVP:Boolean? = null
    open var IsRVP:Boolean? = null
    open var IsAVP:Boolean? = null
    open var PolicyCount:Int? = null
    open var AppCount:Double? = null
    open var Points:BigDecimal? = null
    open var Cashflow:BigDecimal? = null
}

Kotlin ProductionRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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}]}