> For the complete documentation index, see [llms.txt](https://docs.shortcutco.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shortcutco.com/developers/api-reference/reference/visits.md). Agents can also search and read this documentation through its [MCP server](https://docs.shortcutco.com/~gitbook/mcp).

# 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](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion).

## Set a crew's route order for a day

> 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]\(<https://docs.shortcutco.com/developers/reference/objects/visit>).

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["visits:write"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.","schema":{"type":"string","maxLength":255}}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"schemas":{"Visit":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The visit's id."},"object":{"type":"string","const":"visit","description":"Always `visit`."},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The scheduled date, `YYYY-MM-DD` in the workspace's timezone."},"status":{"type":"string","enum":["pending","scheduled","completed","canceled","rescheduled","needs_reschedule","skipped"],"description":"`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":{"anyOf":[{"type":"string","enum":["already_handled","superseded"]},{"type":"null"}],"description":"`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":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The reason's id in the workspace's list, or null if it was removed."},"key":{"type":["string","null"],"description":"The default reason's stable key (`customer_requested`, `not_needed`, `weather`, `no_access`, `crew`, `other`), or null for a reason the workspace added. Shortcut closes some visits itself with its own key: `round_not_included` when the office left the visit's round out of the customer's program (\"Not in program\") and `skipped_this_season` for Skip this year. Neither is a customer cancellation: filter `visit.canceled` on them."},"label":{"type":"string","description":"The reason as it read when it was given, such as `Weather`."},"note":{"type":["string","null"],"description":"The note staff wrote with the reason, if any."},"setAt":{"type":"string","format":"date-time","description":"When the reason was given, ISO 8601 in UTC."},"setById":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Who gave the reason: the staff member's user id, or null when none was recorded. Who asked for the skip is the reason itself (`customer_requested`, `crew`, `weather` …)."}},"required":["id","key","label","note","setAt","setById"],"additionalProperties":false},{"type":"null"}],"description":"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."},"jobId":{"type":"string","format":"uuid","description":"The job this visit belongs to."},"jobName":{"type":"string","description":"The job's name, such as `Weekly mowing`."},"customerId":{"type":"string","format":"uuid","description":"The customer the visit is for."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property (service address), when the job has one."},"address":{"type":["string","null"],"description":"The property's street address, when the job has a property."},"assignedTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew pinned to this visit. Null means the visit inherits its job's crew; read `effectiveTeamId` for the crew doing the work."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the visit: `assignedTeamId` when set, otherwise the job's crew. Null when neither has a crew (unassigned)."},"routePosition":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"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":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Planned start, ISO 8601 in UTC, or null."},"plannedEndAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Planned end, ISO 8601 in UTC, or null."},"estimatedDurationMinutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Estimated time on site in minutes, when known."},"arrivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the crew arrived on site (read-only), ISO 8601 in UTC, or null."},"arrivedLat":{"type":["number","null"],"description":"Stored arrival latitude, or null when not recorded. A stamp location, not continuous tracking or proof of completed work."},"arrivedLng":{"type":["number","null"],"description":"Stored arrival longitude, or null when not recorded. Never inferred from the property address."},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the visit was completed, ISO 8601 in UTC, or null."},"invoiceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The invoice that bills this visit, once a completed visit has been billed; otherwise null."},"asap":{"type":"boolean","description":"True when the office marked the open visit ASAP. ASAP visits lead Dispatch's Needs attention and show red on the map. Cleared when the visit is completed, canceled or skipped."},"asapSince":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the visit was marked ASAP, ISO 8601 in UTC, or null."},"promisedBy":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The date promised to the customer, `YYYY-MM-DD`: the visit is to be done on or before it. Dispatch flags the visit when it is booked after this date or still open the day after. Null when no promise was made; cleared when the visit is completed, canceled or skipped."},"createdAt":{"type":"string","format":"date-time","description":"When the visit was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the visit last changed, ISO 8601 in UTC."}},"required":["id","object","date","status","closeReason","reason","jobId","jobName","customerId","propertyId","address","assignedTeamId","effectiveTeamId","routePosition","plannedStartAt","plannedEndAt","estimatedDurationMinutes","arrivedAt","arrivedLat","arrivedLng","completedAt","invoiceId","asap","asapSince","promisedBy","createdAt","updatedAt"],"additionalProperties":false,"description":"A visit: one scheduled service for a customer on one date."},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"Conflict with the current state or an in-flight request with the same idempotency key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unprocessable":{"description":"The request cannot be applied, or its idempotency key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/dispatch/route-order":{"post":{"operationId":"dispatch.route_order.set","tags":["Visits"],"summary":"Set a crew's route order for a day","description":"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.\n\nReturns a list of [visit objects](https://docs.shortcutco.com/developers/reference/objects/visit).","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The day, `YYYY-MM-DD`, `YYYY-MM-DD` in the workspace's timezone."},"teamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew (`GET /v1/teams`); null for visits with no crew."},"visitIds":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":100,"description":"Every visit on the crew's day, in the new order."}},"required":["date","teamId","visitIds"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Visit"}},"meta":{"type":"object","properties":{},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## List field add-ons

> Add-on services put on visits, newest first, across every customer: the crew's or the office's, who added it, how the office reviewed it (\`reviewStatus\`: \`pending\_review\` waits for the office, which holds the visit's billing; \`approved\` or \`rejected\` with who, when and the reason; \`not\_required\` billed without review), the price, quantity and amount, every invoice line that billed it and whether a live invoice carries it (\`billed\`), and for a chemical add-on the products and planned rates it was sold with (\`material\`). Filter by status, customer, visit, catalog service (the same add-on across accounts), who added it, words in its name, whether it is billed, and the visit's day. Approving or rejecting an add-on is done in the app. Names and addresses need \`customers:read\`, people's names \`users:read\`, material \`chemicals:read\`. People: company admins.\
> \
> Returns a list of \[field add on objects]\(<https://docs.shortcutco.com/developers/reference/objects/field-add-on).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`field\_add\_ons\_not\_allowed\`]\(<https://docs.shortcutco.com/developers/concepts/errors#field\\_add\\_ons\\_not\\_allowed>). Every endpoint can also return the \[common errors]\(<https://docs.shortcutco.com/developers/concepts/errors>).

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["visits:read","invoices:read"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"schemas":{"FieldAddOn":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"object":{"type":"string","const":"field_add_on"},"visitId":{"type":"string","format":"uuid"},"visitDate":{"type":"string","description":"The visit's day, `YYYY-MM-DD`."},"visitStatus":{"type":"string"},"visitCompletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"jobId":{"type":"string","format":"uuid"},"jobName":{"type":"string"},"customerId":{"type":"string","format":"uuid"},"customerName":{"type":"string","description":"Needs `customers:read`."},"propertyAddress":{"type":["string","null"],"description":"Needs `customers:read`."},"crewId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The visit's crew, or the job's when the visit has none."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service it was added from."},"name":{"type":"string"},"description":{"type":["string","null"],"description":"The service's description, as it was when added."},"source":{"type":"string","enum":["worker_today","office"],"description":"`worker_today`: a crew added it in the field; `office`: the office did."},"priceStructure":{"type":"string"},"rate":{"type":"number","description":"The price per unit, in US dollars. On a `per_sqft` price it is dollars per single square foot, whatever unit the company reads rates in: $3.50 per 1,000 sq ft is 0.0035, and $0.012 per sq ft is 0.012 (divide a per-1,000 price by 1,000)."},"rateLabel":{"type":["string","null"],"description":"A `per_sqft` rate as the company writes it, in its `sqftRateUnit`: \"$0.0035/sq ft\" or \"$3.50/1,000 sq ft\". Null when the price is not a per-square-foot rate. Use it when telling a person the rate."},"sqftRateUnit":{"type":"string","enum":["per_sqft","per_thousand_sqft"],"description":"The unit the company reads and types per-square-foot rates in (Settings › Services): `per_sqft` or `per_thousand_sqft` (the fertilization convention, \"$3.50 per 1,000 sq ft\"). Display only: every per-sq-ft number in the API stays per single square foot."},"quantity":{"type":["number","null"]},"amount":{"type":"number","description":"What it bills, in US dollars."},"addedById":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"addedByName":{"type":["string","null"],"description":"Needs `users:read`."},"addedAt":{"type":"string","format":"date-time"},"reviewStatus":{"type":"string","enum":["not_required","pending_review","approved","rejected"]},"reviewedById":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"reviewedByName":{"type":["string","null"],"description":"Needs `users:read`."},"reviewedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"reviewNote":{"type":["string","null"],"description":"The office's reason for rejecting it."},"invoiceLines":{"type":"array","items":{"type":"object","properties":{"invoiceId":{"type":"string","format":"uuid"},"invoiceNumber":{"type":"integer"},"invoiceStatus":{"type":"string","description":"The invoice's status: `draft`, `sent`, `paid`, `void` and so on."},"amount":{"type":"number","description":"What the line bills, in US dollars."}},"required":["invoiceId","invoiceNumber","invoiceStatus","amount"],"additionalProperties":false},"description":"Every invoice line that billed it, void invoices included."},"billed":{"type":"boolean","description":"An invoice that is not void carries it."},"visitWaitsOnReview":{"type":"boolean","description":"Some line on the visit (this one or another) still waits for the office, so the visit is not billed yet."},"visitLinesWaiting":{"type":"integer","description":"How many crew lines on the visit (add-ons and products, this one included) wait for the office. Reviewing the last one, approved or rejected, releases the visit's billing."},"visitBillsAbout":{"type":["number","null"],"description":"What the visit bills once nothing waits, as the review screen adds it up: the visit's own amount plus every add-on and product not rejected, before tax, fees, discounts and any minimum charge, in US dollars. Null for an hourly visit, priced from its hours."},"material":{"anyOf":[{"type":"object","properties":{"basis":{"type":"string","description":"What the planned amounts are per: per 1,000 sq ft, per acre, per visit, and so on."},"targetPests":{"type":["string","null"]},"products":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","format":"uuid"},"productName":{"type":"string"},"plannedQuantity":{"type":"string","description":"The planned amount per `basis`."},"unit":{"type":"string"}},"required":["productId","productName","plannedQuantity","unit"],"additionalProperties":false}},"recordId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The add-on's chemical application record, when one was started."},"recordStatus":{"type":["string","null"],"description":"`draft` or `completed`; null when there is no record."}},"required":["basis","targetPests","products","recordId","recordStatus"],"additionalProperties":false},{"type":"null"}],"description":"A chemical add-on's products and planned rates, as sold; null for any other. Needs `chemicals:read`."}},"required":["id","object","visitId","visitDate","visitStatus","visitCompletedAt","jobId","jobName","customerId","crewId","serviceId","name","description","source","priceStructure","rate","rateLabel","sqftRateUnit","quantity","amount","addedById","addedAt","reviewStatus","reviewedById","reviewedAt","reviewNote","invoiceLines","billed","visitWaitsOnReview","visitLinesWaiting","visitBillsAbout"],"additionalProperties":false,"description":"An add-on service a crew or the office put on a visit, with the office's review of it and the invoice lines that bill it."},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/field-add-ons":{"get":{"operationId":"field_add_ons.list","tags":["Visits"],"summary":"List field add-ons","description":"Add-on services put on visits, newest first, across every customer: the crew's or the office's, who added it, how the office reviewed it (`reviewStatus`: `pending_review` waits for the office, which holds the visit's billing; `approved` or `rejected` with who, when and the reason; `not_required` billed without review), the price, quantity and amount, every invoice line that billed it and whether a live invoice carries it (`billed`), and for a chemical add-on the products and planned rates it was sold with (`material`). Filter by status, customer, visit, catalog service (the same add-on across accounts), who added it, words in its name, whether it is billed, and the visit's day. Approving or rejecting an add-on is done in the app. Names and addresses need `customers:read`, people's names `users:read`, material `chemicals:read`. People: company admins.\n\nReturns a list of [field add on objects](https://docs.shortcutco.com/developers/reference/objects/field-add-on).\n\n**Errors specific to this endpoint:** [`field_add_ons_not_allowed`](https://docs.shortcutco.com/developers/concepts/errors#field_add_ons_not_allowed). Every endpoint can also return the [common errors](https://docs.shortcutco.com/developers/concepts/errors).","parameters":[{"name":"ids","in":"query","required":false,"description":"Only these add-ons, comma-separated (at most 50).","schema":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":50}},{"name":"status","in":"query","required":false,"description":"How the office reviewed it: `pending_review` waits for the office, `approved` and `rejected` were reviewed, `not_required` billed without review. Leave out for every add-on.","schema":{"type":"string","enum":["pending_review","approved","rejected","not_required"]}},{"name":"customerId","in":"query","required":false,"description":"Only this customer's add-ons.","schema":{"type":"string","format":"uuid"}},{"name":"visitId","in":"query","required":false,"description":"Only this visit's add-ons.","schema":{"type":"string","format":"uuid"}},{"name":"serviceId","in":"query","required":false,"description":"Only add-ons of this catalog service: the same add-on across accounts.","schema":{"type":"string","format":"uuid"}},{"name":"addedById","in":"query","required":false,"description":"Only add-ons this person added.","schema":{"type":"string","format":"uuid"}},{"name":"name","in":"query","required":false,"description":"Only add-ons whose name contains these words.","schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"billed","in":"query","required":false,"description":"`false`: only add-ons on no invoice yet (a void invoice does not count); `true`: only add-ons an invoice carries.","schema":{"type":"string","enum":["true","false"]}},{"name":"visitFrom","in":"query","required":false,"description":"Only add-ons on visits on or after this day, `YYYY-MM-DD`.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"visitTo","in":"query","required":false,"description":"Only add-ons on visits on or before this day, `YYYY-MM-DD`.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"limit","in":"query","required":false,"description":"How many add-ons, 1-100. Defaults to 25.","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"cursor","in":"query","required":false,"description":"The `meta.nextCursor` from the previous page. Omit it for the first page.","schema":{"type":"string","minLength":1,"maxLength":4096}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/FieldAddOn"}},"meta":{"type":"object","properties":{"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."},"hasMore":{"type":"boolean","description":"Whether another page exists."},"omitted":{"type":"array","items":{"type":"object","properties":{"section":{"type":"string","description":"The section left out of `data`."},"requiredScope":{"type":"string","description":"The scope that would include it."}},"required":["section","requiredScope"],"additionalProperties":false},"description":"Sections omitted because the token lacks their scope."}},"required":["nextCursor","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## List visits

> 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]\(<https://docs.shortcutco.com/developers/reference/objects/visit>).

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["visits:read"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"schemas":{"Visit":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The visit's id."},"object":{"type":"string","const":"visit","description":"Always `visit`."},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The scheduled date, `YYYY-MM-DD` in the workspace's timezone."},"status":{"type":"string","enum":["pending","scheduled","completed","canceled","rescheduled","needs_reschedule","skipped"],"description":"`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":{"anyOf":[{"type":"string","enum":["already_handled","superseded"]},{"type":"null"}],"description":"`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":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The reason's id in the workspace's list, or null if it was removed."},"key":{"type":["string","null"],"description":"The default reason's stable key (`customer_requested`, `not_needed`, `weather`, `no_access`, `crew`, `other`), or null for a reason the workspace added. Shortcut closes some visits itself with its own key: `round_not_included` when the office left the visit's round out of the customer's program (\"Not in program\") and `skipped_this_season` for Skip this year. Neither is a customer cancellation: filter `visit.canceled` on them."},"label":{"type":"string","description":"The reason as it read when it was given, such as `Weather`."},"note":{"type":["string","null"],"description":"The note staff wrote with the reason, if any."},"setAt":{"type":"string","format":"date-time","description":"When the reason was given, ISO 8601 in UTC."},"setById":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Who gave the reason: the staff member's user id, or null when none was recorded. Who asked for the skip is the reason itself (`customer_requested`, `crew`, `weather` …)."}},"required":["id","key","label","note","setAt","setById"],"additionalProperties":false},{"type":"null"}],"description":"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."},"jobId":{"type":"string","format":"uuid","description":"The job this visit belongs to."},"jobName":{"type":"string","description":"The job's name, such as `Weekly mowing`."},"customerId":{"type":"string","format":"uuid","description":"The customer the visit is for."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property (service address), when the job has one."},"address":{"type":["string","null"],"description":"The property's street address, when the job has a property."},"assignedTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew pinned to this visit. Null means the visit inherits its job's crew; read `effectiveTeamId` for the crew doing the work."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the visit: `assignedTeamId` when set, otherwise the job's crew. Null when neither has a crew (unassigned)."},"routePosition":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"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":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Planned start, ISO 8601 in UTC, or null."},"plannedEndAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Planned end, ISO 8601 in UTC, or null."},"estimatedDurationMinutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Estimated time on site in minutes, when known."},"arrivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the crew arrived on site (read-only), ISO 8601 in UTC, or null."},"arrivedLat":{"type":["number","null"],"description":"Stored arrival latitude, or null when not recorded. A stamp location, not continuous tracking or proof of completed work."},"arrivedLng":{"type":["number","null"],"description":"Stored arrival longitude, or null when not recorded. Never inferred from the property address."},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the visit was completed, ISO 8601 in UTC, or null."},"invoiceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The invoice that bills this visit, once a completed visit has been billed; otherwise null."},"asap":{"type":"boolean","description":"True when the office marked the open visit ASAP. ASAP visits lead Dispatch's Needs attention and show red on the map. Cleared when the visit is completed, canceled or skipped."},"asapSince":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the visit was marked ASAP, ISO 8601 in UTC, or null."},"promisedBy":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The date promised to the customer, `YYYY-MM-DD`: the visit is to be done on or before it. Dispatch flags the visit when it is booked after this date or still open the day after. Null when no promise was made; cleared when the visit is completed, canceled or skipped."},"createdAt":{"type":"string","format":"date-time","description":"When the visit was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the visit last changed, ISO 8601 in UTC."}},"required":["id","object","date","status","closeReason","reason","jobId","jobName","customerId","propertyId","address","assignedTeamId","effectiveTeamId","routePosition","plannedStartAt","plannedEndAt","estimatedDurationMinutes","arrivedAt","arrivedLat","arrivedLng","completedAt","invoiceId","asap","asapSince","promisedBy","createdAt","updatedAt"],"additionalProperties":false,"description":"A visit: one scheduled service for a customer on one date."},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/visits":{"get":{"operationId":"visits.list","tags":["Visits"],"summary":"List visits","description":"Visits newest first, or by last change when `updatedSince` is set. `from` and `to` are dates in the workspace's timezone and are inclusive.\n\nReturns a list of [visit objects](https://docs.shortcutco.com/developers/reference/objects/visit).","parameters":[{"name":"limit","in":"query","required":false,"description":"How many items to return, 1-200. Defaults to 50.","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"cursor","in":"query","required":false,"description":"The `meta.nextCursor` from the previous page. Omit it for the first page.","schema":{"type":"string","minLength":1,"maxLength":4096}},{"name":"from","in":"query","required":false,"description":"Only visits on or after this date, `YYYY-MM-DD` in the workspace's timezone.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","required":false,"description":"Only visits on or before this date, `YYYY-MM-DD` in the workspace's timezone.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"teamId","in":"query","required":false,"description":"Only visits this crew is doing (the visit's own crew, or its job's crew when the visit has none).","schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","required":false,"description":"Only visits with this status.","schema":{"type":"string","enum":["pending","scheduled","completed","canceled","rescheduled","needs_reschedule","skipped"]}},{"name":"customerId","in":"query","required":false,"description":"Only this customer's visits.","schema":{"type":"string","format":"uuid"}},{"name":"jobId","in":"query","required":false,"description":"Only this job's visits.","schema":{"type":"string","format":"uuid"}},{"name":"updatedSince","in":"query","required":false,"description":"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.","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Visit"}},"meta":{"type":"object","properties":{"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."},"hasMore":{"type":"boolean","description":"Whether another page exists."}},"required":["nextCursor","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## Get a visit

> One visit with its date, status, crew, and times. \`effectiveTeamId\` is the crew doing the work; \`arrivedAt\` is read-only. \`weatherAtArrival\` is the weather recorded when the crew arrived, present once it was stamped.\
> \
> Returns \[the visit object]\(<https://docs.shortcutco.com/developers/reference/objects/visit>).

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["visits:read"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"schemas":{"VisitWithWeather":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The visit's id."},"object":{"type":"string","const":"visit","description":"Always `visit`."},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The scheduled date, `YYYY-MM-DD` in the workspace's timezone."},"status":{"type":"string","enum":["pending","scheduled","completed","canceled","rescheduled","needs_reschedule","skipped"],"description":"`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":{"anyOf":[{"type":"string","enum":["already_handled","superseded"]},{"type":"null"}],"description":"`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":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The reason's id in the workspace's list, or null if it was removed."},"key":{"type":["string","null"],"description":"The default reason's stable key (`customer_requested`, `not_needed`, `weather`, `no_access`, `crew`, `other`), or null for a reason the workspace added. Shortcut closes some visits itself with its own key: `round_not_included` when the office left the visit's round out of the customer's program (\"Not in program\") and `skipped_this_season` for Skip this year. Neither is a customer cancellation: filter `visit.canceled` on them."},"label":{"type":"string","description":"The reason as it read when it was given, such as `Weather`."},"note":{"type":["string","null"],"description":"The note staff wrote with the reason, if any."},"setAt":{"type":"string","format":"date-time","description":"When the reason was given, ISO 8601 in UTC."},"setById":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Who gave the reason: the staff member's user id, or null when none was recorded. Who asked for the skip is the reason itself (`customer_requested`, `crew`, `weather` …)."}},"required":["id","key","label","note","setAt","setById"],"additionalProperties":false},{"type":"null"}],"description":"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."},"jobId":{"type":"string","format":"uuid","description":"The job this visit belongs to."},"jobName":{"type":"string","description":"The job's name, such as `Weekly mowing`."},"customerId":{"type":"string","format":"uuid","description":"The customer the visit is for."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property (service address), when the job has one."},"address":{"type":["string","null"],"description":"The property's street address, when the job has a property."},"assignedTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew pinned to this visit. Null means the visit inherits its job's crew; read `effectiveTeamId` for the crew doing the work."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the visit: `assignedTeamId` when set, otherwise the job's crew. Null when neither has a crew (unassigned)."},"routePosition":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"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":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Planned start, ISO 8601 in UTC, or null."},"plannedEndAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Planned end, ISO 8601 in UTC, or null."},"estimatedDurationMinutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Estimated time on site in minutes, when known."},"arrivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the crew arrived on site (read-only), ISO 8601 in UTC, or null."},"arrivedLat":{"type":["number","null"],"description":"Stored arrival latitude, or null when not recorded. A stamp location, not continuous tracking or proof of completed work."},"arrivedLng":{"type":["number","null"],"description":"Stored arrival longitude, or null when not recorded. Never inferred from the property address."},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the visit was completed, ISO 8601 in UTC, or null."},"invoiceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The invoice that bills this visit, once a completed visit has been billed; otherwise null."},"asap":{"type":"boolean","description":"True when the office marked the open visit ASAP. ASAP visits lead Dispatch's Needs attention and show red on the map. Cleared when the visit is completed, canceled or skipped."},"asapSince":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the visit was marked ASAP, ISO 8601 in UTC, or null."},"promisedBy":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The date promised to the customer, `YYYY-MM-DD`: the visit is to be done on or before it. Dispatch flags the visit when it is booked after this date or still open the day after. Null when no promise was made; cleared when the visit is completed, canceled or skipped."},"createdAt":{"type":"string","format":"date-time","description":"When the visit was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the visit last changed, ISO 8601 in UTC."},"weatherAtArrival":{"$ref":"#/components/schemas/ArrivalWeather","description":"The weather stamped when the crew arrived. Absent when the visit has no stamp."}},"required":["id","object","date","status","closeReason","reason","jobId","jobName","customerId","propertyId","address","assignedTeamId","effectiveTeamId","routePosition","plannedStartAt","plannedEndAt","estimatedDurationMinutes","arrivedAt","arrivedLat","arrivedLng","completedAt","invoiceId","asap","asapSince","promisedBy","createdAt","updatedAt"],"additionalProperties":false,"description":"A visit: one scheduled service for a customer on one date, with the weather at its arrival once stamped."},"ArrivalWeather":{"type":"object","properties":{"label":{"type":"string","const":"at arrival","description":"Always `at arrival`: this is the weather when the crew arrived, not now."},"provider":{"type":"string","description":"Where the reading came from, such as `open_meteo`."},"observedAt":{"type":"string","format":"date-time","description":"The hour the reading covers (the arrival hour), ISO 8601 in UTC."},"locationSource":{"anyOf":[{"type":"string","enum":["arrival","property"]},{"type":"null"}],"description":"`arrival` when read at the crew's arrival point, `property` when at the property's address."},"temperatureF":{"type":["number","null"],"description":"Air temperature in degrees Fahrenheit, or null when the provider had no value."},"windSpeedMph":{"type":["number","null"],"description":"Wind speed in mph, or null when the provider had no value."},"windDirectionDeg":{"type":["number","null"],"description":"Wind direction in degrees, or null when the provider had no value."},"precipitationIn":{"type":["number","null"],"description":"Precipitation that hour, in inches, or null when the provider had no value."},"snowfallIn":{"type":"number","description":"Snowfall that hour in inches, when the provider reported it."},"snowDepthIn":{"type":"number","description":"Snow on the ground in inches, when the provider reported it."}},"required":["label","provider","observedAt","locationSource","temperatureF","windSpeedMph","windDirectionDeg","precipitationIn"],"additionalProperties":false,"description":"The weather stamped when the crew arrived. Absent when the visit has no stamp."},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/visits/{id}":{"get":{"operationId":"visits.get","tags":["Visits"],"summary":"Get a visit","description":"One visit with its date, status, crew, and times. `effectiveTeamId` is the crew doing the work; `arrivedAt` is read-only. `weatherAtArrival` is the weather recorded when the crew arrived, present once it was stamped.\n\nReturns [the visit object](https://docs.shortcutco.com/developers/reference/objects/visit).","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/VisitWithWeather"},"meta":{"type":"object","properties":{},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## Assign a visit to a crew

> 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]\(<https://docs.shortcutco.com/developers/reference/objects/visit).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`rule\_violation\`]\(<https://docs.shortcutco.com/developers/concepts/errors#rule\\_violation>), \[\`state\_conflict\`]\(<https://docs.shortcutco.com/developers/concepts/errors#state\\_conflict>). Every endpoint can also return the \[common errors]\(<https://docs.shortcutco.com/developers/concepts/errors>).

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["visits:write"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.","schema":{"type":"string","maxLength":255}}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"schemas":{"Visit":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The visit's id."},"object":{"type":"string","const":"visit","description":"Always `visit`."},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The scheduled date, `YYYY-MM-DD` in the workspace's timezone."},"status":{"type":"string","enum":["pending","scheduled","completed","canceled","rescheduled","needs_reschedule","skipped"],"description":"`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":{"anyOf":[{"type":"string","enum":["already_handled","superseded"]},{"type":"null"}],"description":"`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":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The reason's id in the workspace's list, or null if it was removed."},"key":{"type":["string","null"],"description":"The default reason's stable key (`customer_requested`, `not_needed`, `weather`, `no_access`, `crew`, `other`), or null for a reason the workspace added. Shortcut closes some visits itself with its own key: `round_not_included` when the office left the visit's round out of the customer's program (\"Not in program\") and `skipped_this_season` for Skip this year. Neither is a customer cancellation: filter `visit.canceled` on them."},"label":{"type":"string","description":"The reason as it read when it was given, such as `Weather`."},"note":{"type":["string","null"],"description":"The note staff wrote with the reason, if any."},"setAt":{"type":"string","format":"date-time","description":"When the reason was given, ISO 8601 in UTC."},"setById":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Who gave the reason: the staff member's user id, or null when none was recorded. Who asked for the skip is the reason itself (`customer_requested`, `crew`, `weather` …)."}},"required":["id","key","label","note","setAt","setById"],"additionalProperties":false},{"type":"null"}],"description":"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."},"jobId":{"type":"string","format":"uuid","description":"The job this visit belongs to."},"jobName":{"type":"string","description":"The job's name, such as `Weekly mowing`."},"customerId":{"type":"string","format":"uuid","description":"The customer the visit is for."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property (service address), when the job has one."},"address":{"type":["string","null"],"description":"The property's street address, when the job has a property."},"assignedTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew pinned to this visit. Null means the visit inherits its job's crew; read `effectiveTeamId` for the crew doing the work."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the visit: `assignedTeamId` when set, otherwise the job's crew. Null when neither has a crew (unassigned)."},"routePosition":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"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":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Planned start, ISO 8601 in UTC, or null."},"plannedEndAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Planned end, ISO 8601 in UTC, or null."},"estimatedDurationMinutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Estimated time on site in minutes, when known."},"arrivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the crew arrived on site (read-only), ISO 8601 in UTC, or null."},"arrivedLat":{"type":["number","null"],"description":"Stored arrival latitude, or null when not recorded. A stamp location, not continuous tracking or proof of completed work."},"arrivedLng":{"type":["number","null"],"description":"Stored arrival longitude, or null when not recorded. Never inferred from the property address."},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the visit was completed, ISO 8601 in UTC, or null."},"invoiceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The invoice that bills this visit, once a completed visit has been billed; otherwise null."},"asap":{"type":"boolean","description":"True when the office marked the open visit ASAP. ASAP visits lead Dispatch's Needs attention and show red on the map. Cleared when the visit is completed, canceled or skipped."},"asapSince":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the visit was marked ASAP, ISO 8601 in UTC, or null."},"promisedBy":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The date promised to the customer, `YYYY-MM-DD`: the visit is to be done on or before it. Dispatch flags the visit when it is booked after this date or still open the day after. Null when no promise was made; cleared when the visit is completed, canceled or skipped."},"createdAt":{"type":"string","format":"date-time","description":"When the visit was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the visit last changed, ISO 8601 in UTC."}},"required":["id","object","date","status","closeReason","reason","jobId","jobName","customerId","propertyId","address","assignedTeamId","effectiveTeamId","routePosition","plannedStartAt","plannedEndAt","estimatedDurationMinutes","arrivedAt","arrivedLat","arrivedLng","completedAt","invoiceId","asap","asapSince","promisedBy","createdAt","updatedAt"],"additionalProperties":false,"description":"A visit: one scheduled service for a customer on one date."},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"Conflict with the current state or an in-flight request with the same idempotency key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unprocessable":{"description":"The request cannot be applied, or its idempotency key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/visits/{id}/assign":{"post":{"operationId":"visits.assign","tags":["Visits"],"summary":"Assign a visit to a crew","description":"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.\n\nReturns [the visit object](https://docs.shortcutco.com/developers/reference/objects/visit).\n\n**Errors specific to this endpoint:** [`rule_violation`](https://docs.shortcutco.com/developers/concepts/errors#rule_violation), [`state_conflict`](https://docs.shortcutco.com/developers/concepts/errors#state_conflict). Every endpoint can also return the [common errors](https://docs.shortcutco.com/developers/concepts/errors).","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"teamId":{"type":"string","format":"uuid","description":"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."}},"required":["teamId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Visit"},"meta":{"type":"object","properties":{},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## Cancel a visit

> 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]\(<https://docs.shortcutco.com/developers/reference/objects/visit).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`rule\_violation\`]\(<https://docs.shortcutco.com/developers/concepts/errors#rule\\_violation>), \[\`state\_conflict\`]\(<https://docs.shortcutco.com/developers/concepts/errors#state\\_conflict>). Every endpoint can also return the \[common errors]\(<https://docs.shortcutco.com/developers/concepts/errors>).

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["visits:write"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.","schema":{"type":"string","maxLength":255}}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"schemas":{"Visit":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The visit's id."},"object":{"type":"string","const":"visit","description":"Always `visit`."},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The scheduled date, `YYYY-MM-DD` in the workspace's timezone."},"status":{"type":"string","enum":["pending","scheduled","completed","canceled","rescheduled","needs_reschedule","skipped"],"description":"`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":{"anyOf":[{"type":"string","enum":["already_handled","superseded"]},{"type":"null"}],"description":"`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":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The reason's id in the workspace's list, or null if it was removed."},"key":{"type":["string","null"],"description":"The default reason's stable key (`customer_requested`, `not_needed`, `weather`, `no_access`, `crew`, `other`), or null for a reason the workspace added. Shortcut closes some visits itself with its own key: `round_not_included` when the office left the visit's round out of the customer's program (\"Not in program\") and `skipped_this_season` for Skip this year. Neither is a customer cancellation: filter `visit.canceled` on them."},"label":{"type":"string","description":"The reason as it read when it was given, such as `Weather`."},"note":{"type":["string","null"],"description":"The note staff wrote with the reason, if any."},"setAt":{"type":"string","format":"date-time","description":"When the reason was given, ISO 8601 in UTC."},"setById":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Who gave the reason: the staff member's user id, or null when none was recorded. Who asked for the skip is the reason itself (`customer_requested`, `crew`, `weather` …)."}},"required":["id","key","label","note","setAt","setById"],"additionalProperties":false},{"type":"null"}],"description":"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."},"jobId":{"type":"string","format":"uuid","description":"The job this visit belongs to."},"jobName":{"type":"string","description":"The job's name, such as `Weekly mowing`."},"customerId":{"type":"string","format":"uuid","description":"The customer the visit is for."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property (service address), when the job has one."},"address":{"type":["string","null"],"description":"The property's street address, when the job has a property."},"assignedTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew pinned to this visit. Null means the visit inherits its job's crew; read `effectiveTeamId` for the crew doing the work."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the visit: `assignedTeamId` when set, otherwise the job's crew. Null when neither has a crew (unassigned)."},"routePosition":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"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":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Planned start, ISO 8601 in UTC, or null."},"plannedEndAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Planned end, ISO 8601 in UTC, or null."},"estimatedDurationMinutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Estimated time on site in minutes, when known."},"arrivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the crew arrived on site (read-only), ISO 8601 in UTC, or null."},"arrivedLat":{"type":["number","null"],"description":"Stored arrival latitude, or null when not recorded. A stamp location, not continuous tracking or proof of completed work."},"arrivedLng":{"type":["number","null"],"description":"Stored arrival longitude, or null when not recorded. Never inferred from the property address."},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the visit was completed, ISO 8601 in UTC, or null."},"invoiceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The invoice that bills this visit, once a completed visit has been billed; otherwise null."},"asap":{"type":"boolean","description":"True when the office marked the open visit ASAP. ASAP visits lead Dispatch's Needs attention and show red on the map. Cleared when the visit is completed, canceled or skipped."},"asapSince":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the visit was marked ASAP, ISO 8601 in UTC, or null."},"promisedBy":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The date promised to the customer, `YYYY-MM-DD`: the visit is to be done on or before it. Dispatch flags the visit when it is booked after this date or still open the day after. Null when no promise was made; cleared when the visit is completed, canceled or skipped."},"createdAt":{"type":"string","format":"date-time","description":"When the visit was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the visit last changed, ISO 8601 in UTC."}},"required":["id","object","date","status","closeReason","reason","jobId","jobName","customerId","propertyId","address","assignedTeamId","effectiveTeamId","routePosition","plannedStartAt","plannedEndAt","estimatedDurationMinutes","arrivedAt","arrivedLat","arrivedLng","completedAt","invoiceId","asap","asapSince","promisedBy","createdAt","updatedAt"],"additionalProperties":false,"description":"A visit: one scheduled service for a customer on one date."},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"Conflict with the current state or an in-flight request with the same idempotency key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unprocessable":{"description":"The request cannot be applied, or its idempotency key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/visits/{id}/cancel":{"post":{"operationId":"visits.cancel","tags":["Visits"],"summary":"Cancel a visit","description":"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.\n\nReturns [the visit object](https://docs.shortcutco.com/developers/reference/objects/visit).\n\n**Errors specific to this endpoint:** [`rule_violation`](https://docs.shortcutco.com/developers/concepts/errors#rule_violation), [`state_conflict`](https://docs.shortcutco.com/developers/concepts/errors#state_conflict). Every endpoint can also return the [common errors](https://docs.shortcutco.com/developers/concepts/errors).","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"A reason from the workspace's list, by id."},"key":{"type":"string","description":"A default reason by its stable key: `customer_requested`, `not_needed`, `weather`, `no_access`, `crew`, or `other` (which needs a `note`). Use `id` or `key`."},"note":{"type":"string","maxLength":500,"description":"A note for the timeline, up to 500 characters."}},"additionalProperties":false,"description":"Why the visit is not happening. It shows on the customer's timeline, and your Automations rules can branch on it. Optional."}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Visit"},"meta":{"type":"object","properties":{},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## Complete a visit

> 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]\(<https://docs.shortcutco.com/developers/reference/objects/visit-completion).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`rule\_violation\`]\(<https://docs.shortcutco.com/developers/concepts/errors#rule\\_violation>), \[\`state\_conflict\`]\(<https://docs.shortcutco.com/developers/concepts/errors#state\\_conflict>), \[\`stop\_completion\_in\_progress\`]\(<https://docs.shortcutco.com/developers/concepts/errors#stop\\_completion\\_in\\_progress>). Every endpoint can also return the \[common errors]\(<https://docs.shortcutco.com/developers/concepts/errors>).

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["visits:complete","visits:read"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.","schema":{"type":"string","maxLength":255}}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"schemas":{"VisitCompletion":{"type":"object","properties":{"object":{"type":"string","const":"visit_completion","description":"Always `visit_completion`."},"visit":{"$ref":"#/components/schemas/Visit","description":"The visit, now completed."},"completedVisitIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"The visits this request completed: the visit itself, plus its stop's other open services with `completeStop`. Empty when nothing was left to complete."},"alreadyCompletedVisitIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Visits this request found already completed (in the app, by a crew, or by an earlier attempt): the visit itself, and with `completeStop` the stop's other completed services. Nothing was written for them."},"holdId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The visit's completion record, which billing runs from. Null for a visit completed before completion records existed."},"finalizeAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When billing runs (ISO 8601 in UTC): the end of the same undo window completing in the app has. Null once billed."},"billing":{"type":"string","enum":["pending","invoiced","covered_by_prepay","covered_by_contract","invoice_manual","invoice_scheduled","invoice_review","not_billed"],"description":"`pending` until billing runs. Then `invoiced` (the visit is on an invoice), `covered_by_prepay` (a prepayment covers it), `covered_by_contract` (one of a service contract's included visits), or `invoice_manual` / `invoice_scheduled` / `invoice_review` (the visit's work waits to be invoiced by hand, on a schedule, or after review). `not_billed`: completed without a completion record and on no invoice."},"invoiceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The invoice the visit is on, once billed. Until billing runs it is null; read it later from the visit's `invoiceId`, from `GET /v1/invoices`, or from the `invoice.created` webhook event."},"addOnInvoiceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"When the visit's work waits to be invoiced by hand or on a schedule, its field add-ons are billed at once on their own invoice; that invoice. The visit's `invoiceId` stays null. Otherwise null."},"effects":{"type":"array","items":{"type":"string","enum":["invoice_on_finalize","autopay_on_finalize","invoice_created","add_on_invoice_created","notification_queued","notification_sent","autopay_attempted","covered_by_prepay","covered_by_contract"]},"description":"Before billing runs: `invoice_on_finalize` (billing will invoice the visit, unless a prepayment covers it) and `autopay_on_finalize` when the customer has autopay on with a usable saved card; neither when billing will hold the visit (an hourly visit waits for the office's review; a workspace or customer that invoices by hand or on a schedule). After: `invoice_created` or `add_on_invoice_created`, `notification_queued` or `notification_sent` (that invoice's delivery to the customer), `autopay_attempted` (a charge to the saved card was made or tried), `covered_by_prepay`, or `covered_by_contract`."}},"required":["object","visit","completedVisitIds","alreadyCompletedVisitIds","holdId","finalizeAt","billing","invoiceId","addOnInvoiceId","effects"],"additionalProperties":false,"description":"The result of completing a visit."},"Visit":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The visit's id."},"object":{"type":"string","const":"visit","description":"Always `visit`."},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The scheduled date, `YYYY-MM-DD` in the workspace's timezone."},"status":{"type":"string","enum":["pending","scheduled","completed","canceled","rescheduled","needs_reschedule","skipped"],"description":"`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":{"anyOf":[{"type":"string","enum":["already_handled","superseded"]},{"type":"null"}],"description":"`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":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The reason's id in the workspace's list, or null if it was removed."},"key":{"type":["string","null"],"description":"The default reason's stable key (`customer_requested`, `not_needed`, `weather`, `no_access`, `crew`, `other`), or null for a reason the workspace added. Shortcut closes some visits itself with its own key: `round_not_included` when the office left the visit's round out of the customer's program (\"Not in program\") and `skipped_this_season` for Skip this year. Neither is a customer cancellation: filter `visit.canceled` on them."},"label":{"type":"string","description":"The reason as it read when it was given, such as `Weather`."},"note":{"type":["string","null"],"description":"The note staff wrote with the reason, if any."},"setAt":{"type":"string","format":"date-time","description":"When the reason was given, ISO 8601 in UTC."},"setById":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Who gave the reason: the staff member's user id, or null when none was recorded. Who asked for the skip is the reason itself (`customer_requested`, `crew`, `weather` …)."}},"required":["id","key","label","note","setAt","setById"],"additionalProperties":false},{"type":"null"}],"description":"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."},"jobId":{"type":"string","format":"uuid","description":"The job this visit belongs to."},"jobName":{"type":"string","description":"The job's name, such as `Weekly mowing`."},"customerId":{"type":"string","format":"uuid","description":"The customer the visit is for."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property (service address), when the job has one."},"address":{"type":["string","null"],"description":"The property's street address, when the job has a property."},"assignedTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew pinned to this visit. Null means the visit inherits its job's crew; read `effectiveTeamId` for the crew doing the work."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the visit: `assignedTeamId` when set, otherwise the job's crew. Null when neither has a crew (unassigned)."},"routePosition":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"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":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Planned start, ISO 8601 in UTC, or null."},"plannedEndAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Planned end, ISO 8601 in UTC, or null."},"estimatedDurationMinutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Estimated time on site in minutes, when known."},"arrivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the crew arrived on site (read-only), ISO 8601 in UTC, or null."},"arrivedLat":{"type":["number","null"],"description":"Stored arrival latitude, or null when not recorded. A stamp location, not continuous tracking or proof of completed work."},"arrivedLng":{"type":["number","null"],"description":"Stored arrival longitude, or null when not recorded. Never inferred from the property address."},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the visit was completed, ISO 8601 in UTC, or null."},"invoiceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The invoice that bills this visit, once a completed visit has been billed; otherwise null."},"asap":{"type":"boolean","description":"True when the office marked the open visit ASAP. ASAP visits lead Dispatch's Needs attention and show red on the map. Cleared when the visit is completed, canceled or skipped."},"asapSince":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the visit was marked ASAP, ISO 8601 in UTC, or null."},"promisedBy":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The date promised to the customer, `YYYY-MM-DD`: the visit is to be done on or before it. Dispatch flags the visit when it is booked after this date or still open the day after. Null when no promise was made; cleared when the visit is completed, canceled or skipped."},"createdAt":{"type":"string","format":"date-time","description":"When the visit was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the visit last changed, ISO 8601 in UTC."}},"required":["id","object","date","status","closeReason","reason","jobId","jobName","customerId","propertyId","address","assignedTeamId","effectiveTeamId","routePosition","plannedStartAt","plannedEndAt","estimatedDurationMinutes","arrivedAt","arrivedLat","arrivedLng","completedAt","invoiceId","asap","asapSince","promisedBy","createdAt","updatedAt"],"additionalProperties":false,"description":"A visit: one scheduled service for a customer on one date."},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"Conflict with the current state or an in-flight request with the same idempotency key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unprocessable":{"description":"The request cannot be applied, or its idempotency key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/visits/{id}/complete":{"post":{"operationId":"visits.complete","tags":["Visits"],"summary":"Complete a visit","description":"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.\n\nReturns [the visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion).\n\n**Errors specific to this endpoint:** [`rule_violation`](https://docs.shortcutco.com/developers/concepts/errors#rule_violation), [`state_conflict`](https://docs.shortcutco.com/developers/concepts/errors#state_conflict), [`stop_completion_in_progress`](https://docs.shortcutco.com/developers/concepts/errors#stop_completion_in_progress). Every endpoint can also return the [common errors](https://docs.shortcutco.com/developers/concepts/errors).","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}},{"name":"completeStop","in":"query","required":false,"description":"`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.","schema":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["true","false"]}]}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/VisitCompletion"},"meta":{"type":"object","properties":{},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## List the crews licensed for a visit

> Which active crews hold the licence the visit's service needs, good on the visit's day: fits, fits with no expiry stored, expired, or none stored. When the service names no licence (\`no\_requirement\_set\`) or no crew licence is stored (\`no\_licences\_set\`), no crew is judged.

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs:read","visits:read","teams:read"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}},"paths":{"/v1/visits/{id}/crews-fitting":{"get":{"operationId":"visits.crews_fitting.list","tags":["Visits"],"summary":"List the crews licensed for a visit","description":"Which active crews hold the licence the visit's service needs, good on the visit's day: fits, fits with no expiry stored, expired, or none stored. When the service names no licence (`no_requirement_set`) or no crew licence is stored (`no_licences_set`), no crew is judged.","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"visitId":{"type":"string","format":"uuid"},"date":{"type":"string","description":"The visit's day; a licence must be good on it."},"serviceName":{"type":["string","null"]},"requiredLicence":{"type":["string","null"],"description":"The licence code the service needs; null when it names none."},"answer":{"type":"string","enum":["checked","no_requirement_set","no_licences_set"],"description":"`checked`: crews are listed. `no_requirement_set`: the service names no licence, so no crew is judged. `no_licences_set`: no crew licence is stored, so no crew is judged."},"crews":{"type":"array","items":{"type":"object","properties":{"teamId":{"type":"string","format":"uuid"},"name":{"type":"string"},"fit":{"type":"string","enum":["fits","fits_expiry_unknown","expired","no_licence"],"description":"`fits`: holds it, good on the day. `fits_expiry_unknown`: holds it, no expiry stored. `expired`: expires before the day. `no_licence`: none stored."},"expires":{"type":["string","null"]}},"required":["teamId","name","fit","expires"],"additionalProperties":false}}},"required":["visitId","date","serviceName","requiredLicence","answer","crews"],"additionalProperties":false},"meta":{"type":"object","properties":{},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## Read a visit's device report

> A visit's monitored devices: every device at the property that is not retired, by area in walking order, with this visit's reading and the one before it; counts of checked, skipped, missing and not yet read; the technician's end-of-visit summary; and whether the customer's device report was issued and its email sent. \`checksDevices\` is false when the visit's service does not check devices. Refused with \`monitored\_devices\_off\` when the company has monitored devices off.\
> \
> \*\*Errors specific to this endpoint:\*\* \[\`monitored\_devices\_off\`]\(<https://docs.shortcutco.com/developers/concepts/errors#monitored\\_devices\\_off>). Every endpoint can also return the \[common errors]\(<https://docs.shortcutco.com/developers/concepts/errors>).

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["visits:read","chemicals:read"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}},"paths":{"/v1/visits/{id}/device-report":{"get":{"operationId":"visits.device_report.get","tags":["Visits"],"summary":"Read a visit's device report","description":"A visit's monitored devices: every device at the property that is not retired, by area in walking order, with this visit's reading and the one before it; counts of checked, skipped, missing and not yet read; the technician's end-of-visit summary; and whether the customer's device report was issued and its email sent. `checksDevices` is false when the visit's service does not check devices. Refused with `monitored_devices_off` when the company has monitored devices off.\n\n**Errors specific to this endpoint:** [`monitored_devices_off`](https://docs.shortcutco.com/developers/concepts/errors#monitored_devices_off). Every endpoint can also return the [common errors](https://docs.shortcutco.com/developers/concepts/errors).","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"visitId":{"type":"string","format":"uuid"},"visitDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"checksDevices":{"type":"boolean","description":"False when the visit's service does not check devices: nothing else is filled."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"propertyLabel":{"type":["string","null"]},"visitCompleted":{"type":"boolean"},"counts":{"type":"object","properties":{"checked":{"type":"integer"},"skipped":{"type":"integer"},"missing":{"type":"integer"},"typed":{"type":"integer","description":"Checked by typing the code rather than scanning."},"notRead":{"type":"integer","description":"Devices with nothing recorded on this visit yet."}},"required":["checked","skipped","missing","typed","notRead"],"additionalProperties":false},"visitSummary":{"type":["string","null"],"description":"The technician's end-of-visit summary, as typed."},"monitoringNote":{"type":["string","null"],"description":"The service's monitoring instructions, as the company set them."},"devices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"number":{"type":"integer","description":"The station number crews and the customer see, unique per property."},"type":{"type":"string","enum":["rodent_bait_station","insect_bait_station","termite_monitor","snap_trap","glue_board","fly_light","other"]},"typeLabel":{"type":"string","description":"The type in words (\"Rodent bait station\")."},"deviceLocation":{"type":"string","description":"Where the device is, as the office or a crew typed it (\"Left of the loading dock door\")."},"areaId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"areaName":{"type":["string","null"],"description":"The part of the property it is in (\"Barrel cellar\"); null for no area."},"status":{"type":"string","enum":["active","missing","retired"],"description":"`missing` once a crew marked it missing and until it is found or replaced."},"deviceCode":{"type":["string","null"],"description":"The barcode or label on it now, as scanned or typed; null when none was assigned."},"thisVisit":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"visitId":{"type":"string","format":"uuid"},"visitDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The visit's date, `YYYY-MM-DD`."},"outcome":{"type":"string","enum":["checked","skipped","missing"],"description":"`checked` with readings, `skipped` with a reason, or `missing` (the device was not there)."},"entry":{"type":"string","enum":["scan","typed","list","office"],"description":"How it was recorded: scanned, code typed, picked from the list, or by the office."},"recordedAt":{"type":"string","format":"date-time"},"recordedByName":{"type":["string","null"],"description":"Who recorded it (first name and last initial)."},"reading":{"type":"string","description":"The reading in the app's words (\"Most consumed · Added 3 · High activity\", \"Skipped · Locked\", \"Missing\")."},"consumed":{"anyOf":[{"type":"string","enum":["none","some","most","all"]},{"type":"null"}],"description":"Bait stations: how much bait was eaten."},"addedCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Bait placed this visit."},"productName":{"type":["string","null"],"description":"The bait product placed, when recorded."},"activity":{"anyOf":[{"type":"string","enum":["none","low","moderate","high"]},{"type":"null"}]},"condition":{"anyOf":[{"type":"string","enum":["ok","damaged","replaced"]},{"type":"null"}]},"catchCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Traps, glue boards and fly lights: what was caught."},"resetDone":{"type":["boolean","null"],"description":"Snap traps: reset."},"boardReplaced":{"type":["boolean","null"],"description":"Glue boards and fly lights: board or card replaced."},"skipReason":{"type":["string","null"],"description":"Why it was skipped, from the company's visit reasons."},"technicianNote":{"type":["string","null"],"description":"The technician's note on this reading, as typed; null when none."}},"required":["id","visitId","visitDate","outcome","entry","recordedAt","recordedByName","reading","consumed","addedCount","productName","activity","condition","catchCount","resetDone","boardReplaced","skipReason","technicianNote"],"additionalProperties":false},{"type":"null"}],"description":"This visit's reading; null when the device has none yet."},"previous":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"visitId":{"type":"string","format":"uuid"},"visitDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The visit's date, `YYYY-MM-DD`."},"outcome":{"type":"string","enum":["checked","skipped","missing"],"description":"`checked` with readings, `skipped` with a reason, or `missing` (the device was not there)."},"entry":{"type":"string","enum":["scan","typed","list","office"],"description":"How it was recorded: scanned, code typed, picked from the list, or by the office."},"recordedAt":{"type":"string","format":"date-time"},"recordedByName":{"type":["string","null"],"description":"Who recorded it (first name and last initial)."},"reading":{"type":"string","description":"The reading in the app's words (\"Most consumed · Added 3 · High activity\", \"Skipped · Locked\", \"Missing\")."},"consumed":{"anyOf":[{"type":"string","enum":["none","some","most","all"]},{"type":"null"}],"description":"Bait stations: how much bait was eaten."},"addedCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Bait placed this visit."},"productName":{"type":["string","null"],"description":"The bait product placed, when recorded."},"activity":{"anyOf":[{"type":"string","enum":["none","low","moderate","high"]},{"type":"null"}]},"condition":{"anyOf":[{"type":"string","enum":["ok","damaged","replaced"]},{"type":"null"}]},"catchCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Traps, glue boards and fly lights: what was caught."},"resetDone":{"type":["boolean","null"],"description":"Snap traps: reset."},"boardReplaced":{"type":["boolean","null"],"description":"Glue boards and fly lights: board or card replaced."},"skipReason":{"type":["string","null"],"description":"Why it was skipped, from the company's visit reasons."},"technicianNote":{"type":["string","null"],"description":"The technician's note on this reading, as typed; null when none."}},"required":["id","visitId","visitDate","outcome","entry","recordedAt","recordedByName","reading","consumed","addedCount","productName","activity","condition","catchCount","resetDone","boardReplaced","skipReason","technicianNote"],"additionalProperties":false},{"type":"null"}],"description":"The last reading before this visit."}},"required":["id","number","type","typeLabel","deviceLocation","areaId","areaName","status","deviceCode","thisVisit","previous"],"additionalProperties":false},"description":"Every device at the property not retired, by area in walking order."},"report":{"type":"object","properties":{"issued":{"type":"boolean","description":"Whether the customer's device report was issued for this visit."},"publicationId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"issuedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"emailStatus":{"anyOf":[{"type":"string","enum":["sent","pending","suppressed","failed"]},{"type":"null"}]},"resend":{"type":"string","enum":["ok","no_report","owner_changed","no_portal_access","email_suppressed","messages_paused"],"description":"Whether `resend_device_report` can email it again: `ok`; `no_report` (none issued); `owner_changed` (the property has another owner since, and the report was the earlier owner's); `no_portal_access` (the customer has no active portal sign-in); `email_suppressed` (the customer's email preferences); `messages_paused` (the company paused customer messages)."}},"required":["issued","publicationId","issuedAt","emailStatus","resend"],"additionalProperties":false}},"required":["visitId","visitDate","checksDevices","propertyId","propertyLabel","visitCompleted","counts","visitSummary","monitoringNote","devices","report"],"additionalProperties":false},"meta":{"type":"object","properties":{},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## Email a visit's device report again

> Emails the customer the visit's issued device report again, as Resend on the report does: the customer portal's "service update" email to the customer's portal address. Refused with \`device\_report\_not\_deliverable\` (nothing queued) when the property has a new owner since the report, the customer has no active portal access, their email preferences don't take portal emails, or the company paused customer messages; \`resource\_not\_found\` when no report was issued for the visit. Send an \`Idempotency-Key\` to retry safely.\
> \
> \*\*Errors specific to this endpoint:\*\* \[\`device\_report\_not\_deliverable\`]\(<https://docs.shortcutco.com/developers/concepts/errors#device\\_report\\_not\\_deliverable>), \[\`monitored\_devices\_admins\_only\`]\(<https://docs.shortcutco.com/developers/concepts/errors#monitored\\_devices\\_admins\\_only>), \[\`monitored\_devices\_off\`]\(<https://docs.shortcutco.com/developers/concepts/errors#monitored\\_devices\\_off>), \[\`state\_conflict\`]\(<https://docs.shortcutco.com/developers/concepts/errors#state\\_conflict>). Every endpoint can also return the \[common errors]\(<https://docs.shortcutco.com/developers/concepts/errors>).

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["visits:read","messages:send"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.","schema":{"type":"string","maxLength":255}}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"Conflict with the current state or an in-flight request with the same idempotency key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unprocessable":{"description":"The request cannot be applied, or its idempotency key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}},"paths":{"/v1/visits/{id}/device-report/resend":{"post":{"operationId":"visits.device_report.resend","tags":["Visits"],"summary":"Email a visit's device report again","description":"Emails the customer the visit's issued device report again, as Resend on the report does: the customer portal's \"service update\" email to the customer's portal address. Refused with `device_report_not_deliverable` (nothing queued) when the property has a new owner since the report, the customer has no active portal access, their email preferences don't take portal emails, or the company paused customer messages; `resource_not_found` when no report was issued for the visit. Send an `Idempotency-Key` to retry safely.\n\n**Errors specific to this endpoint:** [`device_report_not_deliverable`](https://docs.shortcutco.com/developers/concepts/errors#device_report_not_deliverable), [`monitored_devices_admins_only`](https://docs.shortcutco.com/developers/concepts/errors#monitored_devices_admins_only), [`monitored_devices_off`](https://docs.shortcutco.com/developers/concepts/errors#monitored_devices_off), [`state_conflict`](https://docs.shortcutco.com/developers/concepts/errors#state_conflict). Every endpoint can also return the [common errors](https://docs.shortcutco.com/developers/concepts/errors).","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"visitId":{"type":"string","format":"uuid"},"publicationId":{"type":"string","format":"uuid"},"queued":{"type":"boolean","const":true,"description":"The portal email is queued; it goes to the customer's portal address."}},"required":["visitId","publicationId","queued"],"additionalProperties":false},"meta":{"type":"object","properties":{},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## Read what a move does to the miles

> What moving one visit to another day, another crew, or both does to the miles: the old crew's day without it and the new crew's day with it put where it adds the fewest miles, before and after, and the change for both days together. Straight-line miles from the planned orders, from and back to where crews start when set; no driving time (\`driveMinutes\` is always null).\
> \
> \*\*Errors specific to this endpoint:\*\* \[\`rule\_violation\`]\(<https://docs.shortcutco.com/developers/concepts/errors#rule\\_violation>). Every endpoint can also return the \[common errors]\(<https://docs.shortcutco.com/developers/concepts/errors>).

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs:read","visits:read","teams:read"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}},"paths":{"/v1/visits/{id}/drive-delta":{"get":{"operationId":"visits.drive_delta.get","tags":["Visits"],"summary":"Read what a move does to the miles","description":"What moving one visit to another day, another crew, or both does to the miles: the old crew's day without it and the new crew's day with it put where it adds the fewest miles, before and after, and the change for both days together. Straight-line miles from the planned orders, from and back to where crews start when set; no driving time (`driveMinutes` is always null).\n\n**Errors specific to this endpoint:** [`rule_violation`](https://docs.shortcutco.com/developers/concepts/errors#rule_violation). Every endpoint can also return the [common errors](https://docs.shortcutco.com/developers/concepts/errors).","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}},{"name":"date","in":"query","required":false,"description":"The day it would move to (default the day it is on), `YYYY-MM-DD` in the workspace's timezone.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"teamId","in":"query","required":false,"description":"The crew it would move to (default its crew now).","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"visitId":{"type":"string","format":"uuid"},"fromYard":{"type":"boolean","description":"True when the miles start and end where crews start (the company's route start)."},"from":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"teamId":{"type":"string","format":"uuid"},"crew":{"type":"string"},"stops":{"type":"integer","description":"Stops that day before the move."},"straightMilesBefore":{"type":"number"},"straightMilesAfter":{"type":"number"}},"required":["date","teamId","crew","stops","straightMilesBefore","straightMilesAfter"],"additionalProperties":false,"description":"The crew and day the visit is on now, without it after the move."},"to":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"teamId":{"type":"string","format":"uuid"},"crew":{"type":"string"},"stops":{"type":"integer","description":"Stops that day before the move."},"straightMilesBefore":{"type":"number"},"straightMilesAfter":{"type":"number"}},"required":["date","teamId","crew","stops","straightMilesBefore","straightMilesAfter"],"additionalProperties":false,"description":"The crew and day it would move to, with it put where it adds the fewest miles."},"insertAfter":{"type":"integer","description":"Where it would go on the new day: after this many stops (0 = first)."},"straightMilesChange":{"type":"number","description":"Both days together, after minus before: negative saves miles, positive adds them."},"measure":{"type":"string","const":"straight_line","description":"Straight-line miles stop to stop, not road miles or driving time."},"driveMinutes":{"type":"null","description":"Not measured: Shortcut stores no drive times, and this read makes no live map call."},"notMapped":{"type":"integer","description":"Stops on either day with no map pin, left out of the miles."}},"required":["visitId","fromYard","from","to","insertAfter","straightMilesChange","measure","driveMinutes","notMapped"],"additionalProperties":false},"meta":{"type":"object","properties":{},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## Read a visit's history

> A visit's History as Dispatch shows it, newest first: each change (moved, crew changed, started, completed, skipped, canceled, lines added …) with when, who and from where, and how many times it moved and changed crew. History started on 13 Nov 2026: earlier lines are rebuilt from what the visit kept (\`earlierRecord\`), and earlier moves are not known.

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs:read","visits:read"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}},"paths":{"/v1/visits/{id}/history":{"get":{"operationId":"visits.history.get","tags":["Visits"],"summary":"Read a visit's history","description":"A visit's History as Dispatch shows it, newest first: each change (moved, crew changed, started, completed, skipped, canceled, lines added …) with when, who and from where, and how many times it moved and changed crew. History started on 13 Nov 2026: earlier lines are rebuilt from what the visit kept (`earlierRecord`), and earlier moves are not known.","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"visitId":{"type":"string","format":"uuid"},"entries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","description":"What happened: `rescheduled`, `crew_changed`, `started`, `completed`, `canceled`, `line_added`, …"},"at":{"type":"string","format":"date-time"},"text":{"type":"string","description":"The line as Dispatch's History shows it."},"actorName":{"type":["string","null"],"description":"Who did it; null when no person is named (an automatic change, or a write that named nobody)."},"sourceLabel":{"type":["string","null"],"description":"Where: Dispatch, Crew app, Clip, Connected app, Automatic …; null when not recorded."},"earlierRecord":{"type":"boolean","description":"Rebuilt from what the visit kept before History started (13 Nov 2026); moves before then are not known."}},"required":["id","kind","at","text","actorName","sourceLabel","earlierRecord"],"additionalProperties":false}},"moves":{"type":"integer","description":"How many times History shows it moved to another day."},"crewChanges":{"type":"integer","description":"How many times History shows its crew changed."},"truncated":{"type":"boolean","description":"True when the visit has more History than the 300 newest lines returned."}},"required":["visitId","entries","moves","crewChanges","truncated"],"additionalProperties":false},"meta":{"type":"object","properties":{},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## List a visit's observations

> What was seen on a visit, oldest first: condition codes with their meaning, the lawn's rating, soil pH readings and notes. They are not part of the chemical application record or its filing. \`source\` names the system an imported observation came from (\`realgreen\`).\
> \
> Returns a list of \[visit observation objects]\(<https://docs.shortcutco.com/developers/reference/objects/visit-observation>).

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["visits:read"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"schemas":{"VisitObservation":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The observation's id."},"object":{"type":"string","const":"visit_observation","description":"Always `visit_observation`."},"visitId":{"type":"string","format":"uuid","description":"The visit it was seen on."},"chemicalApplicationId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The visit's chemical application record it was noted with, when one was named."},"kind":{"type":"string","enum":["condition","rating","soil_ph","note"],"description":"What it records: `condition` (a condition code), `rating` (the lawn's rating), `soil_ph`, or `note`."},"code":{"type":["string","null"],"description":"A condition's code, e.g. `BRWN`."},"label":{"type":["string","null"],"description":"What a condition code means, e.g. `Brown patch`."},"value":{"type":["number","null"],"description":"A rating or a soil pH reading."},"text":{"type":["string","null"],"description":"A note, or text kept beside a code or a reading."},"observedAt":{"type":"string","description":"When it was seen, ISO 8601."},"source":{"type":["string","null"],"description":"The system it was imported from (`realgreen`); null when entered in Shortcut."}},"required":["id","object","visitId","chemicalApplicationId","kind","code","label","value","text","observedAt","source"],"additionalProperties":false,"description":"Something seen on a visit: a condition, the lawn's rating, a soil pH reading or a note."},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/visits/{id}/observations":{"get":{"operationId":"visits.observations.list","tags":["Visits"],"summary":"List a visit's observations","description":"What was seen on a visit, oldest first: condition codes with their meaning, the lawn's rating, soil pH readings and notes. They are not part of the chemical application record or its filing. `source` names the system an imported observation came from (`realgreen`).\n\nReturns a list of [visit observation objects](https://docs.shortcutco.com/developers/reference/objects/visit-observation).","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/VisitObservation"}},"meta":{"type":"object","properties":{},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## Get a visit's required-photo checklist

> Every photo the visit's services require (each area, before and after) and what happened to it: taken, still on the crew's phone, overdue, skipped with the crew's reason, waived by the office, or missing, with who and when. Facts only: no image or link. An empty \`slots\` list means the services ask for no photos.

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["visits:read"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}},"paths":{"/v1/visits/{id}/photo-checklist":{"get":{"operationId":"visits.photo_checklist.get","tags":["Visits"],"summary":"Get a visit's required-photo checklist","description":"Every photo the visit's services require (each area, before and after) and what happened to it: taken, still on the crew's phone, overdue, skipped with the crew's reason, waived by the office, or missing, with who and when. Facts only: no image or link. An empty `slots` list means the services ask for no photos.","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"visitId":{"type":"string","format":"uuid"},"slots":{"type":"array","items":{"type":"object","properties":{"areaName":{"type":"string","description":"The area to photograph (\"Front yard\")."},"phase":{"type":"string","enum":["before","after"],"description":"Before or after."},"state":{"type":"string","enum":["missing","on_phone","overdue","skipped","taken","waived"],"description":"taken: the photo is in. on_phone: the crew took it and it has not uploaded yet. overdue: marked taken over 24 hours ago and never uploaded. skipped: the crew gave a reason instead. waived: the office let it go. missing: nothing yet."},"byName":{"type":["string","null"],"description":"Who took it, skipped it, or waived it; null when missing."},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When it was taken or skipped (the phone's clock) or waived, ISO 8601 in UTC; null when missing."},"skipReason":{"type":["string","null"],"description":"The reason picked from the company's list when skipped or waived; null otherwise."},"photoId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The photo answering the slot, for `view_attachment`; null until it is in."}},"required":["areaName","phase","state","byName","at","skipReason","photoId"],"additionalProperties":false},"description":"Every required slot. Empty when the visit's services ask for no photos."}},"required":["visitId","slots"],"additionalProperties":false},"meta":{"type":"object","properties":{},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## List a visit's photos

> The photos and videos on a visit, most recently taken first: before or after, the checklist area, when it was taken, who uploaded it, and whether the customer can see it. Facts only: no image, link, filename or location (none is stored). \`takenAtIsUploadTime\` marks a photo with no stored taken time, whose \`takenAt\` is its upload.

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["visits:read"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}},"paths":{"/v1/visits/{id}/photos":{"get":{"operationId":"visits.photos.list","tags":["Visits"],"summary":"List a visit's photos","description":"The photos and videos on a visit, most recently taken first: before or after, the checklist area, when it was taken, who uploaded it, and whether the customer can see it. Facts only: no image, link, filename or location (none is stored). `takenAtIsUploadTime` marks a photo with no stored taken time, whose `takenAt` is its upload.","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The photo's id. `view_attachment` takes it to look at the photo."},"label":{"anyOf":[{"type":"string","enum":["before","after"]},{"type":"null"}],"description":"Before or after, when the crew or the office marked it; null otherwise."},"areaName":{"type":["string","null"],"description":"The checklist area the photo answers (\"Front yard\"); null for a photo taken outside the checklist."},"takenAt":{"type":"string","format":"date-time","description":"When it was taken, ISO 8601 in UTC: the phone's clock, or the upload time when `takenAtIsUploadTime`."},"takenAtIsUploadTime":{"type":"boolean","description":"True when no taken time is stored (photos from before 10 Nov 2026 and office uploads): `takenAt` is when it uploaded."},"uploadedByName":{"type":"string","description":"Who uploaded it."},"sharedWithCustomer":{"type":"boolean","description":"Whether the customer can see it on the invoice and in the portal."},"mediaKind":{"type":"string","enum":["photo","video"],"description":"A photo or a video."}},"required":["id","label","areaName","takenAt","takenAtIsUploadTime","uploadedByName","sharedWithCustomer","mediaKind"],"additionalProperties":false}},"meta":{"type":"object","properties":{},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## Mark a visit ASAP or set its promised date

> Marks an open visit ASAP, sets the date promised to the customer (done on or before it), or clears either, as the Dispatch board and the visit sheet do. ASAP visits lead Dispatch's Needs attention and show red on the map and to the crew; a visit booked after its promise, or still open the day after it, is flagged "Promise at risk". Both clear on their own when the visit is completed, canceled or skipped. Only open visits (scheduled, rescheduled or waiting for a new date) take a mark. The change is recorded in the visit's history and on the customer's timeline. This action sends no message.\
> \
> Returns \[the visit object]\(<https://docs.shortcutco.com/developers/reference/objects/visit).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`state\_conflict\`]\(<https://docs.shortcutco.com/developers/concepts/errors#state\\_conflict>). Every endpoint can also return the \[common errors]\(<https://docs.shortcutco.com/developers/concepts/errors>).

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["visits:write"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.","schema":{"type":"string","maxLength":255}}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"schemas":{"Visit":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The visit's id."},"object":{"type":"string","const":"visit","description":"Always `visit`."},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The scheduled date, `YYYY-MM-DD` in the workspace's timezone."},"status":{"type":"string","enum":["pending","scheduled","completed","canceled","rescheduled","needs_reschedule","skipped"],"description":"`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":{"anyOf":[{"type":"string","enum":["already_handled","superseded"]},{"type":"null"}],"description":"`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":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The reason's id in the workspace's list, or null if it was removed."},"key":{"type":["string","null"],"description":"The default reason's stable key (`customer_requested`, `not_needed`, `weather`, `no_access`, `crew`, `other`), or null for a reason the workspace added. Shortcut closes some visits itself with its own key: `round_not_included` when the office left the visit's round out of the customer's program (\"Not in program\") and `skipped_this_season` for Skip this year. Neither is a customer cancellation: filter `visit.canceled` on them."},"label":{"type":"string","description":"The reason as it read when it was given, such as `Weather`."},"note":{"type":["string","null"],"description":"The note staff wrote with the reason, if any."},"setAt":{"type":"string","format":"date-time","description":"When the reason was given, ISO 8601 in UTC."},"setById":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Who gave the reason: the staff member's user id, or null when none was recorded. Who asked for the skip is the reason itself (`customer_requested`, `crew`, `weather` …)."}},"required":["id","key","label","note","setAt","setById"],"additionalProperties":false},{"type":"null"}],"description":"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."},"jobId":{"type":"string","format":"uuid","description":"The job this visit belongs to."},"jobName":{"type":"string","description":"The job's name, such as `Weekly mowing`."},"customerId":{"type":"string","format":"uuid","description":"The customer the visit is for."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property (service address), when the job has one."},"address":{"type":["string","null"],"description":"The property's street address, when the job has a property."},"assignedTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew pinned to this visit. Null means the visit inherits its job's crew; read `effectiveTeamId` for the crew doing the work."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the visit: `assignedTeamId` when set, otherwise the job's crew. Null when neither has a crew (unassigned)."},"routePosition":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"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":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Planned start, ISO 8601 in UTC, or null."},"plannedEndAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Planned end, ISO 8601 in UTC, or null."},"estimatedDurationMinutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Estimated time on site in minutes, when known."},"arrivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the crew arrived on site (read-only), ISO 8601 in UTC, or null."},"arrivedLat":{"type":["number","null"],"description":"Stored arrival latitude, or null when not recorded. A stamp location, not continuous tracking or proof of completed work."},"arrivedLng":{"type":["number","null"],"description":"Stored arrival longitude, or null when not recorded. Never inferred from the property address."},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the visit was completed, ISO 8601 in UTC, or null."},"invoiceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The invoice that bills this visit, once a completed visit has been billed; otherwise null."},"asap":{"type":"boolean","description":"True when the office marked the open visit ASAP. ASAP visits lead Dispatch's Needs attention and show red on the map. Cleared when the visit is completed, canceled or skipped."},"asapSince":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the visit was marked ASAP, ISO 8601 in UTC, or null."},"promisedBy":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The date promised to the customer, `YYYY-MM-DD`: the visit is to be done on or before it. Dispatch flags the visit when it is booked after this date or still open the day after. Null when no promise was made; cleared when the visit is completed, canceled or skipped."},"createdAt":{"type":"string","format":"date-time","description":"When the visit was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the visit last changed, ISO 8601 in UTC."}},"required":["id","object","date","status","closeReason","reason","jobId","jobName","customerId","propertyId","address","assignedTeamId","effectiveTeamId","routePosition","plannedStartAt","plannedEndAt","estimatedDurationMinutes","arrivedAt","arrivedLat","arrivedLng","completedAt","invoiceId","asap","asapSince","promisedBy","createdAt","updatedAt"],"additionalProperties":false,"description":"A visit: one scheduled service for a customer on one date."},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"Conflict with the current state or an in-flight request with the same idempotency key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unprocessable":{"description":"The request cannot be applied, or its idempotency key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/visits/{id}/priority":{"post":{"operationId":"visits.set_priority","tags":["Visits"],"summary":"Mark a visit ASAP or set its promised date","description":"Marks an open visit ASAP, sets the date promised to the customer (done on or before it), or clears either, as the Dispatch board and the visit sheet do. ASAP visits lead Dispatch's Needs attention and show red on the map and to the crew; a visit booked after its promise, or still open the day after it, is flagged \"Promise at risk\". Both clear on their own when the visit is completed, canceled or skipped. Only open visits (scheduled, rescheduled or waiting for a new date) take a mark. The change is recorded in the visit's history and on the customer's timeline. This action sends no message.\n\nReturns [the visit object](https://docs.shortcutco.com/developers/reference/objects/visit).\n\n**Errors specific to this endpoint:** [`state_conflict`](https://docs.shortcutco.com/developers/concepts/errors#state_conflict). Every endpoint can also return the [common errors](https://docs.shortcutco.com/developers/concepts/errors).","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"asap":{"type":"boolean","description":"`true` marks the visit ASAP, `false` clears the mark. Marking a visit that is already ASAP keeps its original time."},"promisedBy":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The date promised to the customer, `YYYY-MM-DD` in the workspace's timezone."},{"type":"null"}],"description":"The date promised to the customer, `YYYY-MM-DD`: done on or before it. `null` clears the promise."}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Visit"},"meta":{"type":"object","properties":{},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## Reschedule a visit

> 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\`), with \`warnings\` when a \`this\_only\` move put a chemical program round closer to another application than the program's minimum; the move still happens. Send an \`Idempotency-Key\` to retry safely.\
> \
> Returns \[the visit object]\(<https://docs.shortcutco.com/developers/reference/objects/visit).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`rule\_violation\`]\(<https://docs.shortcutco.com/developers/concepts/errors#rule\\_violation>), \[\`state\_conflict\`]\(<https://docs.shortcutco.com/developers/concepts/errors#state\\_conflict>). Every endpoint can also return the \[common errors]\(<https://docs.shortcutco.com/developers/concepts/errors>).

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["visits:write"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.","schema":{"type":"string","maxLength":255}}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"schemas":{"RescheduledVisit":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The visit's id."},"object":{"type":"string","const":"visit","description":"Always `visit`."},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The scheduled date, `YYYY-MM-DD` in the workspace's timezone."},"status":{"type":"string","enum":["pending","scheduled","completed","canceled","rescheduled","needs_reschedule","skipped"],"description":"`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":{"anyOf":[{"type":"string","enum":["already_handled","superseded"]},{"type":"null"}],"description":"`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":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The reason's id in the workspace's list, or null if it was removed."},"key":{"type":["string","null"],"description":"The default reason's stable key (`customer_requested`, `not_needed`, `weather`, `no_access`, `crew`, `other`), or null for a reason the workspace added. Shortcut closes some visits itself with its own key: `round_not_included` when the office left the visit's round out of the customer's program (\"Not in program\") and `skipped_this_season` for Skip this year. Neither is a customer cancellation: filter `visit.canceled` on them."},"label":{"type":"string","description":"The reason as it read when it was given, such as `Weather`."},"note":{"type":["string","null"],"description":"The note staff wrote with the reason, if any."},"setAt":{"type":"string","format":"date-time","description":"When the reason was given, ISO 8601 in UTC."},"setById":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Who gave the reason: the staff member's user id, or null when none was recorded. Who asked for the skip is the reason itself (`customer_requested`, `crew`, `weather` …)."}},"required":["id","key","label","note","setAt","setById"],"additionalProperties":false},{"type":"null"}],"description":"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."},"jobId":{"type":"string","format":"uuid","description":"The job this visit belongs to."},"jobName":{"type":"string","description":"The job's name, such as `Weekly mowing`."},"customerId":{"type":"string","format":"uuid","description":"The customer the visit is for."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property (service address), when the job has one."},"address":{"type":["string","null"],"description":"The property's street address, when the job has a property."},"assignedTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew pinned to this visit. Null means the visit inherits its job's crew; read `effectiveTeamId` for the crew doing the work."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the visit: `assignedTeamId` when set, otherwise the job's crew. Null when neither has a crew (unassigned)."},"routePosition":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"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":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Planned start, ISO 8601 in UTC, or null."},"plannedEndAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Planned end, ISO 8601 in UTC, or null."},"estimatedDurationMinutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Estimated time on site in minutes, when known."},"arrivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the crew arrived on site (read-only), ISO 8601 in UTC, or null."},"arrivedLat":{"type":["number","null"],"description":"Stored arrival latitude, or null when not recorded. A stamp location, not continuous tracking or proof of completed work."},"arrivedLng":{"type":["number","null"],"description":"Stored arrival longitude, or null when not recorded. Never inferred from the property address."},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the visit was completed, ISO 8601 in UTC, or null."},"invoiceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The invoice that bills this visit, once a completed visit has been billed; otherwise null."},"asap":{"type":"boolean","description":"True when the office marked the open visit ASAP. ASAP visits lead Dispatch's Needs attention and show red on the map. Cleared when the visit is completed, canceled or skipped."},"asapSince":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the visit was marked ASAP, ISO 8601 in UTC, or null."},"promisedBy":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The date promised to the customer, `YYYY-MM-DD`: the visit is to be done on or before it. Dispatch flags the visit when it is booked after this date or still open the day after. Null when no promise was made; cleared when the visit is completed, canceled or skipped."},"createdAt":{"type":"string","format":"date-time","description":"When the visit was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the visit last changed, ISO 8601 in UTC."},"warnings":{"type":"array","items":{"type":"string"},"description":"Present only when the move went through with something the office should know, one sentence each. Today: a chemical program round now closer to another application of the same program than the minimum the office set for that program, for example \"Round 3 on 2027-05-20 is 12 days after Round 2 (completed 2027-05-08). This program needs 28 days.\" Programs with no minimum set are never checked. The move is never refused for it; tell the person and let them decide. `this_only` moves only."}},"required":["id","object","date","status","closeReason","reason","jobId","jobName","customerId","propertyId","address","assignedTeamId","effectiveTeamId","routePosition","plannedStartAt","plannedEndAt","estimatedDurationMinutes","arrivedAt","arrivedLat","arrivedLng","completedAt","invoiceId","asap","asapSince","promisedBy","createdAt","updatedAt"],"additionalProperties":false,"description":"A visit just rescheduled: one scheduled service for a customer on one date, with any warnings about the move."},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"Conflict with the current state or an in-flight request with the same idempotency key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unprocessable":{"description":"The request cannot be applied, or its idempotency key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/visits/{id}/reschedule":{"post":{"operationId":"visits.reschedule","tags":["Visits"],"summary":"Reschedule a visit","description":"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`), with `warnings` when a `this_only` move put a chemical program round closer to another application than the program's minimum; the move still happens. Send an `Idempotency-Key` to retry safely.\n\nReturns [the visit object](https://docs.shortcutco.com/developers/reference/objects/visit).\n\n**Errors specific to this endpoint:** [`rule_violation`](https://docs.shortcutco.com/developers/concepts/errors#rule_violation), [`state_conflict`](https://docs.shortcutco.com/developers/concepts/errors#state_conflict). Every endpoint can also return the [common errors](https://docs.shortcutco.com/developers/concepts/errors).","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The new date, `YYYY-MM-DD` in the workspace's timezone; today or later."},"scope":{"type":"string","enum":["this_only","this_and_future"],"default":"this_only","description":"`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."},"acceptPromiseConflicts":{"type":"boolean","description":"Move the visit even though the new date is after its `promisedBy` date. Without it such a move is refused with `409 state_conflict` naming the promise, so confirm with the person first."},"placement":{"type":"string","enum":["start","end"],"description":"`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)."}},"required":["date"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/RescheduledVisit"},"meta":{"type":"object","properties":{},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## Skip a visit

> 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]\(<https://docs.shortcutco.com/developers/reference/objects/visit).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`rule\_violation\`]\(<https://docs.shortcutco.com/developers/concepts/errors#rule\\_violation>), \[\`state\_conflict\`]\(<https://docs.shortcutco.com/developers/concepts/errors#state\\_conflict>). Every endpoint can also return the \[common errors]\(<https://docs.shortcutco.com/developers/concepts/errors>).

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["visits:write"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.","schema":{"type":"string","maxLength":255}}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"schemas":{"Visit":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The visit's id."},"object":{"type":"string","const":"visit","description":"Always `visit`."},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The scheduled date, `YYYY-MM-DD` in the workspace's timezone."},"status":{"type":"string","enum":["pending","scheduled","completed","canceled","rescheduled","needs_reschedule","skipped"],"description":"`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":{"anyOf":[{"type":"string","enum":["already_handled","superseded"]},{"type":"null"}],"description":"`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":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The reason's id in the workspace's list, or null if it was removed."},"key":{"type":["string","null"],"description":"The default reason's stable key (`customer_requested`, `not_needed`, `weather`, `no_access`, `crew`, `other`), or null for a reason the workspace added. Shortcut closes some visits itself with its own key: `round_not_included` when the office left the visit's round out of the customer's program (\"Not in program\") and `skipped_this_season` for Skip this year. Neither is a customer cancellation: filter `visit.canceled` on them."},"label":{"type":"string","description":"The reason as it read when it was given, such as `Weather`."},"note":{"type":["string","null"],"description":"The note staff wrote with the reason, if any."},"setAt":{"type":"string","format":"date-time","description":"When the reason was given, ISO 8601 in UTC."},"setById":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Who gave the reason: the staff member's user id, or null when none was recorded. Who asked for the skip is the reason itself (`customer_requested`, `crew`, `weather` …)."}},"required":["id","key","label","note","setAt","setById"],"additionalProperties":false},{"type":"null"}],"description":"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."},"jobId":{"type":"string","format":"uuid","description":"The job this visit belongs to."},"jobName":{"type":"string","description":"The job's name, such as `Weekly mowing`."},"customerId":{"type":"string","format":"uuid","description":"The customer the visit is for."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property (service address), when the job has one."},"address":{"type":["string","null"],"description":"The property's street address, when the job has a property."},"assignedTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew pinned to this visit. Null means the visit inherits its job's crew; read `effectiveTeamId` for the crew doing the work."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the visit: `assignedTeamId` when set, otherwise the job's crew. Null when neither has a crew (unassigned)."},"routePosition":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"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":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Planned start, ISO 8601 in UTC, or null."},"plannedEndAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Planned end, ISO 8601 in UTC, or null."},"estimatedDurationMinutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Estimated time on site in minutes, when known."},"arrivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the crew arrived on site (read-only), ISO 8601 in UTC, or null."},"arrivedLat":{"type":["number","null"],"description":"Stored arrival latitude, or null when not recorded. A stamp location, not continuous tracking or proof of completed work."},"arrivedLng":{"type":["number","null"],"description":"Stored arrival longitude, or null when not recorded. Never inferred from the property address."},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the visit was completed, ISO 8601 in UTC, or null."},"invoiceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The invoice that bills this visit, once a completed visit has been billed; otherwise null."},"asap":{"type":"boolean","description":"True when the office marked the open visit ASAP. ASAP visits lead Dispatch's Needs attention and show red on the map. Cleared when the visit is completed, canceled or skipped."},"asapSince":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the visit was marked ASAP, ISO 8601 in UTC, or null."},"promisedBy":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The date promised to the customer, `YYYY-MM-DD`: the visit is to be done on or before it. Dispatch flags the visit when it is booked after this date or still open the day after. Null when no promise was made; cleared when the visit is completed, canceled or skipped."},"createdAt":{"type":"string","format":"date-time","description":"When the visit was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the visit last changed, ISO 8601 in UTC."}},"required":["id","object","date","status","closeReason","reason","jobId","jobName","customerId","propertyId","address","assignedTeamId","effectiveTeamId","routePosition","plannedStartAt","plannedEndAt","estimatedDurationMinutes","arrivedAt","arrivedLat","arrivedLng","completedAt","invoiceId","asap","asapSince","promisedBy","createdAt","updatedAt"],"additionalProperties":false,"description":"A visit: one scheduled service for a customer on one date."},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"Conflict with the current state or an in-flight request with the same idempotency key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unprocessable":{"description":"The request cannot be applied, or its idempotency key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/visits/{id}/skip":{"post":{"operationId":"visits.skip","tags":["Visits"],"summary":"Skip a visit","description":"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.\n\nReturns [the visit object](https://docs.shortcutco.com/developers/reference/objects/visit).\n\n**Errors specific to this endpoint:** [`rule_violation`](https://docs.shortcutco.com/developers/concepts/errors#rule_violation), [`state_conflict`](https://docs.shortcutco.com/developers/concepts/errors#state_conflict). Every endpoint can also return the [common errors](https://docs.shortcutco.com/developers/concepts/errors).","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"A reason from the workspace's list, by id."},"key":{"type":"string","description":"A default reason by its stable key: `customer_requested`, `not_needed`, `weather`, `no_access`, `crew`, or `other` (which needs a `note`). Use `id` or `key`."},"note":{"type":"string","maxLength":500,"description":"A note for the timeline, up to 500 characters."}},"additionalProperties":false,"description":"Why the visit is not happening. It shows on the customer's timeline, and your Automations rules can branch on it. Optional."}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Visit"},"meta":{"type":"object","properties":{},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## List the visits moved most

> The visits moved to another day or crew most often between \`from\` and \`to\` (default the last 30 days), most changed first, with the counts and who made the latest change. From visit History, which started on 13 Nov 2026: \`countsSince\` says the first day anything counts.

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs:read","visits:read"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}},"paths":{"/v1/visits/most-moved":{"get":{"operationId":"visits.most_moved.list","tags":["Visits"],"summary":"List the visits moved most","description":"The visits moved to another day or crew most often between `from` and `to` (default the last 30 days), most changed first, with the counts and who made the latest change. From visit History, which started on 13 Nov 2026: `countsSince` says the first day anything counts.","parameters":[{"name":"from","in":"query","required":false,"description":"The window's first day (default 30 days ago), `YYYY-MM-DD` in the workspace's timezone.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","required":false,"description":"The window's last day (default today), `YYYY-MM-DD` in the workspace's timezone.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"customerId","in":"query","required":false,"description":"Only this customer's visits.","schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"description":"How many visits, up to 50. Defaults to 20.","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"countsSince":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The first day History holds a change for this company; nothing before it is counted. Null when it holds none yet."},"visits":{"type":"array","items":{"type":"object","properties":{"visitId":{"type":"string","format":"uuid"},"jobId":{"type":"string","format":"uuid"},"customerId":{"type":"string","format":"uuid"},"customerName":{"type":"string"},"jobName":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The day the visit is on now."},"status":{"type":"string"},"moves":{"type":"integer","description":"Moves to another day in the window."},"crewChanges":{"type":"integer","description":"Crew changes in the window."},"lastChangedAt":{"type":"string","format":"date-time"},"lastChangedBy":{"type":["string","null"],"description":"Who made the latest of those changes; null when no person is named."}},"required":["visitId","jobId","customerId","customerName","jobName","date","status","moves","crewChanges","lastChangedAt","lastChangedBy"],"additionalProperties":false}}},"required":["from","to","countsSince","visits"],"additionalProperties":false},"meta":{"type":"object","properties":{},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## List snow passes

> Snow visits between \`from\` and \`to\` (default the last 14 days; at most 366), newest first, optionally for one property, customer, crew or snow line: the depth each was dispatched at (null = any accumulation, billed at the lowest bracket), the bracket and price per push, the on-call offer behind it, arrival and completion, the snowfall and snow depth stamped at arrival (one hour's snowfall, not the storm's), the products put down, photo and note counts, and passes per day. \`billing\` (amount billed, invoice) needs \`invoices:read\`. At most 300 visits; \`truncated\` says when there are more.

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs:read","visits:read","customers:read"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}},"paths":{"/v1/visits/snow-passes":{"get":{"operationId":"visits.snow_passes.list","tags":["Visits"],"summary":"List snow passes","description":"Snow visits between `from` and `to` (default the last 14 days; at most 366), newest first, optionally for one property, customer, crew or snow line: the depth each was dispatched at (null = any accumulation, billed at the lowest bracket), the bracket and price per push, the on-call offer behind it, arrival and completion, the snowfall and snow depth stamped at arrival (one hour's snowfall, not the storm's), the products put down, photo and note counts, and passes per day. `billing` (amount billed, invoice) needs `invoices:read`. At most 300 visits; `truncated` says when there are more.","parameters":[{"name":"from","in":"query","required":false,"description":"The first visit day (default 14 days before `to`), `YYYY-MM-DD` in the workspace's timezone.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","required":false,"description":"The last visit day (default today), `YYYY-MM-DD` in the workspace's timezone.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"propertyId","in":"query","required":false,"description":"Only this site's passes.","schema":{"type":"string","format":"uuid"}},{"name":"customerId","in":"query","required":false,"description":"Only this customer's passes.","schema":{"type":"string","format":"uuid"}},{"name":"teamId","in":"query","required":false,"description":"Only the passes this crew made (its own pin, else the line's crew).","schema":{"type":"string","format":"uuid"}},{"name":"jobId","in":"query","required":false,"description":"Only this snow line's passes.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"passes":{"type":"array","items":{"type":"object","properties":{"visitId":{"type":"string","format":"uuid"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"status":{"type":"string"},"jobId":{"type":"string","format":"uuid"},"jobName":{"type":"string"},"customerId":{"type":"string","format":"uuid"},"customerName":{"type":"string"},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"address":{"type":["string","null"]},"crewId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew on the visit (its own crew, else the line's)."},"crewName":{"type":["string","null"]},"triggerKind":{"anyOf":[{"type":"string","enum":["depth","any","manual","on_call"]},{"type":"null"}]},"dispatchedDepthInches":{"type":["number","null"],"description":"The accumulation the visit was dispatched at. Null means `any accumulation`, which bills at the lowest bracket."},"bracket":{"anyOf":[{"type":"object","properties":{"fromInches":{"type":"number","description":"Lower bound, exclusive (0 for the first bracket)."},"upToInches":{"type":["number","null"],"description":"Upper bound, inclusive; null for the open-ended last bracket."},"rate":{"type":"number"},"source":{"type":"string","enum":["billed","ladder"],"description":"`billed`: frozen on the visit at completion; `ladder`: the line's ladder today at the dispatched depth (not completed yet, or completed before brackets were kept)."}},"required":["fromInches","upToInches","rate","source"],"additionalProperties":false},{"type":"null"}],"description":"The ladder bracket this push bills at; null when the line has one price per push."},"pushRate":{"type":["number","null"],"description":"The price of this push: frozen at completion, else the line's rate at the dispatched depth. Null for hourly and per-area lines before completion."},"acceptedOfferAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the customer accepted the on-call offer that made this visit; null for visits the office dispatched."},"offerStatus":{"type":["string","null"],"description":"The status of the on-call offer behind the visit, if one."},"arrivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"minutesOnSite":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"completedAt − arrivedAt; null without both stamps."},"weather":{"anyOf":[{"type":"object","properties":{"observedAt":{"type":"string","format":"date-time"},"snowfallInches":{"type":["number","null"],"description":"Snowfall in the hour of arrival: one hour's, not the storm's total."},"snowDepthInches":{"type":["number","null"],"description":"Snow on the ground at arrival, as the weather provider reported it."}},"required":["observedAt","snowfallInches","snowDepthInches"],"additionalProperties":false},{"type":"null"}],"description":"The weather stamped once at arrival; null when none was stamped."},"products":{"type":"array","items":{"type":"object","properties":{"product":{"type":"string"},"quantity":{"type":"number"},"unit":{"type":"string"}},"required":["product","quantity","unit"],"additionalProperties":false},"description":"Products put down on the visit (salt, ice melt), as the crew or office recorded them."},"photos":{"type":"integer"},"notes":{"type":"integer","description":"Notes on the visit; read them with list_visit_notes."},"billing":{"type":"object","properties":{"billedAmount":{"type":["number","null"],"description":"The amount frozen at completion; null before."},"invoiceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]}},"required":["billedAmount","invoiceId"],"additionalProperties":false,"description":"With `invoices:read` only."}},"required":["visitId","date","status","jobId","jobName","customerId","customerName","propertyId","address","crewId","crewName","triggerKind","dispatchedDepthInches","bracket","pushRate","acceptedOfferAt","offerStatus","arrivedAt","completedAt","minutesOnSite","weather","products","photos","notes"],"additionalProperties":false},"description":"Snow visits in the window, newest first."},"byDate":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"passes":{"type":"integer"},"completed":{"type":"integer"}},"required":["date","passes","completed"],"additionalProperties":false},"description":"Passes per day, newest first: a storm is the days in a row with passes."},"truncated":{"type":"boolean","description":"True when the window holds more than 300 snow visits; only the newest were read. Narrow the dates or the site."}},"required":["from","to","passes","byDate","truncated"],"additionalProperties":false},"meta":{"type":"object","properties":{"omitted":{"type":"array","items":{"type":"object","properties":{"section":{"type":"string","description":"The section left out of `data`."},"requiredScope":{"type":"string","description":"The scope that would include it."}},"required":["section","requiredScope"],"additionalProperties":false},"description":"Sections omitted because the token lacks their scope."}},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## List the days crews were split

> Visits worked by more than one crew (a crew added to the visit in Dispatch), by day: the customer, the job and each crew with its own visit and status, the first crew's visit marked as the one that bills. Default the last 30 days through the next 14; at most 366 days.

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs:read","visits:read","teams:read"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}},"paths":{"/v1/visits/split-crew-days":{"get":{"operationId":"visits.split_crew_days.list","tags":["Visits"],"summary":"List the days crews were split","description":"Visits worked by more than one crew (a crew added to the visit in Dispatch), by day: the customer, the job and each crew with its own visit and status, the first crew's visit marked as the one that bills. Default the last 30 days through the next 14; at most 366 days.","parameters":[{"name":"from","in":"query","required":false,"description":"The first day (default 30 days ago), `YYYY-MM-DD` in the workspace's timezone.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","required":false,"description":"The last day (default 14 days ahead), `YYYY-MM-DD` in the workspace's timezone.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"visits":{"type":"array","items":{"type":"object","properties":{"visitId":{"type":"string","format":"uuid","description":"The first crew's visit (it holds the billing)."},"customerId":{"type":"string","format":"uuid"},"customerName":{"type":"string"},"jobName":{"type":"string"},"crews":{"type":"array","items":{"type":"object","properties":{"teamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"crew":{"type":["string","null"]},"visitId":{"type":"string","format":"uuid"},"status":{"type":"string"},"added":{"type":"boolean","description":"True for a crew added to the visit; false for the visit's first crew."}},"required":["teamId","crew","visitId","status","added"],"additionalProperties":false}}},"required":["visitId","customerId","customerName","jobName","crews"],"additionalProperties":false}}},"required":["date","visits"],"additionalProperties":false}},"truncated":{"type":"boolean","description":"True when more than 200 split visits matched; the earliest are returned."}},"required":["from","to","days","truncated"],"additionalProperties":false},"meta":{"type":"object","properties":{},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## List completed visits with no photo

> The completed visits between \`from\` and \`to\` (default the last 30 days) with no photo or video stored on them: per crew, completed visits and how many have no photo, most first; then those visits, newest first. The crew is the visit's own, else its job's. Whether a visit's services asked for photos is get\_visit\_photo\_checklist's.

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Visits","description":"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.\n\nFields: [The visit object](https://docs.shortcutco.com/developers/reference/objects/visit) · [The visit completion object](https://docs.shortcutco.com/developers/reference/objects/visit-completion)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs:read","visits:read"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"responses":{"BadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"The token is missing, invalid, expired, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SubscriptionRequired":{"description":"The workspace's subscription needs attention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The token is missing a required scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limited; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable; retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","description":"Error family, such as `invalid_request` or `permission`."},"code":{"type":"string","description":"Specific error code; see the errors page."},"message":{"type":"string","description":"A human-readable explanation."},"param":{"type":"string","description":"The input the error is about, such as `query.limit`."},"requiredScope":{"type":"string","description":"The scope the token is missing."},"requestId":{"type":"string","description":"Quote this id to support."},"docs":{"type":"string","description":"Link to the error's documentation."}},"required":["type","code","message","requestId","docs"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}},"paths":{"/v1/visits/without-photos":{"get":{"operationId":"visits.without_photos.list","tags":["Visits"],"summary":"List completed visits with no photo","description":"The completed visits between `from` and `to` (default the last 30 days) with no photo or video stored on them: per crew, completed visits and how many have no photo, most first; then those visits, newest first. The crew is the visit's own, else its job's. Whether a visit's services asked for photos is get_visit_photo_checklist's.","parameters":[{"name":"from","in":"query","required":false,"description":"The window's first day (default 30 days before `to`), `YYYY-MM-DD` in the workspace's timezone.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","required":false,"description":"The window's last day (default today), `YYYY-MM-DD` in the workspace's timezone.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"teamId","in":"query","required":false,"description":"Only this crew's visits.","schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"description":"How many visits without a photo to list, up to 200. Defaults to 50; the counts cover all.","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"completedVisits":{"type":"integer","description":"Completed visits in the window (the crew's, when teamId is set)."},"withoutPhoto":{"type":"integer","description":"Of those, the visits with no photo or video stored."},"complete":{"type":"boolean","description":"False when the window held more than 10,000 completed visits and only that many were read."},"crews":{"type":"array","items":{"type":"object","properties":{"teamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Null for visits with no crew."},"crewName":{"type":["string","null"]},"completedVisits":{"type":"integer"},"withoutPhoto":{"type":"integer"}},"required":["teamId","crewName","completedVisits","withoutPhoto"],"additionalProperties":false},"description":"Each crew with a completed visit in the window, most visits without a photo first."},"visits":{"type":"array","items":{"type":"object","properties":{"visitId":{"type":"string","format":"uuid"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"teamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"crewName":{"type":["string","null"]},"customerId":{"type":"string","format":"uuid"},"customerName":{"type":"string"},"jobName":{"type":"string"}},"required":["visitId","date","teamId","crewName","customerId","customerName","jobName"],"additionalProperties":false},"description":"The visits without a photo, newest first, up to `limit`."}},"required":["from","to","completedVisits","withoutPhoto","complete","crews","visits"],"additionalProperties":false},"meta":{"type":"object","properties":{},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```
