Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

The visit object

The visit object in the Shortcut API - every field, an example, and the endpoints that return it.

A visit: one scheduled service for a customer on one date.

Fields

Field
Type
Description

id

id

The visit's id.

object

"visit"

Always visit.

date

date

The scheduled date, YYYY-MM-DD in the workspace's timezone.

status

pending, scheduled, completed, canceled, rescheduled, needs_reschedule, skipped

scheduled visits are on the schedule, and rescheduled visits were moved to this date and are on the schedule too. pending visits are planned but not on the schedule yet. completed visits are done. needs_reschedule visits are waiting for a new date. skipped and canceled visits are closed.

closeReason

already_handled, superseded or null

already_handled when a canceled visit was closed because the work was handled outside Shortcut (the app shows it as Handled). superseded when the visit was replaced by a new series of the same job, such as when a paused job resumed or paused for its season; nothing happened to the customer's service. Otherwise null.

reason

object or null

Why the visit was skipped or canceled, as staff gave it. Null when none was given, and once the visit is back on the schedule or completed.

reason.id

id or null

The reason's id in the workspace's list, or null if it was removed.

reason.key

string or null

The default reason's stable key (customer_requested, not_needed, weather, no_access, crew, other), or null for a reason the workspace added.

reason.label

string

The reason as it read when it was given, such as Weather.

reason.note

string or null

The note staff wrote with the reason, if any.

reason.setAt

timestamp

When the reason was given, ISO 8601 in UTC.

jobId

id

The job this visit belongs to.

jobName

string

The job's name, such as Weekly mowing.

customerId

id

The customer the visit is for.

propertyId

id or null

The property (service address), when the job has one.

address

string or null

The property's street address, when the job has a property.

assignedTeamId

id or null

The crew pinned to this visit. Null means the visit inherits its job's crew; read effectiveTeamId for the crew doing the work.

effectiveTeamId

id or null

The crew doing the visit: assignedTeamId when set, otherwise the job's crew. Null when neither has a crew (unassigned).

routePosition

integer or null

The visit's stop number on its crew's route for the day, starting at 1. Null when the visit is not routed or has no crew.

plannedStartAt

timestamp or null

Planned start, ISO 8601 in UTC, or null.

plannedEndAt

timestamp or null

Planned end, ISO 8601 in UTC, or null.

estimatedDurationMinutes

integer or null

Estimated time on site in minutes, when known.

arrivedAt

timestamp or null

When the crew arrived on site (read-only), ISO 8601 in UTC, or null.

completedAt

timestamp or null

When the visit was completed, ISO 8601 in UTC, or null.

invoiceId

id or null

The invoice that bills this visit, once a completed visit has been billed; otherwise null.

createdAt

timestamp

When the visit was created, ISO 8601 in UTC.

updatedAt

timestamp

When the visit last changed, ISO 8601 in UTC.

Example

Endpoints

Endpoint
What it does

POST /v1/dispatch/route-order

Set a crew's route order for a day

GET /v1/jobs/{id}/visits

List a job's visits

GET /v1/visits

List visits

GET /v1/visits/{id}

Get a visit

POST /v1/visits/{id}/assign

Assign a visit to a crew

POST /v1/visits/{id}/cancel

Cancel a visit

POST /v1/visits/{id}/reschedule

Reschedule a visit

POST /v1/visits/{id}/skip

Skip a visit

Last updated