> 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/jobs.md). Agents can also search and read this documentation through its [MCP server](https://docs.shortcutco.com/~gitbook/mcp).

# Jobs

The recurring or one-time work you sold.

A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.

Fields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job).

## List jobs

> Jobs newest first, or by last change when \`updatedSince\` is set. \`externalSource\` and \`externalId\` together narrow the list to the job with that id in your system; a pair that still names a job a price change replaced is 409 \`job\_superseded\`, naming the current job. A price change in the app replaces a job with a new one; both are listed, linked by \`previousVersionJobId\`, and the earlier one has an \`effectiveUntilDate\`.\
> \
> Returns a list of \[job objects]\(<https://docs.shortcutco.com/developers/reference/objects/job).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`job\_superseded\`]\(<https://docs.shortcutco.com/developers/concepts/errors#job\\_superseded>). 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":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs: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":{"Job":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The job's id."},"object":{"type":"string","const":"job","description":"Always `job`."},"name":{"type":"string","description":"The job's name, such as `Weekly mowing`. New jobs take their service's name."},"description":{"type":["string","null"],"description":"The job's description, when it has one."},"status":{"type":"string","enum":["pending","scheduled","paused","canceled","completed"],"description":"`pending` jobs are not scheduled yet (schedule them with `POST /v1/jobs/{id}/schedule`). `scheduled` jobs have visits on the schedule. `paused` jobs are on hold. `canceled` and `completed` jobs are closed."},"customerId":{"type":"string","format":"uuid","description":"The customer the job 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."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the job was created from, when it still exists."},"estimateId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The estimate the job came from, when it was created by approving one."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`one_off` jobs have one visit, `recurring` jobs repeat, `on_demand` jobs (snow removal) get a visit per storm."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"For recurring jobs, how many visits per `cadencePeriod`; null otherwise."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"For recurring jobs, the period `cadenceFrequency` counts in; null otherwise."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How the job is priced: `flat`, `per_hour`, `per_sqft`, or `per_man_hour`."},"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"],"description":"The units priced (hours, square feet, or 1 for a flat price)."},"subtotal":{"type":"number","description":"The price per visit, in US dollars (`rate` × `quantity`)."},"teamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's own crew (for a recurring job, its owner). Visits with no crew of their own inherit it. Null when the job has no crew."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the job's next visit: that visit's own crew when it has one, otherwise `teamId`. Equals `teamId` when the job has no upcoming visit."},"nextVisitId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's next visit on or after today, when it has one."},"nextVisitDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The next visit's date, `YYYY-MM-DD` in the workspace's timezone, or null."},"pausedUntil":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"For a job paused until a date, that date (`YYYY-MM-DD`); null when it is paused indefinitely or not paused."},"pauseReason":{"type":["string","null"],"description":"Why the job was paused, when a reason was given."},"pauseKind":{"anyOf":[{"type":"string","enum":["manual","season","customer_inactive"]},{"type":"null"}],"description":"Why a paused job is paused: `manual` (paused by hand), `season` (paused for its service season), or `customer_inactive` (its customer was deactivated). Null when the job is not paused."},"serviceSeasonId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The service season the job follows: it is off in that window every year. Null when it follows none."},"springBehavior":{"type":"string","enum":["auto_resume","requires_renewal"],"description":"What a season pause does when the season ends: `auto_resume` comes back on its own, `requires_renewal` waits for the office."},"seasonPauseFrom":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"A season pause booked ahead: the job keeps running until this date (`YYYY-MM-DD`), then pauses. Null when none is booked."},"earliestDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the first day the job may be done (`YYYY-MM-DD`, in the workspace's timezone). Null when it may be done any day. Schedule a pending job on or after it."},"completeByDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the day the job should be done by (`YYYY-MM-DD`, in the workspace's timezone). Null when it has no deadline. A pending job past this day is overdue."},"previousVersionJobId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"When a price change replaced an earlier job with this one, the earlier job's id."},"effectiveUntilDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"When a price change replaced this job with a newer one, the last date this job covers (`YYYY-MM-DD`); null for the current job."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this job has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the job was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the job last changed, ISO 8601 in UTC."}},"required":["id","object","name","description","status","customerId","propertyId","address","serviceId","estimateId","cadence","cadenceFrequency","cadencePeriod","priceStructure","rate","rateLabel","sqftRateUnit","quantity","subtotal","teamId","effectiveTeamId","nextVisitId","nextVisitDate","pausedUntil","pauseReason","pauseKind","serviceSeasonId","springBehavior","seasonPauseFrom","earliestDate","completeByDate","previousVersionJobId","effectiveUntilDate","externalReferences","createdAt","updatedAt"],"additionalProperties":false,"description":"A job: a service a customer buys, one-time or recurring, and the source of its visits."},"ExternalReference":{"type":"object","properties":{"source":{"type":"string","description":"The system the id comes from."},"externalId":{"type":"string","description":"The object's id in that system."}},"required":["source","externalId"],"additionalProperties":false,"description":"An id this object has in another system."},"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/jobs":{"get":{"operationId":"jobs.list","tags":["Jobs"],"summary":"List jobs","description":"Jobs newest first, or by last change when `updatedSince` is set. `externalSource` and `externalId` together narrow the list to the job with that id in your system; a pair that still names a job a price change replaced is 409 `job_superseded`, naming the current job. A price change in the app replaces a job with a new one; both are listed, linked by `previousVersionJobId`, and the earlier one has an `effectiveUntilDate`.\n\nReturns a list of [job objects](https://docs.shortcutco.com/developers/reference/objects/job).\n\n**Errors specific to this endpoint:** [`job_superseded`](https://docs.shortcutco.com/developers/concepts/errors#job_superseded). Every endpoint can also return the [common errors](https://docs.shortcutco.com/developers/concepts/errors).","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":"customerId","in":"query","required":false,"description":"Only this customer's jobs.","schema":{"type":"string","format":"uuid"}},{"name":"propertyId","in":"query","required":false,"description":"Only jobs at this property; without `customerId`, its current owner's.","schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","required":false,"description":"Only jobs with this status.","schema":{"type":"string","enum":["pending","scheduled","paused","canceled","completed"]}},{"name":"teamId","in":"query","required":false,"description":"Only jobs this crew is doing: jobs whose `effectiveTeamId` is this crew (the next visit's own crew, or the job's crew when that visit has none or there is no upcoming visit).","schema":{"type":"string","format":"uuid"}},{"name":"externalSource","in":"query","required":false,"description":"With `externalId`: only the job with this id in your system.","schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{0,63}$"}},{"name":"externalId","in":"query","required":false,"description":"With `externalSource`: only the job with this id in your system.","schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[^\\p{Cc}\\s/\\\\]+$"}},{"name":"updatedSince","in":"query","required":false,"description":"ISO 8601 timestamp. Returns jobs 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 job's `updatedAt` changes only when the job itself changes: `nextVisitDate`, `nextVisitId`, `effectiveTeamId`, and `address` come from its visits and property, so sync visits from their own list.","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/Job"}},"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"}}}}}}
```

## Create jobs from services

> Creates one pending job per service for a customer, priced as given, exactly as adding jobs to a customer in the app does. Jobs have no visits until you schedule them with \`POST /v1/jobs/{id}/schedule\`. A service's \`earliestDate\` and \`completeByDate\` set its job's Do between window (the days it should be done in). When the workspace has a single crew, new jobs get it. A service's \`externalReference\` saves your id for its job in the same request, and a duplicate fails the whole request with 409. Send an \`Idempotency-Key\` to retry safely.\
> \
> Returns a list of \[job objects]\(<https://docs.shortcutco.com/developers/reference/objects/job).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`already\_exists\`]\(<https://docs.shortcutco.com/developers/concepts/errors#already\\_exists>), \[\`job\_superseded\`]\(<https://docs.shortcutco.com/developers/concepts/errors#job\\_superseded>), \[\`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":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs: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":{"Job":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The job's id."},"object":{"type":"string","const":"job","description":"Always `job`."},"name":{"type":"string","description":"The job's name, such as `Weekly mowing`. New jobs take their service's name."},"description":{"type":["string","null"],"description":"The job's description, when it has one."},"status":{"type":"string","enum":["pending","scheduled","paused","canceled","completed"],"description":"`pending` jobs are not scheduled yet (schedule them with `POST /v1/jobs/{id}/schedule`). `scheduled` jobs have visits on the schedule. `paused` jobs are on hold. `canceled` and `completed` jobs are closed."},"customerId":{"type":"string","format":"uuid","description":"The customer the job 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."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the job was created from, when it still exists."},"estimateId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The estimate the job came from, when it was created by approving one."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`one_off` jobs have one visit, `recurring` jobs repeat, `on_demand` jobs (snow removal) get a visit per storm."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"For recurring jobs, how many visits per `cadencePeriod`; null otherwise."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"For recurring jobs, the period `cadenceFrequency` counts in; null otherwise."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How the job is priced: `flat`, `per_hour`, `per_sqft`, or `per_man_hour`."},"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"],"description":"The units priced (hours, square feet, or 1 for a flat price)."},"subtotal":{"type":"number","description":"The price per visit, in US dollars (`rate` × `quantity`)."},"teamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's own crew (for a recurring job, its owner). Visits with no crew of their own inherit it. Null when the job has no crew."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the job's next visit: that visit's own crew when it has one, otherwise `teamId`. Equals `teamId` when the job has no upcoming visit."},"nextVisitId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's next visit on or after today, when it has one."},"nextVisitDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The next visit's date, `YYYY-MM-DD` in the workspace's timezone, or null."},"pausedUntil":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"For a job paused until a date, that date (`YYYY-MM-DD`); null when it is paused indefinitely or not paused."},"pauseReason":{"type":["string","null"],"description":"Why the job was paused, when a reason was given."},"pauseKind":{"anyOf":[{"type":"string","enum":["manual","season","customer_inactive"]},{"type":"null"}],"description":"Why a paused job is paused: `manual` (paused by hand), `season` (paused for its service season), or `customer_inactive` (its customer was deactivated). Null when the job is not paused."},"serviceSeasonId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The service season the job follows: it is off in that window every year. Null when it follows none."},"springBehavior":{"type":"string","enum":["auto_resume","requires_renewal"],"description":"What a season pause does when the season ends: `auto_resume` comes back on its own, `requires_renewal` waits for the office."},"seasonPauseFrom":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"A season pause booked ahead: the job keeps running until this date (`YYYY-MM-DD`), then pauses. Null when none is booked."},"earliestDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the first day the job may be done (`YYYY-MM-DD`, in the workspace's timezone). Null when it may be done any day. Schedule a pending job on or after it."},"completeByDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the day the job should be done by (`YYYY-MM-DD`, in the workspace's timezone). Null when it has no deadline. A pending job past this day is overdue."},"previousVersionJobId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"When a price change replaced an earlier job with this one, the earlier job's id."},"effectiveUntilDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"When a price change replaced this job with a newer one, the last date this job covers (`YYYY-MM-DD`); null for the current job."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this job has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the job was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the job last changed, ISO 8601 in UTC."}},"required":["id","object","name","description","status","customerId","propertyId","address","serviceId","estimateId","cadence","cadenceFrequency","cadencePeriod","priceStructure","rate","rateLabel","sqftRateUnit","quantity","subtotal","teamId","effectiveTeamId","nextVisitId","nextVisitDate","pausedUntil","pauseReason","pauseKind","serviceSeasonId","springBehavior","seasonPauseFrom","earliestDate","completeByDate","previousVersionJobId","effectiveUntilDate","externalReferences","createdAt","updatedAt"],"additionalProperties":false,"description":"A job: a service a customer buys, one-time or recurring, and the source of its visits."},"ExternalReference":{"type":"object","properties":{"source":{"type":"string","description":"The system the id comes from."},"externalId":{"type":"string","description":"The object's id in that system."}},"required":["source","externalId"],"additionalProperties":false,"description":"An id this object has in another system."},"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/jobs":{"post":{"operationId":"jobs.create","tags":["Jobs"],"summary":"Create jobs from services","description":"Creates one pending job per service for a customer, priced as given, exactly as adding jobs to a customer in the app does. Jobs have no visits until you schedule them with `POST /v1/jobs/{id}/schedule`. A service's `earliestDate` and `completeByDate` set its job's Do between window (the days it should be done in). When the workspace has a single crew, new jobs get it. A service's `externalReference` saves your id for its job in the same request, and a duplicate fails the whole request with 409. Send an `Idempotency-Key` to retry safely.\n\nReturns a list of [job objects](https://docs.shortcutco.com/developers/reference/objects/job).\n\n**Errors specific to this endpoint:** [`already_exists`](https://docs.shortcutco.com/developers/concepts/errors#already_exists), [`job_superseded`](https://docs.shortcutco.com/developers/concepts/errors#job_superseded), [`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":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","description":"The customer the jobs are for."},"propertyId":{"type":"string","format":"uuid","description":"The customer's property to service. Required when the customer has more than one active property."},"services":{"type":"array","items":{"type":"object","properties":{"serviceId":{"type":"string","format":"uuid","description":"The catalog service to sell. Each service may appear once per request."},"cadence":{"type":"string","enum":["one_off","recurring"],"description":"`one_off` for a single visit, `recurring` for a repeating service. Snow removal jobs are created in the app."},"cadenceFrequency":{"type":"integer","minimum":1,"maximum":366,"description":"Recurring jobs only: how many visits per `cadencePeriod`, such as 1 for weekly with `per_week`."},"cadencePeriod":{"type":"string","enum":["per_week","per_month","per_year","per_day"],"description":"Recurring jobs only: the period `cadenceFrequency` counts in."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How the job is priced. Defaults to the service's price structure."},"quantity":{"type":"number","minimum":0,"maximum":100000000,"default":1,"description":"The units priced (hours, square feet, or 1 for a flat price). Must be above 0 except for `per_man_hour` jobs. Defaults to 1."},"rate":{"type":"number","minimum":0,"maximum":10000000,"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)."},"earliestDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the first day the job may be done, `YYYY-MM-DD` in the workspace's timezone. Leave it out (or null) when any day will do."},"completeByDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the day the job should be done by, `YYYY-MM-DD` in the workspace's timezone. Leave it out (or null) for no deadline. Can't be before `earliestDate`."},"externalReference":{"type":"object","properties":{"source":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{0,63}$","description":"Your name for the system the id comes from, such as `hubspot` or `mywebsite`: 1-64 lowercase letters, digits, `_`, `.`, or `-`, starting with a letter or digit."},"externalId":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[^\\p{Cc}\\s/\\\\]+$","description":"The object's id in that system: 1-255 characters, no spaces, slashes, or control characters."}},"required":["source","externalId"],"additionalProperties":false,"description":"Your id for the job this service creates. It is saved with the job in the same request; if another job already has it, nothing is created and the response is 409 `already_exists`."}},"required":["serviceId","cadence","rate"],"additionalProperties":false},"minItems":1,"maxItems":25,"description":"One job is created per service. Jobs created together are grouped, so their visits share a stop."}},"required":["customerId","services"],"additionalProperties":false}}}},"responses":{"201":{"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/Job"}},"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"}}}}}}
```

## Get a job

> One job with its price, cadence, status, crew, and next visit. \`teamId\` is the job's own crew; \`effectiveTeamId\` is the crew doing its next visit.\
> \
> Returns \[the job object]\(<https://docs.shortcutco.com/developers/reference/objects/job>).

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs: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":{"Job":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The job's id."},"object":{"type":"string","const":"job","description":"Always `job`."},"name":{"type":"string","description":"The job's name, such as `Weekly mowing`. New jobs take their service's name."},"description":{"type":["string","null"],"description":"The job's description, when it has one."},"status":{"type":"string","enum":["pending","scheduled","paused","canceled","completed"],"description":"`pending` jobs are not scheduled yet (schedule them with `POST /v1/jobs/{id}/schedule`). `scheduled` jobs have visits on the schedule. `paused` jobs are on hold. `canceled` and `completed` jobs are closed."},"customerId":{"type":"string","format":"uuid","description":"The customer the job 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."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the job was created from, when it still exists."},"estimateId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The estimate the job came from, when it was created by approving one."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`one_off` jobs have one visit, `recurring` jobs repeat, `on_demand` jobs (snow removal) get a visit per storm."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"For recurring jobs, how many visits per `cadencePeriod`; null otherwise."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"For recurring jobs, the period `cadenceFrequency` counts in; null otherwise."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How the job is priced: `flat`, `per_hour`, `per_sqft`, or `per_man_hour`."},"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"],"description":"The units priced (hours, square feet, or 1 for a flat price)."},"subtotal":{"type":"number","description":"The price per visit, in US dollars (`rate` × `quantity`)."},"teamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's own crew (for a recurring job, its owner). Visits with no crew of their own inherit it. Null when the job has no crew."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the job's next visit: that visit's own crew when it has one, otherwise `teamId`. Equals `teamId` when the job has no upcoming visit."},"nextVisitId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's next visit on or after today, when it has one."},"nextVisitDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The next visit's date, `YYYY-MM-DD` in the workspace's timezone, or null."},"pausedUntil":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"For a job paused until a date, that date (`YYYY-MM-DD`); null when it is paused indefinitely or not paused."},"pauseReason":{"type":["string","null"],"description":"Why the job was paused, when a reason was given."},"pauseKind":{"anyOf":[{"type":"string","enum":["manual","season","customer_inactive"]},{"type":"null"}],"description":"Why a paused job is paused: `manual` (paused by hand), `season` (paused for its service season), or `customer_inactive` (its customer was deactivated). Null when the job is not paused."},"serviceSeasonId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The service season the job follows: it is off in that window every year. Null when it follows none."},"springBehavior":{"type":"string","enum":["auto_resume","requires_renewal"],"description":"What a season pause does when the season ends: `auto_resume` comes back on its own, `requires_renewal` waits for the office."},"seasonPauseFrom":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"A season pause booked ahead: the job keeps running until this date (`YYYY-MM-DD`), then pauses. Null when none is booked."},"earliestDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the first day the job may be done (`YYYY-MM-DD`, in the workspace's timezone). Null when it may be done any day. Schedule a pending job on or after it."},"completeByDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the day the job should be done by (`YYYY-MM-DD`, in the workspace's timezone). Null when it has no deadline. A pending job past this day is overdue."},"previousVersionJobId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"When a price change replaced an earlier job with this one, the earlier job's id."},"effectiveUntilDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"When a price change replaced this job with a newer one, the last date this job covers (`YYYY-MM-DD`); null for the current job."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this job has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the job was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the job last changed, ISO 8601 in UTC."}},"required":["id","object","name","description","status","customerId","propertyId","address","serviceId","estimateId","cadence","cadenceFrequency","cadencePeriod","priceStructure","rate","rateLabel","sqftRateUnit","quantity","subtotal","teamId","effectiveTeamId","nextVisitId","nextVisitDate","pausedUntil","pauseReason","pauseKind","serviceSeasonId","springBehavior","seasonPauseFrom","earliestDate","completeByDate","previousVersionJobId","effectiveUntilDate","externalReferences","createdAt","updatedAt"],"additionalProperties":false,"description":"A job: a service a customer buys, one-time or recurring, and the source of its visits."},"ExternalReference":{"type":"object","properties":{"source":{"type":"string","description":"The system the id comes from."},"externalId":{"type":"string","description":"The object's id in that system."}},"required":["source","externalId"],"additionalProperties":false,"description":"An id this object has in another system."},"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/jobs/{id}":{"get":{"operationId":"jobs.get","tags":["Jobs"],"summary":"Get a job","description":"One job with its price, cadence, status, crew, and next visit. `teamId` is the job's own crew; `effectiveTeamId` is the crew doing its next visit.\n\nReturns [the job object](https://docs.shortcutco.com/developers/reference/objects/job).","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/Job"},"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"}}}}}}
```

## Update a job

> Changes a job's name, description, crew, or Do between window (\`earliestDate\`, \`completeByDate\`: the days it should be done in; null clears one). Only the fields you send change; the window is checked against the dates the job keeps. Changing the crew works like changing a recurring job's crew in the app: upcoming open visits that follow the job's crew move with it, visits pinned to the previous crew are unpinned, and when the job had no crew every pinned upcoming visit is unpinned (see \`teamId\`). Prices are not editable here.\
> \
> Returns \[the job object]\(<https://docs.shortcutco.com/developers/reference/objects/job).\\>
> \
> \*\*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":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs: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."}},"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":{"Job":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The job's id."},"object":{"type":"string","const":"job","description":"Always `job`."},"name":{"type":"string","description":"The job's name, such as `Weekly mowing`. New jobs take their service's name."},"description":{"type":["string","null"],"description":"The job's description, when it has one."},"status":{"type":"string","enum":["pending","scheduled","paused","canceled","completed"],"description":"`pending` jobs are not scheduled yet (schedule them with `POST /v1/jobs/{id}/schedule`). `scheduled` jobs have visits on the schedule. `paused` jobs are on hold. `canceled` and `completed` jobs are closed."},"customerId":{"type":"string","format":"uuid","description":"The customer the job 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."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the job was created from, when it still exists."},"estimateId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The estimate the job came from, when it was created by approving one."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`one_off` jobs have one visit, `recurring` jobs repeat, `on_demand` jobs (snow removal) get a visit per storm."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"For recurring jobs, how many visits per `cadencePeriod`; null otherwise."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"For recurring jobs, the period `cadenceFrequency` counts in; null otherwise."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How the job is priced: `flat`, `per_hour`, `per_sqft`, or `per_man_hour`."},"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"],"description":"The units priced (hours, square feet, or 1 for a flat price)."},"subtotal":{"type":"number","description":"The price per visit, in US dollars (`rate` × `quantity`)."},"teamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's own crew (for a recurring job, its owner). Visits with no crew of their own inherit it. Null when the job has no crew."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the job's next visit: that visit's own crew when it has one, otherwise `teamId`. Equals `teamId` when the job has no upcoming visit."},"nextVisitId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's next visit on or after today, when it has one."},"nextVisitDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The next visit's date, `YYYY-MM-DD` in the workspace's timezone, or null."},"pausedUntil":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"For a job paused until a date, that date (`YYYY-MM-DD`); null when it is paused indefinitely or not paused."},"pauseReason":{"type":["string","null"],"description":"Why the job was paused, when a reason was given."},"pauseKind":{"anyOf":[{"type":"string","enum":["manual","season","customer_inactive"]},{"type":"null"}],"description":"Why a paused job is paused: `manual` (paused by hand), `season` (paused for its service season), or `customer_inactive` (its customer was deactivated). Null when the job is not paused."},"serviceSeasonId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The service season the job follows: it is off in that window every year. Null when it follows none."},"springBehavior":{"type":"string","enum":["auto_resume","requires_renewal"],"description":"What a season pause does when the season ends: `auto_resume` comes back on its own, `requires_renewal` waits for the office."},"seasonPauseFrom":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"A season pause booked ahead: the job keeps running until this date (`YYYY-MM-DD`), then pauses. Null when none is booked."},"earliestDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the first day the job may be done (`YYYY-MM-DD`, in the workspace's timezone). Null when it may be done any day. Schedule a pending job on or after it."},"completeByDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the day the job should be done by (`YYYY-MM-DD`, in the workspace's timezone). Null when it has no deadline. A pending job past this day is overdue."},"previousVersionJobId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"When a price change replaced an earlier job with this one, the earlier job's id."},"effectiveUntilDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"When a price change replaced this job with a newer one, the last date this job covers (`YYYY-MM-DD`); null for the current job."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this job has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the job was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the job last changed, ISO 8601 in UTC."}},"required":["id","object","name","description","status","customerId","propertyId","address","serviceId","estimateId","cadence","cadenceFrequency","cadencePeriod","priceStructure","rate","rateLabel","sqftRateUnit","quantity","subtotal","teamId","effectiveTeamId","nextVisitId","nextVisitDate","pausedUntil","pauseReason","pauseKind","serviceSeasonId","springBehavior","seasonPauseFrom","earliestDate","completeByDate","previousVersionJobId","effectiveUntilDate","externalReferences","createdAt","updatedAt"],"additionalProperties":false,"description":"A job: a service a customer buys, one-time or recurring, and the source of its visits."},"ExternalReference":{"type":"object","properties":{"source":{"type":"string","description":"The system the id comes from."},"externalId":{"type":"string","description":"The object's id in that system."}},"required":["source","externalId"],"additionalProperties":false,"description":"An id this object has in another system."},"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/jobs/{id}":{"patch":{"operationId":"jobs.update","tags":["Jobs"],"summary":"Update a job","description":"Changes a job's name, description, crew, or Do between window (`earliestDate`, `completeByDate`: the days it should be done in; null clears one). Only the fields you send change; the window is checked against the dates the job keeps. Changing the crew works like changing a recurring job's crew in the app: upcoming open visits that follow the job's crew move with it, visits pinned to the previous crew are unpinned, and when the job had no crew every pinned upcoming visit is unpinned (see `teamId`). Prices are not editable here.\n\nReturns [the job object](https://docs.shortcutco.com/developers/reference/objects/job).\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"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"A new name for the job."},"description":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"description":"A new description, or null to clear it."},"earliestDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the first day the job may be done, `YYYY-MM-DD` in the workspace's timezone, or null to clear it. Left out, it stays as it is. Every version of the job's series takes it."},"completeByDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the day the job should be done by, `YYYY-MM-DD` in the workspace's timezone, or null to clear it. Left out, it stays as it is. Can't be before the job's earliest day (the one sent, else the one it has)."},"teamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Recurring jobs only: the crew that owns the job, or null for none. Only upcoming open visits (pending, scheduled, or rescheduled, dated today or later) change. If the job had a crew, visits pinned to that previous crew are unpinned and follow the job's crew; visits pinned to any other crew, including the new one, keep their pin. If the job had no crew, every pinned upcoming open visit is unpinned and follows the new crew. Setting the job's current crew again unpins visits pinned to it. With null, visits pinned to the previous crew are left with no crew. Finished and past visits never change."}},"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/Job"},"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 job

> Cancels a job and its open visits (pending, scheduled, and rescheduled), exactly as canceling it in the app does. Completed visits keep their history. Canceling a canceled job changes nothing; a completed job cannot be canceled. A job with man-hour work still open cannot be canceled until that work is finished. This cannot be undone.\
> \
> Returns \[the job object]\(<https://docs.shortcutco.com/developers/reference/objects/job).\\>
> \
> \*\*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":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs: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":{"Job":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The job's id."},"object":{"type":"string","const":"job","description":"Always `job`."},"name":{"type":"string","description":"The job's name, such as `Weekly mowing`. New jobs take their service's name."},"description":{"type":["string","null"],"description":"The job's description, when it has one."},"status":{"type":"string","enum":["pending","scheduled","paused","canceled","completed"],"description":"`pending` jobs are not scheduled yet (schedule them with `POST /v1/jobs/{id}/schedule`). `scheduled` jobs have visits on the schedule. `paused` jobs are on hold. `canceled` and `completed` jobs are closed."},"customerId":{"type":"string","format":"uuid","description":"The customer the job 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."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the job was created from, when it still exists."},"estimateId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The estimate the job came from, when it was created by approving one."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`one_off` jobs have one visit, `recurring` jobs repeat, `on_demand` jobs (snow removal) get a visit per storm."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"For recurring jobs, how many visits per `cadencePeriod`; null otherwise."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"For recurring jobs, the period `cadenceFrequency` counts in; null otherwise."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How the job is priced: `flat`, `per_hour`, `per_sqft`, or `per_man_hour`."},"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"],"description":"The units priced (hours, square feet, or 1 for a flat price)."},"subtotal":{"type":"number","description":"The price per visit, in US dollars (`rate` × `quantity`)."},"teamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's own crew (for a recurring job, its owner). Visits with no crew of their own inherit it. Null when the job has no crew."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the job's next visit: that visit's own crew when it has one, otherwise `teamId`. Equals `teamId` when the job has no upcoming visit."},"nextVisitId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's next visit on or after today, when it has one."},"nextVisitDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The next visit's date, `YYYY-MM-DD` in the workspace's timezone, or null."},"pausedUntil":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"For a job paused until a date, that date (`YYYY-MM-DD`); null when it is paused indefinitely or not paused."},"pauseReason":{"type":["string","null"],"description":"Why the job was paused, when a reason was given."},"pauseKind":{"anyOf":[{"type":"string","enum":["manual","season","customer_inactive"]},{"type":"null"}],"description":"Why a paused job is paused: `manual` (paused by hand), `season` (paused for its service season), or `customer_inactive` (its customer was deactivated). Null when the job is not paused."},"serviceSeasonId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The service season the job follows: it is off in that window every year. Null when it follows none."},"springBehavior":{"type":"string","enum":["auto_resume","requires_renewal"],"description":"What a season pause does when the season ends: `auto_resume` comes back on its own, `requires_renewal` waits for the office."},"seasonPauseFrom":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"A season pause booked ahead: the job keeps running until this date (`YYYY-MM-DD`), then pauses. Null when none is booked."},"earliestDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the first day the job may be done (`YYYY-MM-DD`, in the workspace's timezone). Null when it may be done any day. Schedule a pending job on or after it."},"completeByDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the day the job should be done by (`YYYY-MM-DD`, in the workspace's timezone). Null when it has no deadline. A pending job past this day is overdue."},"previousVersionJobId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"When a price change replaced an earlier job with this one, the earlier job's id."},"effectiveUntilDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"When a price change replaced this job with a newer one, the last date this job covers (`YYYY-MM-DD`); null for the current job."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this job has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the job was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the job last changed, ISO 8601 in UTC."}},"required":["id","object","name","description","status","customerId","propertyId","address","serviceId","estimateId","cadence","cadenceFrequency","cadencePeriod","priceStructure","rate","rateLabel","sqftRateUnit","quantity","subtotal","teamId","effectiveTeamId","nextVisitId","nextVisitDate","pausedUntil","pauseReason","pauseKind","serviceSeasonId","springBehavior","seasonPauseFrom","earliestDate","completeByDate","previousVersionJobId","effectiveUntilDate","externalReferences","createdAt","updatedAt"],"additionalProperties":false,"description":"A job: a service a customer buys, one-time or recurring, and the source of its visits."},"ExternalReference":{"type":"object","properties":{"source":{"type":"string","description":"The system the id comes from."},"externalId":{"type":"string","description":"The object's id in that system."}},"required":["source","externalId"],"additionalProperties":false,"description":"An id this object has in another system."},"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/jobs/{id}/cancel":{"post":{"operationId":"jobs.cancel","tags":["Jobs"],"summary":"Cancel a job","description":"Cancels a job and its open visits (pending, scheduled, and rescheduled), exactly as canceling it in the app does. Completed visits keep their history. Canceling a canceled job changes nothing; a completed job cannot be canceled. A job with man-hour work still open cannot be canceled until that work is finished. This cannot be undone.\n\nReturns [the job object](https://docs.shortcutco.com/developers/reference/objects/job).\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"}],"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/Job"},"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"}}}}}}
```

## Link a job to your id

> Records \`externalId\` as this job's id in \`source\`, so the external lookup and upsert find it. Linking is always explicit; the API never matches a job to your id by itself. Repeating the same link changes nothing. If the id already belongs to another job, or this job already has a different id in \`source\`, the request fails with 409 and nothing changes. A job a price change replaced is 409 \`job\_superseded\`, naming the current version; link that one. When the app replaces a job later, its ids move to the new version.\
> \
> Returns \[the job object]\(<https://docs.shortcutco.com/developers/reference/objects/job).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`already\_exists\`]\(<https://docs.shortcutco.com/developers/concepts/errors#already\\_exists>), \[\`external\_reference\_exists\`]\(<https://docs.shortcutco.com/developers/concepts/errors#external\\_reference\\_exists>), \[\`job\_superseded\`]\(<https://docs.shortcutco.com/developers/concepts/errors#job\\_superseded>). 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":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs: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":{"Job":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The job's id."},"object":{"type":"string","const":"job","description":"Always `job`."},"name":{"type":"string","description":"The job's name, such as `Weekly mowing`. New jobs take their service's name."},"description":{"type":["string","null"],"description":"The job's description, when it has one."},"status":{"type":"string","enum":["pending","scheduled","paused","canceled","completed"],"description":"`pending` jobs are not scheduled yet (schedule them with `POST /v1/jobs/{id}/schedule`). `scheduled` jobs have visits on the schedule. `paused` jobs are on hold. `canceled` and `completed` jobs are closed."},"customerId":{"type":"string","format":"uuid","description":"The customer the job 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."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the job was created from, when it still exists."},"estimateId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The estimate the job came from, when it was created by approving one."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`one_off` jobs have one visit, `recurring` jobs repeat, `on_demand` jobs (snow removal) get a visit per storm."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"For recurring jobs, how many visits per `cadencePeriod`; null otherwise."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"For recurring jobs, the period `cadenceFrequency` counts in; null otherwise."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How the job is priced: `flat`, `per_hour`, `per_sqft`, or `per_man_hour`."},"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"],"description":"The units priced (hours, square feet, or 1 for a flat price)."},"subtotal":{"type":"number","description":"The price per visit, in US dollars (`rate` × `quantity`)."},"teamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's own crew (for a recurring job, its owner). Visits with no crew of their own inherit it. Null when the job has no crew."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the job's next visit: that visit's own crew when it has one, otherwise `teamId`. Equals `teamId` when the job has no upcoming visit."},"nextVisitId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's next visit on or after today, when it has one."},"nextVisitDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The next visit's date, `YYYY-MM-DD` in the workspace's timezone, or null."},"pausedUntil":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"For a job paused until a date, that date (`YYYY-MM-DD`); null when it is paused indefinitely or not paused."},"pauseReason":{"type":["string","null"],"description":"Why the job was paused, when a reason was given."},"pauseKind":{"anyOf":[{"type":"string","enum":["manual","season","customer_inactive"]},{"type":"null"}],"description":"Why a paused job is paused: `manual` (paused by hand), `season` (paused for its service season), or `customer_inactive` (its customer was deactivated). Null when the job is not paused."},"serviceSeasonId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The service season the job follows: it is off in that window every year. Null when it follows none."},"springBehavior":{"type":"string","enum":["auto_resume","requires_renewal"],"description":"What a season pause does when the season ends: `auto_resume` comes back on its own, `requires_renewal` waits for the office."},"seasonPauseFrom":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"A season pause booked ahead: the job keeps running until this date (`YYYY-MM-DD`), then pauses. Null when none is booked."},"earliestDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the first day the job may be done (`YYYY-MM-DD`, in the workspace's timezone). Null when it may be done any day. Schedule a pending job on or after it."},"completeByDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the day the job should be done by (`YYYY-MM-DD`, in the workspace's timezone). Null when it has no deadline. A pending job past this day is overdue."},"previousVersionJobId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"When a price change replaced an earlier job with this one, the earlier job's id."},"effectiveUntilDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"When a price change replaced this job with a newer one, the last date this job covers (`YYYY-MM-DD`); null for the current job."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this job has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the job was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the job last changed, ISO 8601 in UTC."}},"required":["id","object","name","description","status","customerId","propertyId","address","serviceId","estimateId","cadence","cadenceFrequency","cadencePeriod","priceStructure","rate","rateLabel","sqftRateUnit","quantity","subtotal","teamId","effectiveTeamId","nextVisitId","nextVisitDate","pausedUntil","pauseReason","pauseKind","serviceSeasonId","springBehavior","seasonPauseFrom","earliestDate","completeByDate","previousVersionJobId","effectiveUntilDate","externalReferences","createdAt","updatedAt"],"additionalProperties":false,"description":"A job: a service a customer buys, one-time or recurring, and the source of its visits."},"ExternalReference":{"type":"object","properties":{"source":{"type":"string","description":"The system the id comes from."},"externalId":{"type":"string","description":"The object's id in that system."}},"required":["source","externalId"],"additionalProperties":false,"description":"An id this object has in another system."},"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/jobs/{id}/external-references/{source}":{"put":{"operationId":"jobs.externalReferences.link","tags":["Jobs"],"summary":"Link a job to your id","description":"Records `externalId` as this job's id in `source`, so the external lookup and upsert find it. Linking is always explicit; the API never matches a job to your id by itself. Repeating the same link changes nothing. If the id already belongs to another job, or this job already has a different id in `source`, the request fails with 409 and nothing changes. A job a price change replaced is 409 `job_superseded`, naming the current version; link that one. When the app replaces a job later, its ids move to the new version.\n\nReturns [the job object](https://docs.shortcutco.com/developers/reference/objects/job).\n\n**Errors specific to this endpoint:** [`already_exists`](https://docs.shortcutco.com/developers/concepts/errors#already_exists), [`external_reference_exists`](https://docs.shortcutco.com/developers/concepts/errors#external_reference_exists), [`job_superseded`](https://docs.shortcutco.com/developers/concepts/errors#job_superseded). 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":"source","in":"path","required":true,"description":"Your name for the system the id comes from, such as `hubspot` or `mywebsite`: 1-64 lowercase letters, digits, `_`, `.`, or `-`, starting with a letter or digit.","schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{0,63}$"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"externalId":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[^\\p{Cc}\\s/\\\\]+$","description":"The object's id in that system: 1-255 characters, no spaces, slashes, or control characters."}},"required":["externalId"],"additionalProperties":false,"description":"The object's id in that system."}}}},"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/Job"},"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"}}}}}}
```

## Unlink a job from your id

> Removes this job's id in \`source\`. The job itself is unchanged. Unlinking when there is no link changes nothing.\
> \
> Returns \[the job object]\(<https://docs.shortcutco.com/developers/reference/objects/job>).

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs: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."}},"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":{"Job":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The job's id."},"object":{"type":"string","const":"job","description":"Always `job`."},"name":{"type":"string","description":"The job's name, such as `Weekly mowing`. New jobs take their service's name."},"description":{"type":["string","null"],"description":"The job's description, when it has one."},"status":{"type":"string","enum":["pending","scheduled","paused","canceled","completed"],"description":"`pending` jobs are not scheduled yet (schedule them with `POST /v1/jobs/{id}/schedule`). `scheduled` jobs have visits on the schedule. `paused` jobs are on hold. `canceled` and `completed` jobs are closed."},"customerId":{"type":"string","format":"uuid","description":"The customer the job 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."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the job was created from, when it still exists."},"estimateId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The estimate the job came from, when it was created by approving one."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`one_off` jobs have one visit, `recurring` jobs repeat, `on_demand` jobs (snow removal) get a visit per storm."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"For recurring jobs, how many visits per `cadencePeriod`; null otherwise."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"For recurring jobs, the period `cadenceFrequency` counts in; null otherwise."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How the job is priced: `flat`, `per_hour`, `per_sqft`, or `per_man_hour`."},"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"],"description":"The units priced (hours, square feet, or 1 for a flat price)."},"subtotal":{"type":"number","description":"The price per visit, in US dollars (`rate` × `quantity`)."},"teamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's own crew (for a recurring job, its owner). Visits with no crew of their own inherit it. Null when the job has no crew."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the job's next visit: that visit's own crew when it has one, otherwise `teamId`. Equals `teamId` when the job has no upcoming visit."},"nextVisitId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's next visit on or after today, when it has one."},"nextVisitDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The next visit's date, `YYYY-MM-DD` in the workspace's timezone, or null."},"pausedUntil":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"For a job paused until a date, that date (`YYYY-MM-DD`); null when it is paused indefinitely or not paused."},"pauseReason":{"type":["string","null"],"description":"Why the job was paused, when a reason was given."},"pauseKind":{"anyOf":[{"type":"string","enum":["manual","season","customer_inactive"]},{"type":"null"}],"description":"Why a paused job is paused: `manual` (paused by hand), `season` (paused for its service season), or `customer_inactive` (its customer was deactivated). Null when the job is not paused."},"serviceSeasonId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The service season the job follows: it is off in that window every year. Null when it follows none."},"springBehavior":{"type":"string","enum":["auto_resume","requires_renewal"],"description":"What a season pause does when the season ends: `auto_resume` comes back on its own, `requires_renewal` waits for the office."},"seasonPauseFrom":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"A season pause booked ahead: the job keeps running until this date (`YYYY-MM-DD`), then pauses. Null when none is booked."},"earliestDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the first day the job may be done (`YYYY-MM-DD`, in the workspace's timezone). Null when it may be done any day. Schedule a pending job on or after it."},"completeByDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the day the job should be done by (`YYYY-MM-DD`, in the workspace's timezone). Null when it has no deadline. A pending job past this day is overdue."},"previousVersionJobId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"When a price change replaced an earlier job with this one, the earlier job's id."},"effectiveUntilDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"When a price change replaced this job with a newer one, the last date this job covers (`YYYY-MM-DD`); null for the current job."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this job has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the job was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the job last changed, ISO 8601 in UTC."}},"required":["id","object","name","description","status","customerId","propertyId","address","serviceId","estimateId","cadence","cadenceFrequency","cadencePeriod","priceStructure","rate","rateLabel","sqftRateUnit","quantity","subtotal","teamId","effectiveTeamId","nextVisitId","nextVisitDate","pausedUntil","pauseReason","pauseKind","serviceSeasonId","springBehavior","seasonPauseFrom","earliestDate","completeByDate","previousVersionJobId","effectiveUntilDate","externalReferences","createdAt","updatedAt"],"additionalProperties":false,"description":"A job: a service a customer buys, one-time or recurring, and the source of its visits."},"ExternalReference":{"type":"object","properties":{"source":{"type":"string","description":"The system the id comes from."},"externalId":{"type":"string","description":"The object's id in that system."}},"required":["source","externalId"],"additionalProperties":false,"description":"An id this object has in another system."},"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/jobs/{id}/external-references/{source}":{"delete":{"operationId":"jobs.externalReferences.unlink","tags":["Jobs"],"summary":"Unlink a job from your id","description":"Removes this job's id in `source`. The job itself is unchanged. Unlinking when there is no link changes nothing.\n\nReturns [the job object](https://docs.shortcutco.com/developers/reference/objects/job).","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}},{"name":"source","in":"path","required":true,"description":"Your name for the system the id comes from, such as `hubspot` or `mywebsite`: 1-64 lowercase letters, digits, `_`, `.`, or `-`, starting with a letter or digit.","schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{0,63}$"}}],"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/Job"},"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"}}}}}}
```

## Pause a job

> Puts a scheduled job on hold, indefinitely or until \`pausedUntil\`, exactly as pausing it in the app does; a note is added to the customer. Pending, canceled, and completed jobs cannot be paused. Pausing a job again with the same values changes nothing. Send \`{}\` to pause indefinitely with no reason. Send \`season\` to pause it for a service season instead.\
> \
> Returns \[the job object]\(<https://docs.shortcutco.com/developers/reference/objects/job).\\>
> \
> \*\*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":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs: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":{"Job":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The job's id."},"object":{"type":"string","const":"job","description":"Always `job`."},"name":{"type":"string","description":"The job's name, such as `Weekly mowing`. New jobs take their service's name."},"description":{"type":["string","null"],"description":"The job's description, when it has one."},"status":{"type":"string","enum":["pending","scheduled","paused","canceled","completed"],"description":"`pending` jobs are not scheduled yet (schedule them with `POST /v1/jobs/{id}/schedule`). `scheduled` jobs have visits on the schedule. `paused` jobs are on hold. `canceled` and `completed` jobs are closed."},"customerId":{"type":"string","format":"uuid","description":"The customer the job 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."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the job was created from, when it still exists."},"estimateId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The estimate the job came from, when it was created by approving one."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`one_off` jobs have one visit, `recurring` jobs repeat, `on_demand` jobs (snow removal) get a visit per storm."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"For recurring jobs, how many visits per `cadencePeriod`; null otherwise."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"For recurring jobs, the period `cadenceFrequency` counts in; null otherwise."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How the job is priced: `flat`, `per_hour`, `per_sqft`, or `per_man_hour`."},"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"],"description":"The units priced (hours, square feet, or 1 for a flat price)."},"subtotal":{"type":"number","description":"The price per visit, in US dollars (`rate` × `quantity`)."},"teamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's own crew (for a recurring job, its owner). Visits with no crew of their own inherit it. Null when the job has no crew."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the job's next visit: that visit's own crew when it has one, otherwise `teamId`. Equals `teamId` when the job has no upcoming visit."},"nextVisitId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's next visit on or after today, when it has one."},"nextVisitDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The next visit's date, `YYYY-MM-DD` in the workspace's timezone, or null."},"pausedUntil":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"For a job paused until a date, that date (`YYYY-MM-DD`); null when it is paused indefinitely or not paused."},"pauseReason":{"type":["string","null"],"description":"Why the job was paused, when a reason was given."},"pauseKind":{"anyOf":[{"type":"string","enum":["manual","season","customer_inactive"]},{"type":"null"}],"description":"Why a paused job is paused: `manual` (paused by hand), `season` (paused for its service season), or `customer_inactive` (its customer was deactivated). Null when the job is not paused."},"serviceSeasonId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The service season the job follows: it is off in that window every year. Null when it follows none."},"springBehavior":{"type":"string","enum":["auto_resume","requires_renewal"],"description":"What a season pause does when the season ends: `auto_resume` comes back on its own, `requires_renewal` waits for the office."},"seasonPauseFrom":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"A season pause booked ahead: the job keeps running until this date (`YYYY-MM-DD`), then pauses. Null when none is booked."},"earliestDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the first day the job may be done (`YYYY-MM-DD`, in the workspace's timezone). Null when it may be done any day. Schedule a pending job on or after it."},"completeByDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the day the job should be done by (`YYYY-MM-DD`, in the workspace's timezone). Null when it has no deadline. A pending job past this day is overdue."},"previousVersionJobId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"When a price change replaced an earlier job with this one, the earlier job's id."},"effectiveUntilDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"When a price change replaced this job with a newer one, the last date this job covers (`YYYY-MM-DD`); null for the current job."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this job has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the job was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the job last changed, ISO 8601 in UTC."}},"required":["id","object","name","description","status","customerId","propertyId","address","serviceId","estimateId","cadence","cadenceFrequency","cadencePeriod","priceStructure","rate","rateLabel","sqftRateUnit","quantity","subtotal","teamId","effectiveTeamId","nextVisitId","nextVisitDate","pausedUntil","pauseReason","pauseKind","serviceSeasonId","springBehavior","seasonPauseFrom","earliestDate","completeByDate","previousVersionJobId","effectiveUntilDate","externalReferences","createdAt","updatedAt"],"additionalProperties":false,"description":"A job: a service a customer buys, one-time or recurring, and the source of its visits."},"ExternalReference":{"type":"object","properties":{"source":{"type":"string","description":"The system the id comes from."},"externalId":{"type":"string","description":"The object's id in that system."}},"required":["source","externalId"],"additionalProperties":false,"description":"An id this object has in another system."},"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/jobs/{id}/pause":{"post":{"operationId":"jobs.pause","tags":["Jobs"],"summary":"Pause a job","description":"Puts a scheduled job on hold, indefinitely or until `pausedUntil`, exactly as pausing it in the app does; a note is added to the customer. Pending, canceled, and completed jobs cannot be paused. Pausing a job again with the same values changes nothing. Send `{}` to pause indefinitely with no reason. Send `season` to pause it for a service season instead.\n\nReturns [the job object](https://docs.shortcutco.com/developers/reference/objects/job).\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":{"pausedUntil":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Pause until this date, `YYYY-MM-DD` in the workspace's timezone; today or later. Omit it to pause indefinitely."},"reason":{"type":"string","maxLength":500,"description":"Why the job is paused, shown in the app."},"season":{"type":"object","properties":{"serviceSeasonId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The service season to pause for. Omit it to use the job's own season; null for custom dates."},"pauseFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The first day without service, `YYYY-MM-DD`. Defaults to the season's next start (or today inside the season)."},"resumeOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The day service comes back, `YYYY-MM-DD` in the workspace's timezone."},{"type":"null"}],"description":"The day service comes back, `YYYY-MM-DD`. Defaults to the season's resume day."},"springBehavior":{"type":"string","enum":["auto_resume","requires_renewal"],"description":"`auto_resume` comes back on its own; `requires_renewal` waits for the office. Defaults to the job's setting."}},"additionalProperties":false,"description":"Pause for a season instead: visits from the pause day on close with no message to the customer, and the job resumes on the resume day. A pause day in the future keeps the job running until then. `pausedUntil` and `reason` are not used with it."}},"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/Job"},"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"}}}}}}
```

## Resume a job

> Takes a paused job off hold, exactly as resuming it in the app does: its open visits are canceled and its visits are planned again from \`resumeDate\` (today when omitted); a note is added to the customer. Resuming a job that is already scheduled changes nothing. Pending jobs are scheduled instead, and canceled and completed jobs cannot be resumed. Send \`{}\` to resume today.\
> \
> Returns \[the job object]\(<https://docs.shortcutco.com/developers/reference/objects/job).\\>
> \
> \*\*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":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs: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":{"Job":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The job's id."},"object":{"type":"string","const":"job","description":"Always `job`."},"name":{"type":"string","description":"The job's name, such as `Weekly mowing`. New jobs take their service's name."},"description":{"type":["string","null"],"description":"The job's description, when it has one."},"status":{"type":"string","enum":["pending","scheduled","paused","canceled","completed"],"description":"`pending` jobs are not scheduled yet (schedule them with `POST /v1/jobs/{id}/schedule`). `scheduled` jobs have visits on the schedule. `paused` jobs are on hold. `canceled` and `completed` jobs are closed."},"customerId":{"type":"string","format":"uuid","description":"The customer the job 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."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the job was created from, when it still exists."},"estimateId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The estimate the job came from, when it was created by approving one."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`one_off` jobs have one visit, `recurring` jobs repeat, `on_demand` jobs (snow removal) get a visit per storm."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"For recurring jobs, how many visits per `cadencePeriod`; null otherwise."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"For recurring jobs, the period `cadenceFrequency` counts in; null otherwise."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How the job is priced: `flat`, `per_hour`, `per_sqft`, or `per_man_hour`."},"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"],"description":"The units priced (hours, square feet, or 1 for a flat price)."},"subtotal":{"type":"number","description":"The price per visit, in US dollars (`rate` × `quantity`)."},"teamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's own crew (for a recurring job, its owner). Visits with no crew of their own inherit it. Null when the job has no crew."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the job's next visit: that visit's own crew when it has one, otherwise `teamId`. Equals `teamId` when the job has no upcoming visit."},"nextVisitId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's next visit on or after today, when it has one."},"nextVisitDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The next visit's date, `YYYY-MM-DD` in the workspace's timezone, or null."},"pausedUntil":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"For a job paused until a date, that date (`YYYY-MM-DD`); null when it is paused indefinitely or not paused."},"pauseReason":{"type":["string","null"],"description":"Why the job was paused, when a reason was given."},"pauseKind":{"anyOf":[{"type":"string","enum":["manual","season","customer_inactive"]},{"type":"null"}],"description":"Why a paused job is paused: `manual` (paused by hand), `season` (paused for its service season), or `customer_inactive` (its customer was deactivated). Null when the job is not paused."},"serviceSeasonId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The service season the job follows: it is off in that window every year. Null when it follows none."},"springBehavior":{"type":"string","enum":["auto_resume","requires_renewal"],"description":"What a season pause does when the season ends: `auto_resume` comes back on its own, `requires_renewal` waits for the office."},"seasonPauseFrom":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"A season pause booked ahead: the job keeps running until this date (`YYYY-MM-DD`), then pauses. Null when none is booked."},"earliestDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the first day the job may be done (`YYYY-MM-DD`, in the workspace's timezone). Null when it may be done any day. Schedule a pending job on or after it."},"completeByDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the day the job should be done by (`YYYY-MM-DD`, in the workspace's timezone). Null when it has no deadline. A pending job past this day is overdue."},"previousVersionJobId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"When a price change replaced an earlier job with this one, the earlier job's id."},"effectiveUntilDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"When a price change replaced this job with a newer one, the last date this job covers (`YYYY-MM-DD`); null for the current job."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this job has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the job was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the job last changed, ISO 8601 in UTC."}},"required":["id","object","name","description","status","customerId","propertyId","address","serviceId","estimateId","cadence","cadenceFrequency","cadencePeriod","priceStructure","rate","rateLabel","sqftRateUnit","quantity","subtotal","teamId","effectiveTeamId","nextVisitId","nextVisitDate","pausedUntil","pauseReason","pauseKind","serviceSeasonId","springBehavior","seasonPauseFrom","earliestDate","completeByDate","previousVersionJobId","effectiveUntilDate","externalReferences","createdAt","updatedAt"],"additionalProperties":false,"description":"A job: a service a customer buys, one-time or recurring, and the source of its visits."},"ExternalReference":{"type":"object","properties":{"source":{"type":"string","description":"The system the id comes from."},"externalId":{"type":"string","description":"The object's id in that system."}},"required":["source","externalId"],"additionalProperties":false,"description":"An id this object has in another system."},"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/jobs/{id}/resume":{"post":{"operationId":"jobs.resume","tags":["Jobs"],"summary":"Resume a job","description":"Takes a paused job off hold, exactly as resuming it in the app does: its open visits are canceled and its visits are planned again from `resumeDate` (today when omitted); a note is added to the customer. Resuming a job that is already scheduled changes nothing. Pending jobs are scheduled instead, and canceled and completed jobs cannot be resumed. Send `{}` to resume today.\n\nReturns [the job object](https://docs.shortcutco.com/developers/reference/objects/job).\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":{"resumeDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The date the job's visits start again, `YYYY-MM-DD` in the workspace's timezone; today or later. Omit it to resume today."}},"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/Job"},"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"}}}}}}
```

## Schedule a job

> Puts a pending job on the schedule, exactly as scheduling it in the app does: its visits are created from \`startDate\` (one for a one-time job, a series for a recurring one) and appended to the crew's route for each day. Only pending jobs can be scheduled; move existing visits with the visit endpoints instead. Your job-scheduled automations, which can email or text the customer, run only if the token has \`automations:trigger\`. Send an \`Idempotency-Key\` to retry safely.\
> \
> Returns \[the job object]\(<https://docs.shortcutco.com/developers/reference/objects/job).\\>
> \
> \*\*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":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs: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":{"Job":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The job's id."},"object":{"type":"string","const":"job","description":"Always `job`."},"name":{"type":"string","description":"The job's name, such as `Weekly mowing`. New jobs take their service's name."},"description":{"type":["string","null"],"description":"The job's description, when it has one."},"status":{"type":"string","enum":["pending","scheduled","paused","canceled","completed"],"description":"`pending` jobs are not scheduled yet (schedule them with `POST /v1/jobs/{id}/schedule`). `scheduled` jobs have visits on the schedule. `paused` jobs are on hold. `canceled` and `completed` jobs are closed."},"customerId":{"type":"string","format":"uuid","description":"The customer the job 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."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the job was created from, when it still exists."},"estimateId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The estimate the job came from, when it was created by approving one."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`one_off` jobs have one visit, `recurring` jobs repeat, `on_demand` jobs (snow removal) get a visit per storm."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"For recurring jobs, how many visits per `cadencePeriod`; null otherwise."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"For recurring jobs, the period `cadenceFrequency` counts in; null otherwise."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How the job is priced: `flat`, `per_hour`, `per_sqft`, or `per_man_hour`."},"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"],"description":"The units priced (hours, square feet, or 1 for a flat price)."},"subtotal":{"type":"number","description":"The price per visit, in US dollars (`rate` × `quantity`)."},"teamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's own crew (for a recurring job, its owner). Visits with no crew of their own inherit it. Null when the job has no crew."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the job's next visit: that visit's own crew when it has one, otherwise `teamId`. Equals `teamId` when the job has no upcoming visit."},"nextVisitId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's next visit on or after today, when it has one."},"nextVisitDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The next visit's date, `YYYY-MM-DD` in the workspace's timezone, or null."},"pausedUntil":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"For a job paused until a date, that date (`YYYY-MM-DD`); null when it is paused indefinitely or not paused."},"pauseReason":{"type":["string","null"],"description":"Why the job was paused, when a reason was given."},"pauseKind":{"anyOf":[{"type":"string","enum":["manual","season","customer_inactive"]},{"type":"null"}],"description":"Why a paused job is paused: `manual` (paused by hand), `season` (paused for its service season), or `customer_inactive` (its customer was deactivated). Null when the job is not paused."},"serviceSeasonId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The service season the job follows: it is off in that window every year. Null when it follows none."},"springBehavior":{"type":"string","enum":["auto_resume","requires_renewal"],"description":"What a season pause does when the season ends: `auto_resume` comes back on its own, `requires_renewal` waits for the office."},"seasonPauseFrom":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"A season pause booked ahead: the job keeps running until this date (`YYYY-MM-DD`), then pauses. Null when none is booked."},"earliestDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the first day the job may be done (`YYYY-MM-DD`, in the workspace's timezone). Null when it may be done any day. Schedule a pending job on or after it."},"completeByDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the day the job should be done by (`YYYY-MM-DD`, in the workspace's timezone). Null when it has no deadline. A pending job past this day is overdue."},"previousVersionJobId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"When a price change replaced an earlier job with this one, the earlier job's id."},"effectiveUntilDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"When a price change replaced this job with a newer one, the last date this job covers (`YYYY-MM-DD`); null for the current job."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this job has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the job was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the job last changed, ISO 8601 in UTC."}},"required":["id","object","name","description","status","customerId","propertyId","address","serviceId","estimateId","cadence","cadenceFrequency","cadencePeriod","priceStructure","rate","rateLabel","sqftRateUnit","quantity","subtotal","teamId","effectiveTeamId","nextVisitId","nextVisitDate","pausedUntil","pauseReason","pauseKind","serviceSeasonId","springBehavior","seasonPauseFrom","earliestDate","completeByDate","previousVersionJobId","effectiveUntilDate","externalReferences","createdAt","updatedAt"],"additionalProperties":false,"description":"A job: a service a customer buys, one-time or recurring, and the source of its visits."},"ExternalReference":{"type":"object","properties":{"source":{"type":"string","description":"The system the id comes from."},"externalId":{"type":"string","description":"The object's id in that system."}},"required":["source","externalId"],"additionalProperties":false,"description":"An id this object has in another system."},"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/jobs/{id}/schedule":{"post":{"operationId":"jobs.schedule","tags":["Jobs"],"summary":"Schedule a job","description":"Puts a pending job on the schedule, exactly as scheduling it in the app does: its visits are created from `startDate` (one for a one-time job, a series for a recurring one) and appended to the crew's route for each day. Only pending jobs can be scheduled; move existing visits with the visit endpoints instead. Your job-scheduled automations, which can email or text the customer, run only if the token has `automations:trigger`. Send an `Idempotency-Key` to retry safely.\n\nReturns [the job object](https://docs.shortcutco.com/developers/reference/objects/job).\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":{"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The first visit's date, `YYYY-MM-DD` in the workspace's timezone; today or later. A recurring job's later visits follow its cadence from here."},"teamId":{"type":"string","format":"uuid","description":"The crew for the visits this creates. Omit it to use the job's crew. For a recurring job with no crew yet, this crew also becomes the job's crew. Visits given the job's own crew store none of their own and follow the job's crew."}},"required":["startDate"],"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/Job"},"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 a job's visits

> The job's visits newest first, or by last change when \`updatedSince\` is set: the same visits, and the same shape, as \`GET /v1/visits?jobId=\`. Needs \`visits:read\` as well as \`jobs:read\`.\
> \
> 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":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"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."}},"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/jobs/{id}/visits":{"get":{"operationId":"jobs.visits.list","tags":["Jobs"],"summary":"List a job's visits","description":"The job's visits newest first, or by last change when `updatedSince` is set: the same visits, and the same shape, as `GET /v1/visits?jobId=`. Needs `visits:read` as well as `jobs:read`.\n\nReturns a list of [visit objects](https://docs.shortcutco.com/developers/reference/objects/visit).","parameters":[{"name":"id","in":"path","required":true,"description":"The job's id.","schema":{"type":"string","format":"uuid"}},{"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":"status","in":"query","required":false,"description":"Only visits with this status.","schema":{"type":"string","enum":["pending","scheduled","completed","canceled","rescheduled","needs_reschedule","skipped"]}},{"name":"updatedSince","in":"query","required":false,"description":"ISO 8601 timestamp. Returns objects 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`.","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 job by your id

> The job your id maps to, as \`GET /v1/jobs/{id}\` returns it, or 404. A price change in the app moves your id to the job's new version; an id that still names a replaced version is 409 \`job\_superseded\`, naming the current job.\
> \
> Returns \[the job object]\(<https://docs.shortcutco.com/developers/reference/objects/job).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`job\_superseded\`]\(<https://docs.shortcutco.com/developers/concepts/errors#job\\_superseded>). 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":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs: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":{"Job":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The job's id."},"object":{"type":"string","const":"job","description":"Always `job`."},"name":{"type":"string","description":"The job's name, such as `Weekly mowing`. New jobs take their service's name."},"description":{"type":["string","null"],"description":"The job's description, when it has one."},"status":{"type":"string","enum":["pending","scheduled","paused","canceled","completed"],"description":"`pending` jobs are not scheduled yet (schedule them with `POST /v1/jobs/{id}/schedule`). `scheduled` jobs have visits on the schedule. `paused` jobs are on hold. `canceled` and `completed` jobs are closed."},"customerId":{"type":"string","format":"uuid","description":"The customer the job 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."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the job was created from, when it still exists."},"estimateId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The estimate the job came from, when it was created by approving one."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`one_off` jobs have one visit, `recurring` jobs repeat, `on_demand` jobs (snow removal) get a visit per storm."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"For recurring jobs, how many visits per `cadencePeriod`; null otherwise."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"For recurring jobs, the period `cadenceFrequency` counts in; null otherwise."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How the job is priced: `flat`, `per_hour`, `per_sqft`, or `per_man_hour`."},"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"],"description":"The units priced (hours, square feet, or 1 for a flat price)."},"subtotal":{"type":"number","description":"The price per visit, in US dollars (`rate` × `quantity`)."},"teamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's own crew (for a recurring job, its owner). Visits with no crew of their own inherit it. Null when the job has no crew."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the job's next visit: that visit's own crew when it has one, otherwise `teamId`. Equals `teamId` when the job has no upcoming visit."},"nextVisitId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's next visit on or after today, when it has one."},"nextVisitDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The next visit's date, `YYYY-MM-DD` in the workspace's timezone, or null."},"pausedUntil":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"For a job paused until a date, that date (`YYYY-MM-DD`); null when it is paused indefinitely or not paused."},"pauseReason":{"type":["string","null"],"description":"Why the job was paused, when a reason was given."},"pauseKind":{"anyOf":[{"type":"string","enum":["manual","season","customer_inactive"]},{"type":"null"}],"description":"Why a paused job is paused: `manual` (paused by hand), `season` (paused for its service season), or `customer_inactive` (its customer was deactivated). Null when the job is not paused."},"serviceSeasonId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The service season the job follows: it is off in that window every year. Null when it follows none."},"springBehavior":{"type":"string","enum":["auto_resume","requires_renewal"],"description":"What a season pause does when the season ends: `auto_resume` comes back on its own, `requires_renewal` waits for the office."},"seasonPauseFrom":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"A season pause booked ahead: the job keeps running until this date (`YYYY-MM-DD`), then pauses. Null when none is booked."},"earliestDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the first day the job may be done (`YYYY-MM-DD`, in the workspace's timezone). Null when it may be done any day. Schedule a pending job on or after it."},"completeByDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the day the job should be done by (`YYYY-MM-DD`, in the workspace's timezone). Null when it has no deadline. A pending job past this day is overdue."},"previousVersionJobId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"When a price change replaced an earlier job with this one, the earlier job's id."},"effectiveUntilDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"When a price change replaced this job with a newer one, the last date this job covers (`YYYY-MM-DD`); null for the current job."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this job has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the job was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the job last changed, ISO 8601 in UTC."}},"required":["id","object","name","description","status","customerId","propertyId","address","serviceId","estimateId","cadence","cadenceFrequency","cadencePeriod","priceStructure","rate","rateLabel","sqftRateUnit","quantity","subtotal","teamId","effectiveTeamId","nextVisitId","nextVisitDate","pausedUntil","pauseReason","pauseKind","serviceSeasonId","springBehavior","seasonPauseFrom","earliestDate","completeByDate","previousVersionJobId","effectiveUntilDate","externalReferences","createdAt","updatedAt"],"additionalProperties":false,"description":"A job: a service a customer buys, one-time or recurring, and the source of its visits."},"ExternalReference":{"type":"object","properties":{"source":{"type":"string","description":"The system the id comes from."},"externalId":{"type":"string","description":"The object's id in that system."}},"required":["source","externalId"],"additionalProperties":false,"description":"An id this object has in another system."},"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/jobs/external/{source}/{externalId}":{"get":{"operationId":"jobs.external.get","tags":["Jobs"],"summary":"Get a job by your id","description":"The job your id maps to, as `GET /v1/jobs/{id}` returns it, or 404. A price change in the app moves your id to the job's new version; an id that still names a replaced version is 409 `job_superseded`, naming the current job.\n\nReturns [the job object](https://docs.shortcutco.com/developers/reference/objects/job).\n\n**Errors specific to this endpoint:** [`job_superseded`](https://docs.shortcutco.com/developers/concepts/errors#job_superseded). Every endpoint can also return the [common errors](https://docs.shortcutco.com/developers/concepts/errors).","parameters":[{"name":"source","in":"path","required":true,"description":"Your name for the system the id comes from, such as `hubspot` or `mywebsite`: 1-64 lowercase letters, digits, `_`, `.`, or `-`, starting with a letter or digit.","schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{0,63}$"}},{"name":"externalId","in":"path","required":true,"description":"The object's id in that system: 1-255 characters, no spaces, slashes, or control characters.","schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[^\\p{Cc}\\s/\\\\]+$"}}],"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/Job"},"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"}}}}}}
```

## Create or update a job by your id

> The sync endpoint. If your id is new, creates one pending job as a service of \`POST /v1/jobs\` does, applies \`name\`, \`description\`, \`teamId\`, \`earliestDate\`, and \`completeByDate\` when sent, and saves the id (\`created: true\`, status 201). If it exists, applies the \`name\`, \`description\`, \`teamId\`, \`earliestDate\`, and \`completeByDate\` that differ from the stored ones as \`PATCH /v1/jobs/{id}\` does and ignores the property, service, cadence, and price (\`created: false\`, status 200); a request that changes nothing writes nothing, and re-sending the job's current crew leaves its visits alone. \`customerId\` must be the mapped job's customer, or the request fails with 409. Concurrent requests for the same id run one after another, so they never create two jobs. When a price change in the app replaces a job with a new version, your id moves to the new version; an id that still names the replaced version is 409 \`job\_superseded\`, naming the current job.\
> \
> \*\*Errors specific to this endpoint:\*\* \[\`external\_reference\_changed\`]\(<https://docs.shortcutco.com/developers/concepts/errors#external\\_reference\\_changed>), \[\`external\_reference\_customer\_mismatch\`]\(<https://docs.shortcutco.com/developers/concepts/errors#external\\_reference\\_customer\\_mismatch>), \[\`job\_superseded\`]\(<https://docs.shortcutco.com/developers/concepts/errors#job\\_superseded>), \[\`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":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs: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":{"Job":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The job's id."},"object":{"type":"string","const":"job","description":"Always `job`."},"name":{"type":"string","description":"The job's name, such as `Weekly mowing`. New jobs take their service's name."},"description":{"type":["string","null"],"description":"The job's description, when it has one."},"status":{"type":"string","enum":["pending","scheduled","paused","canceled","completed"],"description":"`pending` jobs are not scheduled yet (schedule them with `POST /v1/jobs/{id}/schedule`). `scheduled` jobs have visits on the schedule. `paused` jobs are on hold. `canceled` and `completed` jobs are closed."},"customerId":{"type":"string","format":"uuid","description":"The customer the job 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."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the job was created from, when it still exists."},"estimateId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The estimate the job came from, when it was created by approving one."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`one_off` jobs have one visit, `recurring` jobs repeat, `on_demand` jobs (snow removal) get a visit per storm."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"For recurring jobs, how many visits per `cadencePeriod`; null otherwise."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"For recurring jobs, the period `cadenceFrequency` counts in; null otherwise."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How the job is priced: `flat`, `per_hour`, `per_sqft`, or `per_man_hour`."},"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"],"description":"The units priced (hours, square feet, or 1 for a flat price)."},"subtotal":{"type":"number","description":"The price per visit, in US dollars (`rate` × `quantity`)."},"teamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's own crew (for a recurring job, its owner). Visits with no crew of their own inherit it. Null when the job has no crew."},"effectiveTeamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew doing the job's next visit: that visit's own crew when it has one, otherwise `teamId`. Equals `teamId` when the job has no upcoming visit."},"nextVisitId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The job's next visit on or after today, when it has one."},"nextVisitDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The next visit's date, `YYYY-MM-DD` in the workspace's timezone, or null."},"pausedUntil":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"For a job paused until a date, that date (`YYYY-MM-DD`); null when it is paused indefinitely or not paused."},"pauseReason":{"type":["string","null"],"description":"Why the job was paused, when a reason was given."},"pauseKind":{"anyOf":[{"type":"string","enum":["manual","season","customer_inactive"]},{"type":"null"}],"description":"Why a paused job is paused: `manual` (paused by hand), `season` (paused for its service season), or `customer_inactive` (its customer was deactivated). Null when the job is not paused."},"serviceSeasonId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The service season the job follows: it is off in that window every year. Null when it follows none."},"springBehavior":{"type":"string","enum":["auto_resume","requires_renewal"],"description":"What a season pause does when the season ends: `auto_resume` comes back on its own, `requires_renewal` waits for the office."},"seasonPauseFrom":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"A season pause booked ahead: the job keeps running until this date (`YYYY-MM-DD`), then pauses. Null when none is booked."},"earliestDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the first day the job may be done (`YYYY-MM-DD`, in the workspace's timezone). Null when it may be done any day. Schedule a pending job on or after it."},"completeByDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the day the job should be done by (`YYYY-MM-DD`, in the workspace's timezone). Null when it has no deadline. A pending job past this day is overdue."},"previousVersionJobId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"When a price change replaced an earlier job with this one, the earlier job's id."},"effectiveUntilDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"When a price change replaced this job with a newer one, the last date this job covers (`YYYY-MM-DD`); null for the current job."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this job has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the job was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the job last changed, ISO 8601 in UTC."}},"required":["id","object","name","description","status","customerId","propertyId","address","serviceId","estimateId","cadence","cadenceFrequency","cadencePeriod","priceStructure","rate","rateLabel","sqftRateUnit","quantity","subtotal","teamId","effectiveTeamId","nextVisitId","nextVisitDate","pausedUntil","pauseReason","pauseKind","serviceSeasonId","springBehavior","seasonPauseFrom","earliestDate","completeByDate","previousVersionJobId","effectiveUntilDate","externalReferences","createdAt","updatedAt"],"additionalProperties":false,"description":"A job: a service a customer buys, one-time or recurring, and the source of its visits."},"ExternalReference":{"type":"object","properties":{"source":{"type":"string","description":"The system the id comes from."},"externalId":{"type":"string","description":"The object's id in that system."}},"required":["source","externalId"],"additionalProperties":false,"description":"An id this object has in another system."},"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/jobs/external/{source}/{externalId}":{"put":{"operationId":"jobs.external.upsert","tags":["Jobs"],"summary":"Create or update a job by your id","description":"The sync endpoint. If your id is new, creates one pending job as a service of `POST /v1/jobs` does, applies `name`, `description`, `teamId`, `earliestDate`, and `completeByDate` when sent, and saves the id (`created: true`, status 201). If it exists, applies the `name`, `description`, `teamId`, `earliestDate`, and `completeByDate` that differ from the stored ones as `PATCH /v1/jobs/{id}` does and ignores the property, service, cadence, and price (`created: false`, status 200); a request that changes nothing writes nothing, and re-sending the job's current crew leaves its visits alone. `customerId` must be the mapped job's customer, or the request fails with 409. Concurrent requests for the same id run one after another, so they never create two jobs. When a price change in the app replaces a job with a new version, your id moves to the new version; an id that still names the replaced version is 409 `job_superseded`, naming the current job.\n\n**Errors specific to this endpoint:** [`external_reference_changed`](https://docs.shortcutco.com/developers/concepts/errors#external_reference_changed), [`external_reference_customer_mismatch`](https://docs.shortcutco.com/developers/concepts/errors#external_reference_customer_mismatch), [`job_superseded`](https://docs.shortcutco.com/developers/concepts/errors#job_superseded), [`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":"source","in":"path","required":true,"description":"Your name for the system the id comes from, such as `hubspot` or `mywebsite`: 1-64 lowercase letters, digits, `_`, `.`, or `-`, starting with a letter or digit.","schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{0,63}$"}},{"name":"externalId","in":"path","required":true,"description":"The object's id in that system: 1-255 characters, no spaces, slashes, or control characters.","schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[^\\p{Cc}\\s/\\\\]+$"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","description":"The customer the job is for. When the reference exists, it must be the mapped job's customer."},"propertyId":{"type":"string","format":"uuid","description":"The customer's property to service. Required when the customer has more than one active property."},"serviceId":{"type":"string","format":"uuid","description":"The catalog service to sell. Each service may appear once per request."},"cadence":{"type":"string","enum":["one_off","recurring"],"description":"`one_off` for a single visit, `recurring` for a repeating service. Snow removal jobs are created in the app."},"cadenceFrequency":{"type":"integer","minimum":1,"maximum":366,"description":"Recurring jobs only: how many visits per `cadencePeriod`, such as 1 for weekly with `per_week`."},"cadencePeriod":{"type":"string","enum":["per_week","per_month","per_year","per_day"],"description":"Recurring jobs only: the period `cadenceFrequency` counts in."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How the job is priced. Defaults to the service's price structure."},"quantity":{"type":"number","minimum":0,"maximum":100000000,"default":1,"description":"The units priced (hours, square feet, or 1 for a flat price). Must be above 0 except for `per_man_hour` jobs. Defaults to 1."},"rate":{"type":"number","minimum":0,"maximum":10000000,"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)."},"name":{"type":"string","minLength":1,"maxLength":200,"description":"A new name for the job."},"description":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"description":"A new description, or null to clear it."},"earliestDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the first day the job may be done, `YYYY-MM-DD` in the workspace's timezone, or null to clear it. Left out, it stays as it is. Every version of the job's series takes it."},"completeByDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the day the job should be done by, `YYYY-MM-DD` in the workspace's timezone, or null to clear it. Left out, it stays as it is. Can't be before the job's earliest day (the one sent, else the one it has)."},"teamId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Recurring jobs only: the crew that owns the job, or null for none. Applied when it differs from the job's crew, with the same effect on upcoming visits as `PATCH /v1/jobs/{id}`; sending the job's current crew again changes nothing and leaves pinned visits pinned. A one-time job ignores null."}},"required":["customerId","serviceId","cadence","rate"],"additionalProperties":false,"description":"One job as a service of `POST /v1/jobs` creates it, with an optional name, description, crew, and Do between window. When the reference is new the job is created; when it exists, `name`, `description`, `teamId`, `earliestDate`, and `completeByDate` that differ update the mapped job, and the property, service, cadence, and price are ignored."}}}},"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":{"created":{"type":"boolean","description":"True when this request created the job."},"job":{"$ref":"#/components/schemas/Job"}},"required":["created","job"],"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}}}},"201":{"description":"Your id was new: the job was created and your id saved (`created: true`).","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":{"created":{"type":"boolean","description":"True when this request created the job."},"job":{"$ref":"#/components/schemas/Job"}},"required":["created","job"],"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"}}}}}}
```

## List interval programs due or past due

> Chemical programs that run on an interval (every N days, such as a pest plan), in their season months, whose next visit is due within \`days\` of today or is past due: the interval, the last completed visit, the due day (that visit plus the interval), days past due and the next visit booked. A program never done is listed when nothing is booked. Most past due first; up to 200.

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"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/jobs/interval-due":{"get":{"operationId":"jobs.interval_due.list","tags":["Jobs"],"summary":"List interval programs due or past due","description":"Chemical programs that run on an interval (every N days, such as a pest plan), in their season months, whose next visit is due within `days` of today or is past due: the interval, the last completed visit, the due day (that visit plus the interval), days past due and the next visit booked. A program never done is listed when nothing is booked. Most past due first; up to 200.","parameters":[{"name":"days","in":"query","required":false,"description":"Also list accounts due within this many days of today. Defaults to 7; 0 lists only those due today or past due.","schema":{"type":"integer","minimum":0,"maximum":60,"default":7}},{"name":"customerId","in":"query","required":false,"description":"Only this customer's programs.","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":{"today":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"through":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Accounts due on or before this day are listed."},"accounts":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid"},"jobName":{"type":"string"},"customerId":{"type":"string","format":"uuid"},"customerName":{"type":"string"},"address":{"type":["string","null"]},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"intervalDays":{"type":"integer","description":"Days between visits, from the program's schedule."},"lastCompletedOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The last day a visit was completed; null when none was."},"dueOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"lastCompletedOn plus intervalDays; null when no visit was completed yet."},"daysPastDue":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Days from dueOn to today: above 0 is past due, 0 or below is due soon; null with no dueOn."},"nextBookedOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The next visit booked (scheduled or rescheduled) from today on; null when nothing is booked ahead."},"bookedByDue":{"type":"boolean","description":"True when a visit is booked on or before dueOn."}},"required":["jobId","jobName","customerId","customerName","address","serviceId","intervalDays","lastCompletedOn","dueOn","daysPastDue","nextBookedOn","bookedByDue"],"additionalProperties":false}},"counts":{"type":"object","properties":{"intervalPrograms":{"type":"integer","description":"Active interval programs looked at."},"inSeason":{"type":"integer","description":"Of those, in their season months today."},"listed":{"type":"integer","description":"Of those, due by `through` or never done with nothing booked."},"notBooked":{"type":"integer","description":"Of the listed, with no visit booked by the due day."}},"required":["intervalPrograms","inSeason","listed","notBooked"],"additionalProperties":false},"truncated":{"type":"boolean","description":"True when more than 200 accounts matched; the most past due are returned."}},"required":["today","through","accounts","counts","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 chemical program rounds

> Each chemical program round's window this season and how far along it is, by service: properties it applies to, done, scheduled (and scheduled after the window), skipped and not scheduled. Narrow to one service's round, a customer or a job to list the properties as well. Windows are the planned week of each round's planned month, as Dispatch shows them; programs on an interval have no windows and are counted apart.

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"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/jobs/program-rounds":{"get":{"operationId":"jobs.program_rounds.list","tags":["Jobs"],"summary":"List chemical program rounds","description":"Each chemical program round's window this season and how far along it is, by service: properties it applies to, done, scheduled (and scheduled after the window), skipped and not scheduled. Narrow to one service's round, a customer or a job to list the properties as well. Windows are the planned week of each round's planned month, as Dispatch shows them; programs on an interval have no windows and are counted apart.","parameters":[{"name":"serviceId","in":"query","required":false,"description":"One service's program.","schema":{"type":"string","format":"uuid"}},{"name":"round","in":"query","required":false,"description":"One round, by its number in the program.","schema":{"type":"integer","minimum":1,"maximum":52}},{"name":"customerId","in":"query","required":false,"description":"One customer's programs, with a row per property and round.","schema":{"type":"string","format":"uuid"}},{"name":"jobId","in":"query","required":false,"description":"One program (a job), with a row per round.","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":{"today":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"season":{"type":"integer","description":"The year the windows are in: this year in the company's time zone."},"rounds":{"type":"array","items":{"type":"object","properties":{"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"serviceName":{"type":"string"},"round":{"type":"integer","description":"The round's number in the program (its order plus one)."},"label":{"type":"string","description":"The round's name in the program (\"Round 3\", \"Early spring\")."},"windowStart":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"windowEnd":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"window":{"type":"string","enum":["not_open","open","closed"],"description":"Whether the window has not opened yet, is open today, or has closed."},"properties":{"type":"integer","description":"Programs the round applies to this season."},"done":{"type":"integer"},"scheduled":{"type":"integer","description":"Not done yet, with an open visit for the round."},"scheduledAfterWindow":{"type":"integer","description":"Of `scheduled`, dated after the window's end."},"skipped":{"type":"integer","description":"Not done, with only canceled or skipped visits (\"Skip this year\" included)."},"notScheduled":{"type":"integer","description":"No visit for the round this season."}},"required":["serviceId","serviceName","round","label","windowStart","windowEnd","window","properties","done","scheduled","scheduledAfterWindow","skipped","notScheduled"],"additionalProperties":false}},"properties":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid"},"customerId":{"type":"string","format":"uuid"},"customerName":{"type":"string"},"address":{"type":["string","null"]},"jobName":{"type":"string"},"round":{"type":"integer"},"label":{"type":"string"},"windowStart":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"windowEnd":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"state":{"type":"string","enum":["done","scheduled","skipped","not_scheduled"]},"visitId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The visit that did or will do the round, when there is one."},"date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"That visit's day."},"afterWindow":{"type":"boolean","description":"The visit is dated after the window's end."}},"required":["jobId","customerId","customerName","address","jobName","round","label","windowStart","windowEnd","state","visitId","date","afterWindow"],"additionalProperties":false},"description":"Per property, only when the read is narrowed to one service's round, one customer or one job; not-done first."},"propertiesTruncated":{"type":"boolean","description":"True when more than 100 property rows matched."},"notInProgram":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid"},"customerId":{"type":"string","format":"uuid"},"customerName":{"type":"string"},"jobName":{"type":"string"},"round":{"type":"integer"},"label":{"type":"string"}},"required":["jobId","customerId","customerName","jobName","round","label"],"additionalProperties":false},"description":"Rounds these customers do not buy (\"never do grub control\"): never due and not counted in `rounds`. Programs not scheduled yet are included. Only when the read is narrowed, like `properties`."},"notInProgramTruncated":{"type":"boolean","description":"True when more than 100 `notInProgram` rows matched."},"intervalPrograms":{"type":"integer","description":"Programs on an interval, with no round windows: left out."},"unreadable":{"type":"integer","description":"Programs with no readable round schedule: left out."}},"required":["today","season","rounds","properties","propertiesTruncated","notInProgram","notInProgramTruncated","intervalPrograms","unreadable"],"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 renewals due

> Jobs set to wait for the office when their service season ends (\`springBehavior\` \`requires\_renewal\`) whose back date falls within \`withinDays\` (default 60, at most 366): \`overdue\` (paused for the season, back date passed, still waiting), \`waiting\` (paused, back date ahead) and \`upcoming\` (still running; pauses for the season, then waits). Each with its customer, site, crew, season, price, cadence and last completed visit. Overdue first, then by back date; at most 500. Shortcut stores no contract end date: this wait is the renewal it keeps.

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs: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/jobs/renewals-due":{"get":{"operationId":"jobs.renewals_due.list","tags":["Jobs"],"summary":"List renewals due","description":"Jobs set to wait for the office when their service season ends (`springBehavior` `requires_renewal`) whose back date falls within `withinDays` (default 60, at most 366): `overdue` (paused for the season, back date passed, still waiting), `waiting` (paused, back date ahead) and `upcoming` (still running; pauses for the season, then waits). Each with its customer, site, crew, season, price, cadence and last completed visit. Overdue first, then by back date; at most 500. Shortcut stores no contract end date: this wait is the renewal it keeps.","parameters":[{"name":"withinDays","in":"query","required":false,"description":"How many days ahead a back date may fall (default 60).","schema":{"type":"integer","minimum":0,"maximum":366,"default":60}},{"name":"customerId","in":"query","required":false,"description":"Only this customer's jobs.","schema":{"type":"string","format":"uuid"}},{"name":"seasonId","in":"query","required":false,"description":"Only jobs following this service season.","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":{"today":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"through":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The last back date included."},"renewals":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid"},"jobName":{"type":"string"},"customerId":{"type":"string","format":"uuid"},"customerName":{"type":"string"},"address":{"type":["string","null"]},"crewName":{"type":["string","null"]},"status":{"type":"string"},"state":{"type":"string","enum":["overdue","waiting","upcoming"],"description":"`overdue`: paused for its season, the back date has passed and it still waits for the office; `waiting`: paused for its season, back date ahead; `upcoming`: still running, will pause for its season and then wait."},"seasonId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"seasonName":{"type":["string","null"]},"pauseFrom":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The first day off: the season's start, or a pause booked ahead."},"renewOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The season's back date, when the job waits for the office. Null for a season pause with no season on the job."},"priceStructure":{"type":"string"},"rate":{"type":"number"},"cadence":{"type":"string"},"cadencePeriod":{"type":["string","null"]},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}]},"lastVisitDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The last completed visit."}},"required":["jobId","jobName","customerId","customerName","address","crewName","status","state","seasonId","seasonName","pauseFrom","renewOn","priceStructure","rate","cadence","cadencePeriod","cadenceFrequency","lastVisitDate"],"additionalProperties":false},"description":"Overdue first, then by back date."},"truncated":{"type":"boolean","description":"True when more than 500 jobs wait for renewal; narrow by customer or season."}},"required":["today","through","renewals","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 recurring jobs running out of visits

> Recurring jobs (not snow, not chemical programs) whose last booked visit (scheduled or rescheduled) is within \`days\` of today, or that have nothing booked ahead, with the last booked and last completed days. \`quietBook\` is true when most recurring jobs have nothing booked ahead, as between seasons. Up to 200 jobs.

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"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/jobs/running-out":{"get":{"operationId":"jobs.running_out.list","tags":["Jobs"],"summary":"List recurring jobs running out of visits","description":"Recurring jobs (not snow, not chemical programs) whose last booked visit (scheduled or rescheduled) is within `days` of today, or that have nothing booked ahead, with the last booked and last completed days. `quietBook` is true when most recurring jobs have nothing booked ahead, as between seasons. Up to 200 jobs.","parameters":[{"name":"days","in":"query","required":false,"description":"List jobs whose last booked visit is within this many days of today. Defaults to 30.","schema":{"type":"integer","minimum":0,"maximum":365,"default":30}},{"name":"teamId","in":"query","required":false,"description":"Only jobs set to this crew.","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":{"today":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"through":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Jobs whose last booked visit is on or before this day are listed."},"quietBook":{"type":"boolean","description":"True when most recurring jobs have nothing booked ahead (between seasons): then nothing booked is normal, not a gap."},"jobs":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid"},"jobName":{"type":"string"},"customerId":{"type":"string","format":"uuid"},"customerName":{"type":"string"},"address":{"type":["string","null"]},"every":{"type":"string"},"crewId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"lastBookedOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The last day a visit is booked (scheduled or rescheduled) from today on; null when nothing is booked ahead."},"daysLeft":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Days from today to `lastBookedOn`; null when nothing is booked."},"lastCompletedOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The last day a visit was completed; null when none was."},"pauseFrom":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"A season pause booked to start on this day, which is why visits stop; null when none."}},"required":["jobId","jobName","customerId","customerName","address","every","crewId","lastBookedOn","daysLeft","lastCompletedOn","pauseFrom"],"additionalProperties":false}},"counts":{"type":"object","properties":{"recurring":{"type":"integer","description":"Recurring jobs looked at."},"nothingAhead":{"type":"integer","description":"Of those, with nothing booked from today on."},"runningOut":{"type":"integer","description":"Of those, with visits booked that end by `through`."}},"required":["recurring","nothingAhead","runningOut"],"additionalProperties":false},"truncated":{"type":"boolean","description":"True when more than 200 jobs matched; those running out soonest are returned."}},"required":["today","through","quietBook","jobs","counts","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"}}}}}}
```

## Get the snow board at a declared depth

> The Snow panel's lanes for a date (default today) at a declared accumulation (\`depth\` in inches, or \`any\`): lines due, lines below their trigger, on-call and manual lines, each with its customer, crew, trigger, depth ladder and the price a push bills at that depth, plus the lines with an open snow visit that day. Company admins who see everyone's schedule only. More than 500 lines refuses rather than returning part of the board.\
> \
> \*\*Errors specific to this endpoint:\*\* \[\`snow\_board\_office\_only\`]\(<https://docs.shortcutco.com/developers/concepts/errors#snow\\_board\\_office\\_only>), \[\`snow\_board\_too\_large\`]\(<https://docs.shortcutco.com/developers/concepts/errors#snow\\_board\\_too\\_large>). 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":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs:read","customers: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/jobs/snow-board":{"get":{"operationId":"jobs.snow_board.get","tags":["Jobs"],"summary":"Get the snow board at a declared depth","description":"The Snow panel's lanes for a date (default today) at a declared accumulation (`depth` in inches, or `any`): lines due, lines below their trigger, on-call and manual lines, each with its customer, crew, trigger, depth ladder and the price a push bills at that depth, plus the lines with an open snow visit that day. Company admins who see everyone's schedule only. More than 500 lines refuses rather than returning part of the board.\n\n**Errors specific to this endpoint:** [`snow_board_office_only`](https://docs.shortcutco.com/developers/concepts/errors#snow_board_office_only), [`snow_board_too_large`](https://docs.shortcutco.com/developers/concepts/errors#snow_board_too_large). Every endpoint can also return the [common errors](https://docs.shortcutco.com/developers/concepts/errors).","parameters":[{"name":"date","in":"query","required":false,"description":"The service date (default today), `YYYY-MM-DD` in the workspace's timezone.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"depth","in":"query","required":false,"description":"The declared accumulation in inches (to a tenth, above 0, at most 60), or `any` (the default). A declared amount, not a weather reading.","schema":{"type":"string","maxLength":8}}],"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":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"depthInches":{"type":["number","null"],"description":"The declared accumulation the lanes are sorted at; null for any accumulation."},"due":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid"},"customerId":{"type":"string","format":"uuid"},"customerName":{"type":"string"},"jobName":{"type":"string"},"address":{"type":"string"},"crewId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"crewName":{"type":["string","null"]},"triggerKind":{"type":"string","enum":["depth","any","manual","on_call"],"description":"`depth`: due at or above `triggerInches`; `any`: whenever snow work is dispatched; `manual`: never picked by depth (hauling, loader work); `on_call`: offered to the customer each storm, who accepts from a link."},"triggerInches":{"type":["number","null"],"description":"Depth lines only: the accumulation in inches that makes the line due."},"trigger":{"type":"string","description":"The trigger as the Snow panel words it."},"offerWindowHours":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"On-call lines only: how long an offer stays open."},"depthLadder":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"upToInches":{"type":["number","null"]},"rate":{"type":"number"}},"required":["upToInches","rate"],"additionalProperties":false}},{"type":"null"}],"description":"Price per push by accumulation, lowest first; the last bracket has no upper bound. Null when the line has one price per push."},"price":{"type":"string","description":"What a push bills at this depth, as the panel shows it (a ladder line at its bracket, an hourly line by its unit)."},"offerStatus":{"type":["string","null"],"description":"On-call lines with a recent offer: Waiting, Accepted, Declined with the time."}},"required":["jobId","customerId","customerName","jobName","address","crewId","crewName","triggerKind","triggerInches","trigger","offerWindowHours","depthLadder","price","offerStatus"],"additionalProperties":false},"description":"Lines due at this depth: dispatching would put them on the routes."},"belowTrigger":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid"},"customerId":{"type":"string","format":"uuid"},"customerName":{"type":"string"},"jobName":{"type":"string"},"address":{"type":"string"},"crewId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"crewName":{"type":["string","null"]},"triggerKind":{"type":"string","enum":["depth","any","manual","on_call"],"description":"`depth`: due at or above `triggerInches`; `any`: whenever snow work is dispatched; `manual`: never picked by depth (hauling, loader work); `on_call`: offered to the customer each storm, who accepts from a link."},"triggerInches":{"type":["number","null"],"description":"Depth lines only: the accumulation in inches that makes the line due."},"trigger":{"type":"string","description":"The trigger as the Snow panel words it."},"offerWindowHours":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"On-call lines only: how long an offer stays open."},"depthLadder":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"upToInches":{"type":["number","null"]},"rate":{"type":"number"}},"required":["upToInches","rate"],"additionalProperties":false}},{"type":"null"}],"description":"Price per push by accumulation, lowest first; the last bracket has no upper bound. Null when the line has one price per push."},"price":{"type":"string","description":"What a push bills at this depth, as the panel shows it (a ladder line at its bracket, an hourly line by its unit)."},"offerStatus":{"type":["string","null"],"description":"On-call lines with a recent offer: Waiting, Accepted, Declined with the time."}},"required":["jobId","customerId","customerName","jobName","address","crewId","crewName","triggerKind","triggerInches","trigger","offerWindowHours","depthLadder","price","offerStatus"],"additionalProperties":false},"description":"Depth lines whose trigger is above this depth."},"onCall":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid"},"customerId":{"type":"string","format":"uuid"},"customerName":{"type":"string"},"jobName":{"type":"string"},"address":{"type":"string"},"crewId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"crewName":{"type":["string","null"]},"triggerKind":{"type":"string","enum":["depth","any","manual","on_call"],"description":"`depth`: due at or above `triggerInches`; `any`: whenever snow work is dispatched; `manual`: never picked by depth (hauling, loader work); `on_call`: offered to the customer each storm, who accepts from a link."},"triggerInches":{"type":["number","null"],"description":"Depth lines only: the accumulation in inches that makes the line due."},"trigger":{"type":"string","description":"The trigger as the Snow panel words it."},"offerWindowHours":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"On-call lines only: how long an offer stays open."},"depthLadder":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"upToInches":{"type":["number","null"]},"rate":{"type":"number"}},"required":["upToInches","rate"],"additionalProperties":false}},{"type":"null"}],"description":"Price per push by accumulation, lowest first; the last bracket has no upper bound. Null when the line has one price per push."},"price":{"type":"string","description":"What a push bills at this depth, as the panel shows it (a ladder line at its bracket, an hourly line by its unit)."},"offerStatus":{"type":["string","null"],"description":"On-call lines with a recent offer: Waiting, Accepted, Declined with the time."}},"required":["jobId","customerId","customerName","jobName","address","crewId","crewName","triggerKind","triggerInches","trigger","offerWindowHours","depthLadder","price","offerStatus"],"additionalProperties":false},"description":"On-call lines: offered to the customer, never dispatched by depth."},"manual":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid"},"customerId":{"type":"string","format":"uuid"},"customerName":{"type":"string"},"jobName":{"type":"string"},"address":{"type":"string"},"crewId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"crewName":{"type":["string","null"]},"triggerKind":{"type":"string","enum":["depth","any","manual","on_call"],"description":"`depth`: due at or above `triggerInches`; `any`: whenever snow work is dispatched; `manual`: never picked by depth (hauling, loader work); `on_call`: offered to the customer each storm, who accepts from a link."},"triggerInches":{"type":["number","null"],"description":"Depth lines only: the accumulation in inches that makes the line due."},"trigger":{"type":"string","description":"The trigger as the Snow panel words it."},"offerWindowHours":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"On-call lines only: how long an offer stays open."},"depthLadder":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"upToInches":{"type":["number","null"]},"rate":{"type":"number"}},"required":["upToInches","rate"],"additionalProperties":false}},{"type":"null"}],"description":"Price per push by accumulation, lowest first; the last bracket has no upper bound. Null when the line has one price per push."},"price":{"type":"string","description":"What a push bills at this depth, as the panel shows it (a ladder line at its bracket, an hourly line by its unit)."},"offerStatus":{"type":["string","null"],"description":"On-call lines with a recent offer: Waiting, Accepted, Declined with the time."}},"required":["jobId","customerId","customerName","jobName","address","crewId","crewName","triggerKind","triggerInches","trigger","offerWindowHours","depthLadder","price","offerStatus"],"additionalProperties":false},"description":"Manual lines: never picked by depth."},"alreadyDispatched":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid"},"customerName":{"type":"string"},"jobName":{"type":"string"},"address":{"type":"string"},"crewId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"crewName":{"type":["string","null"]}},"required":["jobId","customerName","jobName","address","crewId","crewName"],"additionalProperties":false},"description":"Lines with an open snow visit on the date: not offered or dispatched again until it is done."},"offers":{"type":["string","null"],"description":"The on-call lane's offer summary while offers are out (e.g. 4 waiting, closes 7:00am)."},"totalLines":{"type":"integer"}},"required":["date","depthInches","due","belowTrigger","onCall","manual","alreadyDispatched","offers","totalLines"],"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 dispatch decisions

> Each snow dispatch decision for service dates between \`from\` and \`to\` (default the last 7 days; at most 92 days), newest first: its kind (a dispatch, or an on-call offer sent, accepted, declined, expired, held or dispatched from hold), the declared depth, who made it, the lines it activated, the lines below their trigger with the trigger they had then, and how many visits it created. Company admins who see everyone's schedule only. At most 500 decisions.\
> \
> \*\*Errors specific to this endpoint:\*\* \[\`snow\_board\_office\_only\`]\(<https://docs.shortcutco.com/developers/concepts/errors#snow\\_board\\_office\\_only>). 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":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs: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/jobs/snow-dispatch-log":{"get":{"operationId":"jobs.snow_dispatch_log.list","tags":["Jobs"],"summary":"List snow dispatch decisions","description":"Each snow dispatch decision for service dates between `from` and `to` (default the last 7 days; at most 92 days), newest first: its kind (a dispatch, or an on-call offer sent, accepted, declined, expired, held or dispatched from hold), the declared depth, who made it, the lines it activated, the lines below their trigger with the trigger they had then, and how many visits it created. Company admins who see everyone's schedule only. At most 500 decisions.\n\n**Errors specific to this endpoint:** [`snow_board_office_only`](https://docs.shortcutco.com/developers/concepts/errors#snow_board_office_only). Every endpoint can also return the [common errors](https://docs.shortcutco.com/developers/concepts/errors).","parameters":[{"name":"from","in":"query","required":false,"description":"The first service date (default 7 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 service date (default today), `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}$"},"entries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The service date the decision was for."},"at":{"type":"string","format":"date-time"},"kind":{"type":"string","enum":["dispatch","offer_sent","offer_accepted","offer_declined","offer_expired","offer_held","offer_dispatched_from_hold"],"description":"`dispatch`: the office dispatched lines at a depth; the `offer_*` kinds follow an on-call offer from send to answer, hold and dispatch."},"depthInches":{"type":["number","null"],"description":"The declared accumulation; null for any accumulation."},"by":{"type":["string","null"],"description":"Who made the decision; null for the customer's own answer or the system."},"activated":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid"},"jobName":{"type":["string","null"]},"customerName":{"type":["string","null"]},"address":{"type":["string","null"]}},"required":["jobId","jobName","customerName","address"],"additionalProperties":false},"description":"The lines the decision put on the routes, offered, or answered."},"belowTrigger":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid"},"jobName":{"type":["string","null"]},"customerName":{"type":["string","null"]},"address":{"type":["string","null"]},"triggerKind":{"anyOf":[{"type":"string","enum":["depth","any","manual","on_call"]},{"type":"null"}]},"triggerInches":{"type":["number","null"]}},"required":["jobId","jobName","customerName","address","triggerKind","triggerInches"],"additionalProperties":false},"description":"Lines left out as below their trigger, with the trigger they had then."},"visitsCreated":{"type":"integer"}},"required":["id","date","at","kind","depthInches","by","activated","belowTrigger","visitsCreated"],"additionalProperties":false}},"truncated":{"type":"boolean","description":"True when more than 500 decisions fall in the window; only the newest were read."}},"required":["from","to","entries","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 snow lines and their terms

> Every snow line (an on-demand job with a snow trigger): its customer, site and crew, trigger kind and inches, offer window, depth ladder, price structure and rate, and the snow visits completed in the last 365 days. \`status\` \`active\` (default) is the lines on the Snow panel; \`paused\` and \`all\` add the others. At most 500 lines; \`truncated\` says when more match.

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs: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/jobs/snow-lines":{"get":{"operationId":"jobs.snow_lines.list","tags":["Jobs"],"summary":"List snow lines and their terms","description":"Every snow line (an on-demand job with a snow trigger): its customer, site and crew, trigger kind and inches, offer window, depth ladder, price structure and rate, and the snow visits completed in the last 365 days. `status` `active` (default) is the lines on the Snow panel; `paused` and `all` add the others. At most 500 lines; `truncated` says when more match.","parameters":[{"name":"customerId","in":"query","required":false,"description":"Only this customer's lines.","schema":{"type":"string","format":"uuid"}},{"name":"propertyId","in":"query","required":false,"description":"Only the lines at this property.","schema":{"type":"string","format":"uuid"}},{"name":"teamId","in":"query","required":false,"description":"Only the lines this crew holds.","schema":{"type":"string","format":"uuid"}},{"name":"triggerKind","in":"query","required":false,"description":"Only lines with this trigger.","schema":{"type":"string","enum":["depth","any","manual","on_call"]}},{"name":"status","in":"query","required":false,"description":"`active` (default): on the Snow panel; `paused`; `all`: scheduled, paused and unscheduled.","schema":{"type":"string","enum":["active","paused","all"],"default":"active"}}],"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":{"lines":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid"},"jobName":{"type":"string"},"status":{"type":"string","description":"The job's status: `scheduled` lines are on the Snow panel; paused and unscheduled ones are not."},"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"}]},"crewName":{"type":["string","null"]},"triggerKind":{"type":"string","enum":["depth","any","manual","on_call"],"description":"`depth`: due at or above `triggerInches`; `any`: whenever snow work is dispatched; `manual`: never picked by depth (hauling, loader work); `on_call`: offered to the customer each storm, who accepts from a link."},"triggerInches":{"type":["number","null"],"description":"Depth lines only: the accumulation in inches that makes the line due."},"trigger":{"type":"string","description":"The trigger as the Snow panel words it."},"offerWindowHours":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"On-call lines only: how long an offer stays open."},"depthLadder":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"upToInches":{"type":["number","null"]},"rate":{"type":"number"}},"required":["upToInches","rate"],"additionalProperties":false}},{"type":"null"}],"description":"Price per push by accumulation, lowest first; the last bracket has no upper bound. Null when the line has one price per push."},"priceStructure":{"type":"string","description":"`flat` per push, `per_hour`, `per_man_hour` or `per_sqft`."},"rate":{"type":"number","description":"The line's rate (per push when flat; the ladder, when there is one, prices each push by depth instead)."},"quantity":{"type":["number","null"],"description":"Per-square-foot lines: the area priced."},"pushesLastYear":{"type":"integer","description":"Snow visits completed in the 365 days to today."},"lastPushDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]}},"required":["jobId","jobName","status","customerId","customerName","propertyId","address","crewId","crewName","triggerKind","triggerInches","trigger","offerWindowHours","depthLadder","priceStructure","rate","quantity","pushesLastYear","lastPushDate"],"additionalProperties":false}},"truncated":{"type":"boolean","description":"True when more than 500 lines match; narrow by customer, property or crew."}},"required":["lines","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 work waiting to be scheduled

> Jobs waiting to be scheduled, as the Jobs screen's needs-scheduling count has them (jobs still held in import review are left out), longest waiting first: how long since the estimate was approved (or the job was made), the price and how often it repeats, and its Do between window (\`earliestDate\`, \`completeByDate\`) with \`doBetween\` saying whether today is before it, inside it, or past it. An \`overdue\` job needs a day first; schedule each job on a day inside its window. Also the paused jobs, with the day each resumes. Up to 200 of each.

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"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/jobs/unscheduled":{"get":{"operationId":"jobs.unscheduled.list","tags":["Jobs"],"summary":"List work waiting to be scheduled","description":"Jobs waiting to be scheduled, as the Jobs screen's needs-scheduling count has them (jobs still held in import review are left out), longest waiting first: how long since the estimate was approved (or the job was made), the price and how often it repeats, and its Do between window (`earliestDate`, `completeByDate`) with `doBetween` saying whether today is before it, inside it, or past it. An `overdue` job needs a day first; schedule each job on a day inside its window. Also the paused jobs, with the day each resumes. Up to 200 of each.","parameters":[{"name":"include","in":"query","required":false,"description":"`waiting`: only jobs waiting to be scheduled; `paused`: only paused jobs. Defaults to both.","schema":{"type":"string","enum":["all","waiting","paused"],"default":"all"}}],"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":{"today":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"waiting":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid"},"jobName":{"type":"string"},"customerId":{"type":"string","format":"uuid"},"customerName":{"type":"string"},"address":{"type":["string","null"]},"estimateId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The approved estimate the job came from; null for a job made directly."},"since":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The day the estimate was approved, else the day the job was made."},"sinceKind":{"type":"string","enum":["estimate_approved","job_created"],"description":"Which day `since` is."},"waitingDays":{"type":"integer","description":"Days from `since` to today."},"every":{"type":"string","description":"How often it repeats: `every week`, `one time`, `on demand` …"},"total":{"type":"number","description":"The job's price per visit, in dollars, as the job holds it."},"crewId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The crew the job is set to, when one is."},"earliestDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the first day the job may be done; null when any day will do. Never start it before this day."},"completeByDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Do between: the day the job should be done by; null when it has no deadline. Start it on or before this day."},"doBetween":{"anyOf":[{"type":"string","enum":["not_yet","due_now","overdue"]},{"type":"null"}],"description":"Where `today` sits in the Do between window: `not_yet` (before `earliestDate`), `due_now` (inside it), `overdue` (past `completeByDate`: needs a day first). Null when the job has no window."}},"required":["jobId","jobName","customerId","customerName","address","estimateId","since","sinceKind","waitingDays","every","total","crewId","earliestDate","completeByDate","doBetween"],"additionalProperties":false}},"paused":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid"},"jobName":{"type":"string"},"customerId":{"type":"string","format":"uuid"},"customerName":{"type":"string"},"pauseKind":{"anyOf":[{"type":"string","enum":["manual","season","customer_inactive"]},{"type":"null"}],"description":"Why it is paused: by hand, for the season, or with the customer inactive; null for an older manual pause."},"resumesOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The day it resumes, when one is set; null when it waits for a person."}},"required":["jobId","jobName","customerId","customerName","pauseKind","resumesOn"],"additionalProperties":false}},"counts":{"type":"object","properties":{"waiting":{"type":"integer"},"paused":{"type":"integer"}},"required":["waiting","paused"],"additionalProperties":false},"truncated":{"type":"boolean","description":"True when a list had more than 200 rows; the longest waiting (or soonest to resume) are returned."}},"required":["today","waiting","paused","counts","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 service seasons

> The company's service seasons: each named window a service is off every year, its start and back dates (month and day, and the next ones), whether today is inside it, how many scheduled or paused jobs follow it, and the services whose new jobs follow it by default. Inactive seasons with \`includeInactive\`.

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Jobs","description":"A job is work sold to a customer at a property, made from a catalog service. Scheduling a job puts its visits on the schedule.\n\nFields: [The job object](https://docs.shortcutco.com/developers/reference/objects/job)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["jobs: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/service-seasons":{"get":{"operationId":"service_seasons.list","tags":["Jobs"],"summary":"List service seasons","description":"The company's service seasons: each named window a service is off every year, its start and back dates (month and day, and the next ones), whether today is inside it, how many scheduled or paused jobs follow it, and the services whose new jobs follow it by default. Inactive seasons with `includeInactive`.","parameters":[{"name":"includeInactive","in":"query","required":false,"description":"Also list seasons switched off in Settings.","schema":{"type":"string","enum":["true","false"],"default":"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":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"active":{"type":"boolean"},"window":{"type":"string","description":"The window in words, e.g. Off from Nov 15, back Mar 15."},"startMonth":{"type":"integer"},"startDay":{"type":"integer"},"resumeMonth":{"type":"integer"},"resumeDay":{"type":"integer"},"inSeasonNow":{"type":"boolean","description":"True when today is inside the window (the service is off)."},"nextStart":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The first day off of the current or next window."},"nextResume":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The first day back of the current or next window."},"jobCount":{"type":"integer","description":"Scheduled and paused jobs following the season."},"defaultForServices":{"type":"array","items":{"type":"string"},"description":"Catalog services whose new jobs follow this season."}},"required":["id","name","active","window","startMonth","startDay","resumeMonth","resumeDay","inSeasonNow","nextStart","nextResume","jobCount","defaultForServices"],"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"}}}}}}
```
