| Requires any of the roles: | Agent, Administrator |
| 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
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
HTTP/1.1 200 OK
Content-Type: text/csv
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}]}