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
VISIT
VISIT FETCH
GET /visit/:id
Request
{
}
Response (Success)
{
"status"
:
true
,
"code"
:
"VISIT_FETCH_SUCCESS"
,
"payload"
:
{
"id"
:
"<<visit_id>>"
,
"datetime"
:
"<<date_time_string>>"
,
"address"
:
"<<address_string>>"
,
"city"
:
"city_string"
,
"pincode"
:
"<<pincode_number>>"
,
"status"
:
enum
[
"pending"
,
"visited"
,
"approved"
,
"missed"
,
"rejected"
]
,
"description"
:
"<<desc_string>>"
,
"createdAt"
:
"<<date_time_string>>"
,
"updatedAt"
:
"<<date_time_string>>"
,
"created_by"
:
{
id
:
"<<employee_id>>"
,
name
:
"<<employee_name_string>>"
}
,
"contact"
:
{
"id"
:
"<<contact_id>>"
"name"
:
"<<contact_name_string>>"
,
}
,
"loc_coordinate"
:
[
"<<latitude_number>>"
,
"<<longitude_number>>"
]
}
}
Response (Error)
{
"status"
:
false
,
"code"
:
"VISIT_FETCH_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.