| Requires any of the roles: | Agent, Administrator |
| GET | /v1/Production | ||
|---|---|---|---|
| GET | /v1/Production/DateRange/{StartDate}/{EndDate} |
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CRM.AgencyPlatform.API.Internal;
namespace CRM.AgencyPlatform.API.Internal
{
public partial class Production
{
public virtual int AgentId { get; set; }
public virtual int MVPID { get; set; }
public virtual int AVPID { get; set; }
public virtual int RVPID { get; set; }
public virtual string FirstName { get; set; }
public virtual string LastName { get; set; }
public virtual string MiddleInitial { get; set; }
public virtual decimal AgentLevel { get; set; }
public virtual string Rank { get; set; }
public virtual string FullName { get; set; }
public virtual bool IsMVP { get; set; }
public virtual bool IsRVP { get; set; }
public virtual bool IsAVP { get; set; }
public virtual int PolicyCount { get; set; }
public virtual double AppCount { get; set; }
public virtual decimal Points { get; set; }
public virtual decimal Cashflow { get; set; }
}
public partial class ProductionRequest
{
public virtual DateTime StartDate { get; set; }
public virtual DateTime EndDate { get; set; }
}
public partial class ProductionResponse
{
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual List<Production> ReportData { get; set; } = [];
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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/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
}
},
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
}
]
}