JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Gallery
API Documentation Admin Webapp
API Documentation
MEDPULSE DATABASE [DRAFT]
More
Share
Explore
ADMIN PANEL API DOC
STATS
PEOPLE
OUTREACH REPORT
TOP PERFORMAR
EXPENSE
VISIT
GET /stats
Request
{
"weeks"
:
"<<number>>"
}
Response (Success)
{
"status"
:
true
,
"code"
:
"STATS_SUCCESS"
,
"payload"
:
{
"outreach_report"
:
{
"visit_count"
:
"<<number>>"
,
// where [status === 'visited']
"rep_count"
:
"<<number>>"
,
}
,
"people_count"
:
{
"contacts_count"
:
"<<number>>"
,
"rep_count"
:
"<<number>>"
}
,
"top_performer"
:
[
{
"name"
:
"<<name_string>>"
,
"visits"
:
"<<visits_number>>"
,
"picture"
:
"<<image_url>>"
}
,
{
"name"
:
"<<name_string>>"
,
"visits"
:
"<<visits_number>>"
,
"picture"
:
"<<image_url>>"
}
]
,
"expense_stats"
:
{
"total_expense_cost"
:
"<<number>>"
,
"pending_expense_cost"
:
"<<number>>"
,
"approved_expense_cost"
:
"<<number>>"
,
}
,
"visit_stats"
:
{
"total_visit_count"
:
"<<number>>"
,
"pending_visit_count"
:
"<<number>>"
,
"approved_visit_count"
:
"<<number>>"
,
}
}
}
Response (Error)
{
"status"
:
false
,
"code"
:
"OUTREACH_REPORT_STATS_FAILED"
,
"message"
:
"Bad request"
}
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.