Skip to main content

myVisits

Requires an authenticated session.

Lists the signed-in rep's customer visits for one day: planned stops and unplanned visits, in route order. Only the caller's own visits are returned.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query MyVisits {
myVisits {
id
partnerName
status
createdAt
completedAt
hasUnreadMessage
checkIns {
id
createdAt
checkInAt
checkOutAt
checkOutLatitude
checkOutLongitude
}
}
}

Response:

{
"data": {
"myVisits": [
{
"id": "id",
"partnerName": "string",
"status": "CANCELLED",
"createdAt": "2025-01-15T00:00:00Z",
"completedAt": "2025-01-15T00:00:00Z",
"hasUnreadMessage": true,
"checkIns": [
{
"id": "id",
"createdAt": "2025-01-15T00:00:00Z",
"checkInAt": "2025-01-15T00:00:00Z",
"checkOutAt": "2025-01-15T00:00:00Z",
"checkOutLatitude": 0,
"checkOutLongitude": 0
}
]
}
]
}
}
myVisits(
date: DateTime
): [Visit!]!

Arguments​

myVisits.date ● DateTime scalar​

The day to list. Omit it for today.

Type​

Visit object​

A planned or unplanned visit to a customer.