Skip to content
Gallery
API Documentation Admin Webapp
Share
Explore
VISIT

VISIT LIST

GET /visit

Request
{
"to": "<<contact_id>>", // optional
"start_datetime": "<<ISO_datetime_string>>", // optional
"end_datetime": "<<ISO_datetime_string>>", // optional
"approval": "pending|approved|rejected", // optional
}
Response (Success)
{
"status":true,
"code":"VISIT_LIST_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_LIST_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 (
CtrlP
) instead.