Trendsic Platform Service

<back to all web services

ActivityTrackerReportRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/ActivityTracker/Report/{StartDate}/{EndDate}
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ActivityTracker_Report:
    agent_name: Optional[str] = None
    set_appt: int = 0
    first_appt: int = 0
    follow_appt: int = 0
    first_contact: int = 0
    referral: int = 0
    client_update: int = 0
    second_appointment: int = 0
    appl: int = 0
    life_a_p: Decimal = decimal.Decimal(0)
    annuity_flow: Decimal = decimal.Decimal(0)
    annuity_transfer: Decimal = decimal.Decimal(0)


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ActivityTrackerReportResponse:
    response_status: Optional[ResponseStatus] = None
    report_data: List[ActivityTracker_Report] = field(default_factory=list)


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ActivityTrackerReportRequest:
    start_date: datetime.datetime = datetime.datetime(1, 1, 1)
    end_date: datetime.datetime = datetime.datetime(1, 1, 1)

Python ActivityTrackerReportRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /v1/ActivityTracker/Report/{StartDate}/{EndDate} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ReportData":[{"AgentName":"String","SetAppt":0,"FirstAppt":0,"FollowAppt":0,"FirstContact":0,"Referral":0,"ClientUpdate":0,"SecondAppointment":0,"Appl":0,"LifeAP":0,"AnnuityFlow":0,"AnnuityTransfer":0}]}