| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/AgentHierarchyById/{AgentNumber} | ||
|---|---|---|---|
| GET,OPTIONS | /v1/AgentHierarchy |
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 AgentHierarchy
{
public virtual string PackageCost { get; set; }
public virtual string Package { get; set; }
public virtual string AgentNumber { get; set; }
public virtual string PlacementAgent { get; set; }
public virtual string Company { get; set; }
public virtual string FirstName { get; set; }
public virtual string LastName { get; set; }
public virtual string MiddleInitial { get; set; }
public virtual string Email { get; set; }
public virtual string HomePhone { get; set; }
public virtual string CellPhone { get; set; }
public virtual string WorkPhone { get; set; }
public virtual string Level { get; set; }
public virtual string label { get; set; }
public virtual int AgentId { get; set; }
public virtual string AgentStatus { get; set; }
}
public partial class AgentHierarchyRequest
{
public virtual string AgentNumber { get; set; }
public virtual bool IncludeInactive { get; set; }
}
public partial class AgentHierarchyResponse
{
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual List<AgentHierarchy> AgentHierarchy { 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/AgentHierarchyById/{AgentNumber} 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
}
},
AgentHierarchy:
[
{
PackageCost: String,
Package: String,
AgentNumber: String,
PlacementAgent: String,
Company: String,
FirstName: String,
LastName: String,
MiddleInitial: String,
Email: String,
HomePhone: String,
CellPhone: String,
WorkPhone: String,
Level: String,
label: String,
AgentId: 0,
AgentStatus: String
}
]
}