Trendsic Platform Service

<back to all web services

LeaderboardRequest

The following routes are available for this service:
POST,OPTIONS/v1/Leaderboard
GET,OPTIONS/v1/Leaderboard/{LeaderboardType}/{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 Leaderboard
    {
        public virtual int Position { get; set; }
        public virtual string Name { get; set; }
        public virtual string Location { get; set; }
        public virtual decimal LifeCashFlow { get; set; }
        public virtual decimal AnnuityCashFlow { get; set; }
        public virtual decimal TotalCashFlow { get; set; }
        public virtual decimal PremiumLife { get; set; }
        public virtual decimal PremiumAnnuity { get; set; }
        public virtual decimal PointsLife { get; set; }
        public virtual decimal PointsAnnuity { get; set; }
        public virtual decimal TotalPoints { get; set; }
        public virtual bool IsMVP { get; set; }
        public virtual bool IsRVP { get; set; }
        public virtual bool IsAVP { get; set; }
        public virtual bool IsAgent { get; set; }
        public virtual string Phone { get; set; }
        public virtual string Upline1Name { get; set; }
        public virtual string Upline2Name { get; set; }
    }

    public partial class LeaderboardRequest
    {
        public virtual string StartDate { get; set; }
        public virtual string EndDate { get; set; }
        public virtual string LeaderboardType { get; set; }
    }

    public partial class LeaderboardResponse
    {
        public virtual ResponseStatus ResponseStatus { get; set; }
        public virtual List<Leaderboard> AllData { get; set; } = [];
        public virtual List<Leaderboard> MVP { get; set; } = [];
        public virtual List<Leaderboard> AVP { get; set; } = [];
        public virtual List<Leaderboard> RVP { get; set; } = [];
        public virtual List<Leaderboard> Agents { get; set; } = [];
    }

}

C# LeaderboardRequest DTOs

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

HTTP + CSV

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

POST /v1/Leaderboard HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"StartDate":"String","EndDate":"String","LeaderboardType":"String"}
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"}},"AllData":[{"Position":0,"Name":"String","Location":"String","LifeCashFlow":0,"AnnuityCashFlow":0,"TotalCashFlow":0,"PremiumLife":0,"PremiumAnnuity":0,"PointsLife":0,"PointsAnnuity":0,"TotalPoints":0,"IsMVP":false,"IsRVP":false,"IsAVP":false,"IsAgent":false,"Phone":"String","Upline1Name":"String","Upline2Name":"String"}],"MVP":[{"Position":0,"Name":"String","Location":"String","LifeCashFlow":0,"AnnuityCashFlow":0,"TotalCashFlow":0,"PremiumLife":0,"PremiumAnnuity":0,"PointsLife":0,"PointsAnnuity":0,"TotalPoints":0,"IsMVP":false,"IsRVP":false,"IsAVP":false,"IsAgent":false,"Phone":"String","Upline1Name":"String","Upline2Name":"String"}],"AVP":[{"Position":0,"Name":"String","Location":"String","LifeCashFlow":0,"AnnuityCashFlow":0,"TotalCashFlow":0,"PremiumLife":0,"PremiumAnnuity":0,"PointsLife":0,"PointsAnnuity":0,"TotalPoints":0,"IsMVP":false,"IsRVP":false,"IsAVP":false,"IsAgent":false,"Phone":"String","Upline1Name":"String","Upline2Name":"String"}],"RVP":[{"Position":0,"Name":"String","Location":"String","LifeCashFlow":0,"AnnuityCashFlow":0,"TotalCashFlow":0,"PremiumLife":0,"PremiumAnnuity":0,"PointsLife":0,"PointsAnnuity":0,"TotalPoints":0,"IsMVP":false,"IsRVP":false,"IsAVP":false,"IsAgent":false,"Phone":"String","Upline1Name":"String","Upline2Name":"String"}],"Agents":[{"Position":0,"Name":"String","Location":"String","LifeCashFlow":0,"AnnuityCashFlow":0,"TotalCashFlow":0,"PremiumLife":0,"PremiumAnnuity":0,"PointsLife":0,"PointsAnnuity":0,"TotalPoints":0,"IsMVP":false,"IsRVP":false,"IsAVP":false,"IsAgent":false,"Phone":"String","Upline1Name":"String","Upline2Name":"String"}]}