Visits
One stop on the schedule: a job's work on one date.
A visit is a job's work for one customer on one date, done by a crew. Visits are assigned, rescheduled, skipped, canceled, and completed here.
Fields: The visit object · The visit completion object.
Puts every stop on one crew's route for one day in the order given, as dragging them in Dispatch does. List every visit on that crew's day exactly once; if the route changed since you read it, the answer is 409 state_conflict and nothing moves. Crews see the new order, and route notifications follow as in Dispatch.
Returns a list of visit objects.
A workspace API token. Each operation lists the scopes it needs; write implies read, and send/complete are never implied.
Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.
The day, YYYY-MM-DD, YYYY-MM-DD in the workspace's timezone.
^\d{4}-\d{2}-\d{2}$The crew (GET /v1/teams); null for visits with no crew.
Every visit on the crew's day, in the new order.
Success.
The request is invalid.
The token is missing, invalid, expired, or revoked.
The workspace's subscription needs attention.
The token is missing a required scope.
No such object in this workspace.
Conflict with the current state or an in-flight request with the same idempotency key.
The request cannot be applied, or its idempotency key was used for a different request.
Rate limited; see Retry-After.
Internal error.
Temporarily unavailable; retry later.
curl https://api.shortcutco.com/v1/dispatch/route-order \
-X POST \
-H "Authorization: Bearer $SHORTCUT_TOKEN" \
-H "Idempotency-Key: c2bd92ca-bf07-4e11-8b52-0958b79c449f" \
-H "Content-Type: application/json" \
-d '{"date":"2026-10-20","teamId":"d2778589-cec1-40d0-8b0b-fc17c756375e","visitIds":["b979e284-b5c4-4dcb-820e-5912ae589459"]}'{
"data": [
{
"id": "5e38b2fb-5a82-4e42-86cd-2989531764d0",
"object": "visit",
"date": "2026-10-20",
"status": "scheduled",
"closeReason": null,
"reason": null,
"jobId": "17aafb72-13f5-46b9-803f-72000c89ad47",
"jobName": "Weekly mowing",
"customerId": "a0007ed3-9c4a-4a1a-8894-f56194df30a8",
"propertyId": "afc148b4-ac0b-43fb-8855-bf42a49ffa89",
"address": "412 Elm St, Bozeman, MT 59715",
"assignedTeamId": "0452ee3c-009d-4983-8ce7-64caf931a011",
"effectiveTeamId": "0452ee3c-009d-4983-8ce7-64caf931a011",
"routePosition": 1,
"plannedStartAt": null,
"plannedEndAt": null,
"estimatedDurationMinutes": 30,
"arrivedAt": null,
"completedAt": null,
"invoiceId": null,
"createdAt": "2026-10-16T17:04:12.381Z",
"updatedAt": "2026-10-16T17:04:12.381Z"
}
]
}Visits newest first, or by last change when updatedSince is set. from and to are dates in the workspace's timezone and are inclusive.
Returns a list of visit objects.
A workspace API token. Each operation lists the scopes it needs; write implies read, and send/complete are never implied.
How many items to return, 1-200. Defaults to 50.
50The meta.nextCursor from the previous page. Omit it for the first page.
Only visits on or after this date, YYYY-MM-DD in the workspace's timezone.
^\d{4}-\d{2}-\d{2}$Only visits on or before this date, YYYY-MM-DD in the workspace's timezone.
^\d{4}-\d{2}-\d{2}$Only visits this crew is doing (the visit's own crew, or its job's crew when the visit has none).
Only visits with this status.
Only this customer's visits.
Only this job's visits.
ISO 8601 timestamp. Returns visits changed at or after it, oldest change first. Keep the largest updatedAt you have seen, subtract five minutes, and pass it on the next sync; deduplicate by id. A visit's updatedAt changes only when the visit itself changes: jobName, address, customerId, and an inherited effectiveTeamId come from its job and property and do not change it, so sync jobs and properties from their own lists.
Success.
The request is invalid.
The token is missing, invalid, expired, or revoked.
The workspace's subscription needs attention.
The token is missing a required scope.
No such object in this workspace.
Rate limited; see Retry-After.
Internal error.
Temporarily unavailable; retry later.
curl https://api.shortcutco.com/v1/visits \
-H "Authorization: Bearer $SHORTCUT_TOKEN"{
"data": [
{
"id": "4ca75ca6-48f1-47ed-853b-d33441860e7b",
"object": "visit",
"date": "2026-10-20",
"status": "scheduled",
"closeReason": null,
"reason": null,
"jobId": "fad16e85-f71b-49cc-8365-e513efb0205a",
"jobName": "Weekly mowing",
"customerId": "d0073602-cc51-4149-889b-ac90c4e5e7d7",
"propertyId": "aa4cb6bd-a696-4204-82e1-2d4b9f2b6892",
"address": "412 Elm St, Bozeman, MT 59715",
"assignedTeamId": "b2f29a25-af3c-456c-8b87-10b3a7d14bfa",
"effectiveTeamId": "b2f29a25-af3c-456c-8b87-10b3a7d14bfa",
"routePosition": 1,
"plannedStartAt": null,
"plannedEndAt": null,
"estimatedDurationMinutes": 30,
"arrivedAt": null,
"completedAt": null,
"invoiceId": null,
"createdAt": "2026-10-16T17:04:12.381Z",
"updatedAt": "2026-10-16T17:04:12.381Z"
}
],
"meta": {
"nextCursor": null,
"hasMore": false
}
}One visit with its date, status, crew, and times. effectiveTeamId is the crew doing the work; arrivedAt is read-only.
Returns the visit object.
A workspace API token. Each operation lists the scopes it needs; write implies read, and send/complete are never implied.
The object's id.
Success.
The request is invalid.
The token is missing, invalid, expired, or revoked.
The workspace's subscription needs attention.
The token is missing a required scope.
No such object in this workspace.
Rate limited; see Retry-After.
Internal error.
Temporarily unavailable; retry later.
curl https://api.shortcutco.com/v1/visits/473828db-4382-4422-8fcc-9f693c16dab0 \
-H "Authorization: Bearer $SHORTCUT_TOKEN"{
"data": {
"id": "473828db-4382-4422-8fcc-9f693c16dab0",
"object": "visit",
"date": "2026-10-20",
"status": "scheduled",
"closeReason": null,
"reason": null,
"jobId": "5117339b-4d61-4ee2-89ab-aa2945f5e570",
"jobName": "Weekly mowing",
"customerId": "a6adf0b0-a2f8-4bf7-8f42-673e9b8ca285",
"propertyId": "23950faf-1fdf-4af6-8c29-863d1873c184",
"address": "412 Elm St, Bozeman, MT 59715",
"assignedTeamId": "be06b87b-ba50-43c2-869b-2f09b2e56a50",
"effectiveTeamId": "be06b87b-ba50-43c2-869b-2f09b2e56a50",
"routePosition": 1,
"plannedStartAt": null,
"plannedEndAt": null,
"estimatedDurationMinutes": 30,
"arrivedAt": null,
"completedAt": null,
"invoiceId": null,
"createdAt": "2026-10-16T17:04:12.381Z",
"updatedAt": "2026-10-16T17:04:12.381Z"
}
}Gives one scheduled visit to a crew, exactly as moving its stop to another crew in Dispatch does: the visit leaves its current crew's route, joins the end of the new crew's route for that day, and both crews are notified of the route change. Assigning the job's own crew stores no crew on the visit (it inherits the job's), so assignedTeamId reads null and effectiveTeamId the job's crew; a portion of a split visit is the exception and always stores its crew id. Another crew can't take a portion of a split visit that it already works.
Returns the visit object.
Errors specific to this endpoint: rule_violation, state_conflict. Every endpoint can also return the common errors.
A workspace API token. Each operation lists the scopes it needs; write implies read, and send/complete are never implied.
The object's id.
Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.
The crew to do the visit. The visit joins the end of that crew's route for its day. Assigning the job's own crew clears the visit's own crew, so it follows the job's crew again, except on a portion of a split visit, which always stores its crew.
Success.
The request is invalid.
The token is missing, invalid, expired, or revoked.
The workspace's subscription needs attention.
The token is missing a required scope.
No such object in this workspace.
Conflict with the current state or an in-flight request with the same idempotency key.
The request cannot be applied, or its idempotency key was used for a different request.
Rate limited; see Retry-After.
Internal error.
Temporarily unavailable; retry later.
curl https://api.shortcutco.com/v1/visits/e08be9df-dcd6-4526-8920-606dd56a9bb4/assign \
-X POST \
-H "Authorization: Bearer $SHORTCUT_TOKEN" \
-H "Idempotency-Key: b49f3467-b0e9-4fae-8d33-aaf5a97de63c" \
-H "Content-Type: application/json" \
-d '{"teamId":"fe0c2b74-fa56-46bb-86a0-a202f2eadd49"}'{
"data": {
"id": "e08be9df-dcd6-4526-8920-606dd56a9bb4",
"object": "visit",
"date": "2026-10-20",
"status": "scheduled",
"closeReason": null,
"reason": null,
"jobId": "a264c1e7-9eae-4d2e-8af9-3875974373bc",
"jobName": "Weekly mowing",
"customerId": "47a85484-43f2-4fcb-803c-cb123c870659",
"propertyId": "2521dde3-216c-492a-8db6-54711a008fb8",
"address": "412 Elm St, Bozeman, MT 59715",
"assignedTeamId": "fe0c2b74-fa56-46bb-86a0-a202f2eadd49",
"effectiveTeamId": "fe0c2b74-fa56-46bb-86a0-a202f2eadd49",
"routePosition": 1,
"plannedStartAt": null,
"plannedEndAt": null,
"estimatedDurationMinutes": 30,
"arrivedAt": null,
"completedAt": null,
"invoiceId": null,
"createdAt": "2026-10-16T17:04:12.381Z",
"updatedAt": "2026-10-16T17:04:12.381Z"
}
}Cancels one open visit, exactly as canceling its stop in Dispatch does: it leaves its crew's route, every crew's portion of a split visit is canceled with it, and the crews are notified of the route change. The job and its other visits stay as they are. Visits dated before today, and visits with man-hour work still open, are refused. Your job-canceled automations, which can email or text the customer, and automations your workspace built on visit changes, run only if the token has automations:trigger. To close a visit without the job-canceled notice, use skip. Send an optional reason (a reason from the workspace's list by id, or a default by key, with an optional note); it shows on the customer's timeline and your Automations rules can branch on it. This cannot be undone.
Returns the visit object.
Errors specific to this endpoint: rule_violation, state_conflict. Every endpoint can also return the common errors.
A workspace API token. Each operation lists the scopes it needs; write implies read, and send/complete are never implied.
The object's id.
Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.
Success.
The request is invalid.
The token is missing, invalid, expired, or revoked.
The workspace's subscription needs attention.
The token is missing a required scope.
No such object in this workspace.
Conflict with the current state or an in-flight request with the same idempotency key.
The request cannot be applied, or its idempotency key was used for a different request.
Rate limited; see Retry-After.
Internal error.
Temporarily unavailable; retry later.
curl https://api.shortcutco.com/v1/visits/036118d4-ffab-441b-8bf5-8f62f83fcaa9/cancel \
-X POST \
-H "Authorization: Bearer $SHORTCUT_TOKEN" \
-H "Idempotency-Key: 01ba1efe-fe04-4a45-8a4e-958cf698d0d3" \
-H "Content-Type: application/json" \
-d '{"reason":{"key":"weather","note":"Storms all afternoon."}}'{
"data": {
"id": "036118d4-ffab-441b-8bf5-8f62f83fcaa9",
"object": "visit",
"date": "2026-10-20",
"status": "canceled",
"closeReason": null,
"reason": {
"id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
"key": "weather",
"label": "Weather",
"note": "Storms all afternoon.",
"setAt": "2026-10-16T15:12:00.000Z"
},
"jobId": "e3a575d6-dfef-411d-8c39-ec64d88427ab",
"jobName": "Weekly mowing",
"customerId": "bea70a2f-baf1-4576-873b-80bdb385bc04",
"propertyId": "48419920-448b-4467-80d6-0fae3d204af5",
"address": "412 Elm St, Bozeman, MT 59715",
"assignedTeamId": "4a9b88c8-46e5-440f-832f-ff563f7a3a9d",
"effectiveTeamId": "4a9b88c8-46e5-440f-832f-ff563f7a3a9d",
"routePosition": null,
"plannedStartAt": null,
"plannedEndAt": null,
"estimatedDurationMinutes": 30,
"arrivedAt": null,
"completedAt": null,
"invoiceId": null,
"createdAt": "2026-10-16T17:04:12.381Z",
"updatedAt": "2026-10-16T17:04:12.381Z"
}
}Completes a visit exactly as completing it in the app does. Billing then runs after the same five-minute undo window, through the same worker as every completion: it creates the visit's invoice (once per visit, whatever the retries), queues its delivery to the customer, and charges the customer's saved card when they have autopay on. The response has the completion's finalizeAt and the effects billing will have; once billing has run it reports what happened. An hourly visit is priced by your office from the crew's time, so billing holds it for review instead. Read the invoice later from the visit's invoiceId, GET /v1/invoices, or the invoice.created webhook event. Only this visit is completed unless completeStop=true; a second completeStop call for a stop already being completed gets 503 stop_completion_in_progress. A pending chemical record is completed with its planned amounts; an hourly job the crew has not started, or with work still open, is refused. Needs visits:complete (not included in visits:write) and visits:read. Without automations:trigger the completion and its billing start none of your automations (Automations rules, invoice-created and job-completed) and no review request; later changes to the invoice, such as its delivery being recorded or a payment, including an autopay charge, start your rules like any invoice's. Send an Idempotency-Key to retry safely.
Returns the visit completion object.
Errors specific to this endpoint: rule_violation, state_conflict, stop_completion_in_progress. Every endpoint can also return the common errors.
A workspace API token. Each operation lists the scopes it needs; write implies read, and send/complete are never implied.
The object's id.
true also completes the stop's other open services (same customer, date, crew, and address) as one batch, billed on one invoice, the way the crew app finishes a visit. Omitted or false completes only this visit.
Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.
Success.
The request is invalid.
The token is missing, invalid, expired, or revoked.
The workspace's subscription needs attention.
The token is missing a required scope.
No such object in this workspace.
Conflict with the current state or an in-flight request with the same idempotency key.
The request cannot be applied, or its idempotency key was used for a different request.
Rate limited; see Retry-After.
Internal error.
Temporarily unavailable; retry later.
curl https://api.shortcutco.com/v1/visits/cb1600a9-c760-4bf0-83aa-7737bff4b27e/complete \
-X POST \
-H "Authorization: Bearer $SHORTCUT_TOKEN" \
-H "Idempotency-Key: 005b8cb9-fca5-4800-88f0-0347f53a3e8e"{
"data": {
"object": "visit_completion",
"visit": {
"id": "cb1600a9-c760-4bf0-83aa-7737bff4b27e",
"object": "visit",
"date": "2026-10-16",
"status": "completed",
"closeReason": null,
"reason": null,
"jobId": "b515bf86-b15f-4acd-8daa-3614a9f4715b",
"jobName": "Weekly mowing",
"customerId": "3b3cee7f-3787-49c6-83d1-650d301ba054",
"propertyId": "fd5d1430-f9a7-4f77-85f1-8abef23bc605",
"address": "412 Elm St, Bozeman, MT 59715",
"assignedTeamId": "02f27138-ff3c-4c7f-8b86-e7c6f7d1230d",
"effectiveTeamId": "02f27138-ff3c-4c7f-8b86-e7c6f7d1230d",
"routePosition": 1,
"plannedStartAt": null,
"plannedEndAt": null,
"estimatedDurationMinutes": 30,
"arrivedAt": "2026-10-16T16:34:51.000Z",
"completedAt": "2026-10-16T17:02:18.000Z",
"invoiceId": null,
"createdAt": "2026-10-01T15:02:20.114Z",
"updatedAt": "2026-10-16T17:04:12.381Z"
},
"completedVisitIds": [
"cb1600a9-c760-4bf0-83aa-7737bff4b27e"
],
"alreadyCompletedVisitIds": [],
"holdId": "d64f2e9d-d299-49e4-8ee3-a52bcb2de072",
"finalizeAt": "2026-10-16T17:07:18.000Z",
"billing": "pending",
"invoiceId": null,
"addOnInvoiceId": null,
"effects": [
"invoice_on_finalize"
]
}
}Moves a scheduled or pending visit to another date, exactly as rescheduling it in the app does: a split visit moves together, the visit keeps its crew (or keeps following its job's crew), and crews are notified of route changes. scope: this_and_future replaces this and every later untouched visit with a new series and sets the job to scheduled, clearing any pause. A visit the crew has started cannot be moved. Your job-rescheduled automations, which can email or text the customer, run only if the token has automations:trigger. Returns the visit now on the new date (a new visit for this_and_future). Send an Idempotency-Key to retry safely.
Returns the visit object.
Errors specific to this endpoint: rule_violation, state_conflict. Every endpoint can also return the common errors.
A workspace API token. Each operation lists the scopes it needs; write implies read, and send/complete are never implied.
The object's id.
Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.
The new date, YYYY-MM-DD in the workspace's timezone; today or later.
^\d{4}-\d{2}-\d{2}$this_only (the default) moves this visit. this_and_future replaces this visit and every later visit of its job that has no history with a new series starting on date, as the app's "This and following" does, and sets the job to scheduled, clearing any pause; it fails if any of those visits already has history.
this_onlyPossible values: this_only only: put the visit at the start or end of its crew's route that day. Omitted, the workspace setting decides (a visit carried over from an earlier day goes first, anything else last).
Success.
The request is invalid.
The token is missing, invalid, expired, or revoked.
The workspace's subscription needs attention.
The token is missing a required scope.
No such object in this workspace.
Conflict with the current state or an in-flight request with the same idempotency key.
The request cannot be applied, or its idempotency key was used for a different request.
Rate limited; see Retry-After.
Internal error.
Temporarily unavailable; retry later.
curl https://api.shortcutco.com/v1/visits/7deb63ca-7a35-4f11-867f-da5872ca159f/reschedule \
-X POST \
-H "Authorization: Bearer $SHORTCUT_TOKEN" \
-H "Idempotency-Key: 91b973ec-8e03-4f33-8a4d-ea7a869825c1" \
-H "Content-Type: application/json" \
-d '{"date":"2026-10-20"}'{
"data": {
"id": "7deb63ca-7a35-4f11-867f-da5872ca159f",
"object": "visit",
"date": "2026-10-20",
"status": "rescheduled",
"closeReason": null,
"reason": null,
"jobId": "eebb7098-eb05-4bdf-874f-e726e39a226d",
"jobName": "Weekly mowing",
"customerId": "50b7a2d1-4d01-4e18-894c-195f459654a6",
"propertyId": "072ef76e-0379-42b5-8fc3-6dfcfc0da943",
"address": "412 Elm St, Bozeman, MT 59715",
"assignedTeamId": "97ac0752-93f6-4299-8040-7de08c8ab927",
"effectiveTeamId": "97ac0752-93f6-4299-8040-7de08c8ab927",
"routePosition": 1,
"plannedStartAt": null,
"plannedEndAt": null,
"estimatedDurationMinutes": 30,
"arrivedAt": null,
"completedAt": null,
"invoiceId": null,
"createdAt": "2026-10-16T17:04:12.381Z",
"updatedAt": "2026-10-16T17:04:12.381Z"
}
}Skips one open visit: it is closed exactly as cancel closes it (through Dispatch's close path, every crew's portion of a split visit together, crews notified of the route change), and the job's later visits stay scheduled. Unlike cancel, it never sends the job-canceled notice. This action sends no message itself; automations your workspace built on visit changes run only if the token has automations:trigger. Visits dated before today, and visits with man-hour work still open, are refused. Send an optional reason (a reason from the workspace's list by id, or a default by key, with an optional note); it shows on the customer's timeline and your Automations rules can branch on it. This cannot be undone.
Returns the visit object.
Errors specific to this endpoint: rule_violation, state_conflict. Every endpoint can also return the common errors.
A workspace API token. Each operation lists the scopes it needs; write implies read, and send/complete are never implied.
The object's id.
Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.
Success.
The request is invalid.
The token is missing, invalid, expired, or revoked.
The workspace's subscription needs attention.
The token is missing a required scope.
No such object in this workspace.
Conflict with the current state or an in-flight request with the same idempotency key.
The request cannot be applied, or its idempotency key was used for a different request.
Rate limited; see Retry-After.
Internal error.
Temporarily unavailable; retry later.
curl https://api.shortcutco.com/v1/visits/241331a1-205d-4ce8-8ca7-a82f18f1e376/skip \
-X POST \
-H "Authorization: Bearer $SHORTCUT_TOKEN" \
-H "Idempotency-Key: 5de0a129-5a2a-4c70-8675-17b752bf52fe" \
-H "Content-Type: application/json" \
-d '{"reason":{"key":"customer_requested"}}'{
"data": {
"id": "241331a1-205d-4ce8-8ca7-a82f18f1e376",
"object": "visit",
"date": "2026-10-20",
"status": "canceled",
"closeReason": null,
"reason": {
"id": "5f0c2d1e-8a3b-4c7d-9e6f-1a2b3c4d5e6f",
"key": "customer_requested",
"label": "Customer asked to skip",
"note": null,
"setAt": "2026-10-16T15:12:00.000Z"
},
"jobId": "93bb7a2d-9005-4574-8c4f-f0bb889a2c02",
"jobName": "Weekly mowing",
"customerId": "a2e4c8fa-9f2f-4441-8b79-3f8897c37acf",
"propertyId": "1f66e815-1bb1-435c-87fb-5ea3144599ea",
"address": "412 Elm St, Bozeman, MT 59715",
"assignedTeamId": "d6cbc7ad-d316-42f4-8f60-3e3bcbaa7982",
"effectiveTeamId": "d6cbc7ad-d316-42f4-8f60-3e3bcbaa7982",
"routePosition": null,
"plannedStartAt": null,
"plannedEndAt": null,
"estimatedDurationMinutes": 30,
"arrivedAt": null,
"completedAt": null,
"invoiceId": null,
"createdAt": "2026-10-16T17:04:12.381Z",
"updatedAt": "2026-10-16T17:04:12.381Z"
}
}Last updated