| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/AgentPromotion/{StartDate} | ||
|---|---|---|---|
| GET,OPTIONS | /v1/AgentPromotion/{StartDate}/{EndDate} |
export class AgentPromotion
{
public AgentPromotionId: number;
public AgentId: number;
public FirstName: string;
public LastName: string;
public FullName: string;
public PreviousLevel: number;
public PreviousRank: string;
public NewLevel: number;
public NewRank: string;
public CashFlow: number;
public AppCount: number;
public DateCreated: string;
public constructor(init?: Partial<AgentPromotion>) { (Object as any).assign(this, init); }
}
export class AgentPromotionResponse
{
public ResponseStatus: ResponseStatus;
public AgentPromotion: AgentPromotion[] = [];
public constructor(init?: Partial<AgentPromotionResponse>) { (Object as any).assign(this, init); }
}
export class AgentPromotionRequest
{
public StartDate: string;
public EndDate: string;
public constructor(init?: Partial<AgentPromotionRequest>) { (Object as any).assign(this, init); }
}
TypeScript AgentPromotionRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/AgentPromotion/{StartDate} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"AgentPromotion":[{"AgentPromotionId":0,"AgentId":0,"FirstName":"String","LastName":"String","FullName":"String String","PreviousLevel":0,"PreviousRank":"String","NewLevel":0,"NewRank":"String","CashFlow":0,"AppCount":0,"DateCreated":"0001-01-01T00:00:00.0000000"}]}