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

# Estimates

Prices offered to a lead or customer.

An estimate offers lines of catalog services, each with a cadence and optional price options and products. Approving one creates its jobs.

Fields: [The estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate) · [The estimate reminder object](https://docs.shortcutco.com/developers/reference/objects/estimate-reminder).

## List estimates

> Estimates newest first, or by last change when \`updatedSince\` is set, without their lines; get one estimate for its lines. Each carries \`engagement\`: how many times the customer opened its link, first and last open, days since, and the reminders Shortcut can tie to it. \`engagement=sent\_not\_viewed\` or \`viewed\_then\_quiet\` lists the pending estimates that were never opened or went quiet after an open. Opens of the estimate email itself are not stored.\
> \
> Returns a list of \[estimate objects]\(<https://docs.shortcutco.com/developers/reference/objects/estimate).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`already\_exists\`]\(<https://docs.shortcutco.com/developers/concepts/errors#already\\_exists>), \[\`service\_not\_supported\`]\(<https://docs.shortcutco.com/developers/concepts/errors#service\\_not\\_supported>). 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":"Estimates","description":"An estimate offers lines of catalog services, each with a cadence and optional price options and products. Approving one creates its jobs.\n\nFields: [The estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate) · [The estimate reminder object](https://docs.shortcutco.com/developers/reference/objects/estimate-reminder)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["estimates: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":{"EstimateWithEngagement":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The estimate's id."},"object":{"type":"string","const":"estimate","description":"Always `estimate`."},"status":{"type":"string","enum":["draft","pending","approved","declined","voided","expired"],"description":"`draft` until sent; `pending` once sent and waiting for the customer; then `approved`, `declined`, `voided` by the office, or `expired`."},"customerId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The customer the estimate is for, or null."},"leadId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The lead the estimate answers, or null."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property the work is at, or null."},"propertyLabel":{"type":["string","null"],"description":"The property's label when the estimate was written, or null."},"propertyAddress":{"type":["string","null"],"description":"The property's address when the estimate was written, or null."},"message":{"type":["string","null"],"description":"The message to the customer sent with the estimate, or null."},"total":{"type":["number","null"],"description":"The estimate's total in US dollars as the app shows it, or null before it is priced."},"sentTotals":{"anyOf":[{"type":"object","properties":{"subtotal":{"type":"number","description":"The total before sales tax, in US dollars."},"taxRatePct":{"type":["number","null"],"description":"The sales-tax rate the estimate showed, as a percent (8.25 = 8.25%), or null when it showed no tax."},"tax":{"type":"number","description":"The sales tax in US dollars; 0 when `taxRatePct` is null."},"total":{"type":"number","description":"`subtotal` plus `tax`: the total the customer saw."}},"required":["subtotal","taxRatePct","tax","total"],"additionalProperties":false},{"type":"null"}],"description":"The Subtotal, Sales tax and Total the customer saw when the estimate was last sent, before any choice they made on it; null for a draft or an estimate sent before these were recorded. A bounded recurring line counts every visit, an unbounded one a single visit."},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was last sent, ISO 8601 in UTC, or null."},"sentOutsideShortcut":{"type":"boolean","description":"True when your system delivered the estimate and told Shortcut it was sent (`POST /v1/estimates/{id}/mark-sent`): Shortcut sent the customer nothing and sends no reminders or automation messages about it while it is pending."},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate stops being approvable, ISO 8601 in UTC, or null."},"expiredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate expired, ISO 8601 in UTC, or null."},"approvedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was approved, ISO 8601 in UTC, or null."},"declinedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the customer declined it, ISO 8601 in UTC, or null."},"declineReason":{"type":["string","null"],"description":"What the customer said when declining, or null."},"approvalUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"description":"The customer's estimate page (`/p/{token}`), where they approve or decline. Whoever holds it can approve the estimate, so it is returned only to a token with `estimates:write`, and only once the estimate is sent; null otherwise. Opening it records a customer view."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this estimate has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the estimate was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the estimate last changed, ISO 8601 in UTC."},"engagement":{"$ref":"#/components/schemas/EstimateEngagement"}},"required":["id","object","status","customerId","leadId","propertyId","propertyLabel","propertyAddress","message","total","sentTotals","sentAt","sentOutsideShortcut","expiresAt","expiredAt","approvedAt","declinedAt","declineReason","approvalUrl","externalReferences","createdAt","updatedAt","engagement"],"additionalProperties":false,"description":"An estimate, with its link's opens and the reminders sent."},"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."},"EstimateEngagement":{"type":"object","properties":{"views":{"type":"integer","minimum":0,"description":"How many times the estimate's link was opened."},"firstViewedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"The first time the link was opened, ISO 8601 in UTC, or null."},"lastViewedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"The last time the link was opened, ISO 8601 in UTC, or null."},"daysSinceLastView":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Whole days since the last open, or null when never opened."},"daysSinceSent":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Whole days since the estimate was last sent, or null for a draft."},"reminders":{"type":"object","properties":{"emails":{"type":"integer","minimum":0,"description":"Reminder emails staff sent (the Remind button or the API) that the mailbox accepted."},"texts":{"type":"integer","minimum":0,"description":"Reminder texts staff sent that Messaging recorded as sent."},"lastAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"The latest of those reminders, ISO 8601 in UTC, or null."}},"required":["emails","texts","lastAt"],"additionalProperties":false,"description":"Reminders staff sent, each counted from its own record. One reminder by email and text counts in both. A floor: zero does not prove nobody was reminded."},"automated":{"type":"object","properties":{"sent":{"type":"integer","minimum":0,"description":"Emails and texts an automation sent for this estimate, its delivery of the estimate included."},"lastAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"The latest of them, ISO 8601 in UTC, or null."}},"required":["sent","lastAt"],"additionalProperties":false,"description":"What automations sent for this estimate. A floor: an automation run about something else is not counted."}},"required":["views","firstViewedAt","lastViewedAt","daysSinceLastView","daysSinceSent","reminders","automated"],"additionalProperties":false,"description":"What the customer did with the estimate's link, and what was sent to remind them. Opens of the estimate email itself are not stored; `views` counts opens of the link."},"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/estimates":{"get":{"operationId":"estimates.list","tags":["Estimates"],"summary":"List estimates","description":"Estimates newest first, or by last change when `updatedSince` is set, without their lines; get one estimate for its lines. Each carries `engagement`: how many times the customer opened its link, first and last open, days since, and the reminders Shortcut can tie to it. `engagement=sent_not_viewed` or `viewed_then_quiet` lists the pending estimates that were never opened or went quiet after an open. Opens of the estimate email itself are not stored.\n\nReturns a list of [estimate objects](https://docs.shortcutco.com/developers/reference/objects/estimate).\n\n**Errors specific to this endpoint:** [`already_exists`](https://docs.shortcutco.com/developers/concepts/errors#already_exists), [`service_not_supported`](https://docs.shortcutco.com/developers/concepts/errors#service_not_supported). 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":"status","in":"query","required":false,"description":"Only estimates with this status.","schema":{"type":"string","enum":["draft","pending","approved","declined","voided","expired"]}},{"name":"customerId","in":"query","required":false,"description":"Only this customer's estimates.","schema":{"type":"string","format":"uuid"}},{"name":"leadId","in":"query","required":false,"description":"Only estimates for this lead.","schema":{"type":"string","format":"uuid"}},{"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"}},{"name":"engagement","in":"query","required":false,"description":"Pending: never opened, or opened then quiet.","schema":{"type":"string","enum":["sent_not_viewed","viewed_then_quiet"]}},{"name":"quietDays","in":"query","required":false,"description":"Days quiet since the last open (default 7), or since sent.","schema":{"type":"integer","minimum":1,"maximum":365}},{"name":"externalSource","in":"query","required":false,"description":"With externalId: your id's system.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"externalId","in":"query","required":false,"description":"With externalSource: your id.","schema":{"type":"string","minLength":1,"maxLength":255}}],"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/EstimateWithEngagement"}},"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 an estimate

> Creates a draft estimate for a lead or an existing customer (send \`leadId\` or \`customerId\`), as New estimate does in the app. Lines reference catalog services by id; the app takes each line's name and price structure from the catalog and computes subtotals and the total. A line with \`name\` instead of \`serviceId\` is a custom line (a fee or add-on not in your catalog, priced by its \`rate\`), as a line that is only on this estimate in the app. \`expiresAt\` sets when it stops being approvable (default: 30 days after it is sent). \`externalReference\` saves your id for the estimate in the same request; a duplicate is 409 \`already\_exists\` and nothing is created. A snow service's line is \`on\_demand\`: priced per push, with the service's snow terms (its trigger) unless the line sends \`snow\`. Unit costs come from the catalog and are never accepted or returned. If the lead's email belongs to an existing customer, the estimate links to them, which needs \`customers:write\`. The estimate is not sent until you send it; workspace automations on new estimates may react if the token has \`automations:trigger\`. Send an \`Idempotency-Key\` to retry safely.\
> \
> Returns \[the estimate object]\(<https://docs.shortcutco.com/developers/reference/objects/estimate).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`already\_exists\`]\(<https://docs.shortcutco.com/developers/concepts/errors#already\\_exists>), \[\`service\_not\_supported\`]\(<https://docs.shortcutco.com/developers/concepts/errors#service\\_not\\_supported>). 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":"Estimates","description":"An estimate offers lines of catalog services, each with a cadence and optional price options and products. Approving one creates its jobs.\n\nFields: [The estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate) · [The estimate reminder object](https://docs.shortcutco.com/developers/reference/objects/estimate-reminder)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["estimates: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":{"EstimateWithLines":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The estimate's id."},"object":{"type":"string","const":"estimate","description":"Always `estimate`."},"status":{"type":"string","enum":["draft","pending","approved","declined","voided","expired"],"description":"`draft` until sent; `pending` once sent and waiting for the customer; then `approved`, `declined`, `voided` by the office, or `expired`."},"customerId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The customer the estimate is for, or null."},"leadId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The lead the estimate answers, or null."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property the work is at, or null."},"propertyLabel":{"type":["string","null"],"description":"The property's label when the estimate was written, or null."},"propertyAddress":{"type":["string","null"],"description":"The property's address when the estimate was written, or null."},"message":{"type":["string","null"],"description":"The message to the customer sent with the estimate, or null."},"total":{"type":["number","null"],"description":"The estimate's total in US dollars as the app shows it, or null before it is priced."},"sentTotals":{"anyOf":[{"type":"object","properties":{"subtotal":{"type":"number","description":"The total before sales tax, in US dollars."},"taxRatePct":{"type":["number","null"],"description":"The sales-tax rate the estimate showed, as a percent (8.25 = 8.25%), or null when it showed no tax."},"tax":{"type":"number","description":"The sales tax in US dollars; 0 when `taxRatePct` is null."},"total":{"type":"number","description":"`subtotal` plus `tax`: the total the customer saw."}},"required":["subtotal","taxRatePct","tax","total"],"additionalProperties":false},{"type":"null"}],"description":"The Subtotal, Sales tax and Total the customer saw when the estimate was last sent, before any choice they made on it; null for a draft or an estimate sent before these were recorded. A bounded recurring line counts every visit, an unbounded one a single visit."},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was last sent, ISO 8601 in UTC, or null."},"sentOutsideShortcut":{"type":"boolean","description":"True when your system delivered the estimate and told Shortcut it was sent (`POST /v1/estimates/{id}/mark-sent`): Shortcut sent the customer nothing and sends no reminders or automation messages about it while it is pending."},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate stops being approvable, ISO 8601 in UTC, or null."},"expiredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate expired, ISO 8601 in UTC, or null."},"approvedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was approved, ISO 8601 in UTC, or null."},"declinedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the customer declined it, ISO 8601 in UTC, or null."},"declineReason":{"type":["string","null"],"description":"What the customer said when declining, or null."},"approvalUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"description":"The customer's estimate page (`/p/{token}`), where they approve or decline. Whoever holds it can approve the estimate, so it is returned only to a token with `estimates:write`, and only once the estimate is sent; null otherwise. Opening it records a customer view."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this estimate has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the estimate was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the estimate last changed, ISO 8601 in UTC."},"lines":{"type":"array","items":{"$ref":"#/components/schemas/EstimateLine"},"description":"The estimate's lines, in order."},"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."},"crewNote":{"type":["string","null"],"description":"The estimator's note for the crew. Never shown to the customer; copied onto the jobs approval creates."}},"required":["id","object","status","customerId","leadId","propertyId","propertyLabel","propertyAddress","message","total","sentTotals","sentAt","sentOutsideShortcut","expiresAt","expiredAt","approvedAt","declinedAt","declineReason","approvalUrl","externalReferences","createdAt","updatedAt","lines","sqftRateUnit","crewNote"],"additionalProperties":false,"description":"An estimate with its lines."},"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."},"EstimateLine":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The line's id."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the line was made from, or null for a custom line."},"name":{"type":"string","description":"The line's name."},"description":{"type":["string","null"],"description":"The line's description, or null."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged: per hour, per square foot, flat, or per crew member-hour."},"rate":{"type":"number","description":"The price in US dollars, per `priceStructure`. 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."},"quantity":{"type":["number","null"],"description":"Hours, square feet, or similar that `rate` multiplies, or null."},"subtotal":{"type":"number","description":"The line's price per visit in US dollars."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`recurring`, `one_off`, or `on_demand` (snow work that waits for a storm)."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"With `cadencePeriod`, how many visits per period, or null."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"The period `cadenceFrequency` counts in, or null."},"choiceGroupId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Lines sharing this id are alternatives the customer chooses between, or null."},"isOptional":{"type":"boolean","description":"Whether the customer may leave the line out."},"isRemovedByClient":{"type":"boolean","description":"Whether the customer left the line out when approving."},"selectedOptionId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The option the customer chose, or null."},"sortOrder":{"type":"integer","description":"Position on the estimate, ascending."},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The option's id."},"name":{"type":"string","description":"The option's name."},"rate":{"type":"number","description":"The option's price in US dollars, per `priceStructure`. 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."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"How often the option's work happens."}},"required":["id","name","rate","rateLabel","priceStructure","cadence"],"additionalProperties":false},"description":"Price options the customer can pick between."},"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The product line's id."},"productId":{"type":"string","format":"uuid","description":"The product from the catalog."},"name":{"type":"string","description":"The product's name on the estimate."},"description":{"type":["string","null"],"description":"The product's description, or null."},"unitLabel":{"type":"string","description":"The unit the quantity counts, such as `bag`."},"quantity":{"type":"number","description":"How many units."},"unitPrice":{"type":"number","description":"The customer's price per unit in US dollars."},"taxable":{"type":"boolean","description":"Whether sales tax applies."},"display":{"type":"string","enum":["itemized","included"],"description":"`itemized` shows the product as its own line to the customer; `included` folds it into the service's price."}},"required":["id","productId","name","description","unitLabel","quantity","unitPrice","taxable","display"],"additionalProperties":false},"description":"Products sold with the line."}},"required":["id","serviceId","name","description","priceStructure","rate","rateLabel","quantity","subtotal","cadence","cadenceFrequency","cadencePeriod","choiceGroupId","isOptional","isRemovedByClient","selectedOptionId","sortOrder","options","products"],"additionalProperties":false,"description":"A line of an estimate."},"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/estimates":{"post":{"operationId":"estimates.create","tags":["Estimates"],"summary":"Create an estimate","description":"Creates a draft estimate for a lead or an existing customer (send `leadId` or `customerId`), as New estimate does in the app. Lines reference catalog services by id; the app takes each line's name and price structure from the catalog and computes subtotals and the total. A line with `name` instead of `serviceId` is a custom line (a fee or add-on not in your catalog, priced by its `rate`), as a line that is only on this estimate in the app. `expiresAt` sets when it stops being approvable (default: 30 days after it is sent). `externalReference` saves your id for the estimate in the same request; a duplicate is 409 `already_exists` and nothing is created. A snow service's line is `on_demand`: priced per push, with the service's snow terms (its trigger) unless the line sends `snow`. Unit costs come from the catalog and are never accepted or returned. If the lead's email belongs to an existing customer, the estimate links to them, which needs `customers:write`. The estimate is not sent until you send it; workspace automations on new estimates may react if the token has `automations:trigger`. Send an `Idempotency-Key` to retry safely.\n\nReturns [the estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate).\n\n**Errors specific to this endpoint:** [`already_exists`](https://docs.shortcutco.com/developers/concepts/errors#already_exists), [`service_not_supported`](https://docs.shortcutco.com/developers/concepts/errors#service_not_supported). 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":{"leadId":{"type":"string","format":"uuid","description":"The lead the estimate answers. Required unless `customerId` is sent; send one, not both. Its customer account and property are used; if the lead's email belongs to an existing customer it is linked to them, which needs `customers:write`."},"customerId":{"type":"string","format":"uuid","description":"An existing customer to write the estimate for, instead of `leadId`. The estimate attaches to the customer's lead record, the one New estimate on their profile in the app uses."},"propertyId":{"type":"string","format":"uuid","description":"One of the customer's properties. Defaults to the lead's property."},"message":{"type":"string","maxLength":4000,"description":"A message to the customer, sent with the estimate."},"crewNote":{"type":"string","maxLength":4000,"description":"A note for the crew, never shown to the customer; approval copies it onto the jobs it creates."},"lines":{"type":"array","items":{"type":"object","properties":{"serviceId":{"type":"string","format":"uuid","description":"The catalog service the line sells; its name and price structure come from the catalog. Send `serviceId` or `name`, not both."},"name":{"type":"string","minLength":1,"maxLength":140,"description":"A custom line's name, for a fee or add-on that is not in your catalog (the app's line that is \"only on this estimate\"). Send `name` or `serviceId`, not both. A custom line needs `rate`, is `one_off` or `recurring`, and cannot be one of a choice of lines."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"A custom line's price structure: how `rate` is charged. Defaults to `flat`. A catalog line takes its service's."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`recurring` for repeat work, `one_off` for a single visit, `on_demand` for a snow service's line (each push waits for its trigger)."},"cadenceFrequency":{"type":"integer","minimum":1,"maximum":31,"description":"For recurring lines, visits per `cadencePeriod`, such as `1` with `per_week`."},"cadencePeriod":{"type":"string","enum":["per_day","per_week","per_month","per_year"],"description":"For recurring lines, the period `cadenceFrequency` counts in."},"rate":{"type":"number","minimum":0,"maximum":1000000,"description":"The price in US dollars, per the service's price structure; per push on a snow line. Defaults to the service's rate. 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)."},"quantity":{"type":"number","minimum":0,"maximum":100000000,"description":"What `rate` multiplies: square feet for per-square-foot services, hours for hourly ones."},"snow":{"type":"object","properties":{"triggerKind":{"type":"string","enum":["depth","any","manual","on_call"],"description":"When a push is due: `depth` at `triggerInches`, `any` accumulation, `manual`, or `on_call` (offered each time)."},"triggerInches":{"type":["number","null"],"description":"Inches of snow that make a `depth` line due."},"offerWindowHours":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Hours an `on_call` offer stays open."},"depthLadder":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"upTo":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"The bracket's top in whole inches; null on the last."},"rate":{"type":"number","minimum":0,"description":"The price per push in this bracket, in US dollars."}},"required":["upTo","rate"],"additionalProperties":false}},{"type":"null"}],"description":"Optional price per push by accumulation, only with a `flat` price."}},"required":["triggerKind"],"additionalProperties":false,"description":"Snow terms for an `on_demand` line. Defaults to the snow service's own terms."},"description":{"type":"string","maxLength":2000,"description":"Shown under the line. Defaults to the service's description."},"isOptional":{"type":"boolean","description":"Whether the customer may leave the line out."},"choiceGroupId":{"type":"string","format":"uuid","description":"Give lines the same new UUID to offer them as alternatives; the customer picks one, the first by default."},"options":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":140,"description":"The option's name, such as `Biweekly`."},"rate":{"type":"number","minimum":0,"maximum":1000000,"description":"The option's price in US dollars, per `priceStructure`. 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)."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged."},"cadence":{"type":"string","enum":["one_off","recurring"],"description":"How often the option's work happens."}},"required":["name","rate","priceStructure","cadence"],"additionalProperties":false},"maxItems":10,"description":"Price options the customer can pick between."},"products":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","format":"uuid","description":"A product from the catalog."},"quantity":{"type":"number","minimum":0,"maximum":1000000,"description":"How many units."},"unitPrice":{"type":"number","minimum":0,"maximum":1000000,"description":"The customer's price per unit in US dollars. Defaults to the product's price."},"taxable":{"type":"boolean","description":"Whether sales tax applies. Defaults to the product's setting."},"display":{"type":"string","enum":["itemized","included"],"description":"`itemized` shows the product as its own line; `included` folds it into the service's price."},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"description":"Overrides the product's description."}},"required":["productId","quantity"],"additionalProperties":false},"maxItems":100,"description":"Products sold with the line."}},"required":["cadence"],"additionalProperties":false},"maxItems":100,"default":[],"description":"The estimate's lines, in order."},"expiresAt":{"type":"string","format":"date-time","description":"When the estimate stops being approvable, ISO 8601. Must be in the future. Without it, an estimate expires 30 days after it is sent."},"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 this object. It is saved with the object in the same request; if another object already has it, nothing is created and the response is 409 `already_exists`."}},"additionalProperties":false,"description":"A new draft estimate."}}}},"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":{"$ref":"#/components/schemas/EstimateWithLines"},"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 an estimate

> One estimate with its lines, their price options, and the products sold with them, and \`engagement\`: the customer's opens of its link and the reminders sent.\
> \
> Returns \[the estimate object]\(<https://docs.shortcutco.com/developers/reference/objects/estimate>).

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Estimates","description":"An estimate offers lines of catalog services, each with a cadence and optional price options and products. Approving one creates its jobs.\n\nFields: [The estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate) · [The estimate reminder object](https://docs.shortcutco.com/developers/reference/objects/estimate-reminder)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["estimates: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":{"EstimateWithLinesAndEngagement":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The estimate's id."},"object":{"type":"string","const":"estimate","description":"Always `estimate`."},"status":{"type":"string","enum":["draft","pending","approved","declined","voided","expired"],"description":"`draft` until sent; `pending` once sent and waiting for the customer; then `approved`, `declined`, `voided` by the office, or `expired`."},"customerId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The customer the estimate is for, or null."},"leadId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The lead the estimate answers, or null."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property the work is at, or null."},"propertyLabel":{"type":["string","null"],"description":"The property's label when the estimate was written, or null."},"propertyAddress":{"type":["string","null"],"description":"The property's address when the estimate was written, or null."},"message":{"type":["string","null"],"description":"The message to the customer sent with the estimate, or null."},"total":{"type":["number","null"],"description":"The estimate's total in US dollars as the app shows it, or null before it is priced."},"sentTotals":{"anyOf":[{"type":"object","properties":{"subtotal":{"type":"number","description":"The total before sales tax, in US dollars."},"taxRatePct":{"type":["number","null"],"description":"The sales-tax rate the estimate showed, as a percent (8.25 = 8.25%), or null when it showed no tax."},"tax":{"type":"number","description":"The sales tax in US dollars; 0 when `taxRatePct` is null."},"total":{"type":"number","description":"`subtotal` plus `tax`: the total the customer saw."}},"required":["subtotal","taxRatePct","tax","total"],"additionalProperties":false},{"type":"null"}],"description":"The Subtotal, Sales tax and Total the customer saw when the estimate was last sent, before any choice they made on it; null for a draft or an estimate sent before these were recorded. A bounded recurring line counts every visit, an unbounded one a single visit."},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was last sent, ISO 8601 in UTC, or null."},"sentOutsideShortcut":{"type":"boolean","description":"True when your system delivered the estimate and told Shortcut it was sent (`POST /v1/estimates/{id}/mark-sent`): Shortcut sent the customer nothing and sends no reminders or automation messages about it while it is pending."},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate stops being approvable, ISO 8601 in UTC, or null."},"expiredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate expired, ISO 8601 in UTC, or null."},"approvedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was approved, ISO 8601 in UTC, or null."},"declinedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the customer declined it, ISO 8601 in UTC, or null."},"declineReason":{"type":["string","null"],"description":"What the customer said when declining, or null."},"approvalUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"description":"The customer's estimate page (`/p/{token}`), where they approve or decline. Whoever holds it can approve the estimate, so it is returned only to a token with `estimates:write`, and only once the estimate is sent; null otherwise. Opening it records a customer view."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this estimate has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the estimate was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the estimate last changed, ISO 8601 in UTC."},"lines":{"type":"array","items":{"$ref":"#/components/schemas/EstimateLine"},"description":"The estimate's lines, in order."},"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."},"crewNote":{"type":["string","null"],"description":"The estimator's note for the crew. Never shown to the customer; copied onto the jobs approval creates."},"engagement":{"$ref":"#/components/schemas/EstimateEngagement"}},"required":["id","object","status","customerId","leadId","propertyId","propertyLabel","propertyAddress","message","total","sentTotals","sentAt","sentOutsideShortcut","expiresAt","expiredAt","approvedAt","declinedAt","declineReason","approvalUrl","externalReferences","createdAt","updatedAt","lines","sqftRateUnit","crewNote","engagement"],"additionalProperties":false,"description":"An estimate with its lines, its link's opens and the reminders sent."},"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."},"EstimateLine":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The line's id."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the line was made from, or null for a custom line."},"name":{"type":"string","description":"The line's name."},"description":{"type":["string","null"],"description":"The line's description, or null."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged: per hour, per square foot, flat, or per crew member-hour."},"rate":{"type":"number","description":"The price in US dollars, per `priceStructure`. 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."},"quantity":{"type":["number","null"],"description":"Hours, square feet, or similar that `rate` multiplies, or null."},"subtotal":{"type":"number","description":"The line's price per visit in US dollars."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`recurring`, `one_off`, or `on_demand` (snow work that waits for a storm)."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"With `cadencePeriod`, how many visits per period, or null."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"The period `cadenceFrequency` counts in, or null."},"choiceGroupId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Lines sharing this id are alternatives the customer chooses between, or null."},"isOptional":{"type":"boolean","description":"Whether the customer may leave the line out."},"isRemovedByClient":{"type":"boolean","description":"Whether the customer left the line out when approving."},"selectedOptionId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The option the customer chose, or null."},"sortOrder":{"type":"integer","description":"Position on the estimate, ascending."},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The option's id."},"name":{"type":"string","description":"The option's name."},"rate":{"type":"number","description":"The option's price in US dollars, per `priceStructure`. 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."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"How often the option's work happens."}},"required":["id","name","rate","rateLabel","priceStructure","cadence"],"additionalProperties":false},"description":"Price options the customer can pick between."},"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The product line's id."},"productId":{"type":"string","format":"uuid","description":"The product from the catalog."},"name":{"type":"string","description":"The product's name on the estimate."},"description":{"type":["string","null"],"description":"The product's description, or null."},"unitLabel":{"type":"string","description":"The unit the quantity counts, such as `bag`."},"quantity":{"type":"number","description":"How many units."},"unitPrice":{"type":"number","description":"The customer's price per unit in US dollars."},"taxable":{"type":"boolean","description":"Whether sales tax applies."},"display":{"type":"string","enum":["itemized","included"],"description":"`itemized` shows the product as its own line to the customer; `included` folds it into the service's price."}},"required":["id","productId","name","description","unitLabel","quantity","unitPrice","taxable","display"],"additionalProperties":false},"description":"Products sold with the line."}},"required":["id","serviceId","name","description","priceStructure","rate","rateLabel","quantity","subtotal","cadence","cadenceFrequency","cadencePeriod","choiceGroupId","isOptional","isRemovedByClient","selectedOptionId","sortOrder","options","products"],"additionalProperties":false,"description":"A line of an estimate."},"EstimateEngagement":{"type":"object","properties":{"views":{"type":"integer","minimum":0,"description":"How many times the estimate's link was opened."},"firstViewedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"The first time the link was opened, ISO 8601 in UTC, or null."},"lastViewedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"The last time the link was opened, ISO 8601 in UTC, or null."},"daysSinceLastView":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Whole days since the last open, or null when never opened."},"daysSinceSent":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Whole days since the estimate was last sent, or null for a draft."},"reminders":{"type":"object","properties":{"emails":{"type":"integer","minimum":0,"description":"Reminder emails staff sent (the Remind button or the API) that the mailbox accepted."},"texts":{"type":"integer","minimum":0,"description":"Reminder texts staff sent that Messaging recorded as sent."},"lastAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"The latest of those reminders, ISO 8601 in UTC, or null."}},"required":["emails","texts","lastAt"],"additionalProperties":false,"description":"Reminders staff sent, each counted from its own record. One reminder by email and text counts in both. A floor: zero does not prove nobody was reminded."},"automated":{"type":"object","properties":{"sent":{"type":"integer","minimum":0,"description":"Emails and texts an automation sent for this estimate, its delivery of the estimate included."},"lastAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"The latest of them, ISO 8601 in UTC, or null."}},"required":["sent","lastAt"],"additionalProperties":false,"description":"What automations sent for this estimate. A floor: an automation run about something else is not counted."}},"required":["views","firstViewedAt","lastViewedAt","daysSinceLastView","daysSinceSent","reminders","automated"],"additionalProperties":false,"description":"What the customer did with the estimate's link, and what was sent to remind them. Opens of the estimate email itself are not stored; `views` counts opens of the link."},"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/estimates/{id}":{"get":{"operationId":"estimates.get","tags":["Estimates"],"summary":"Get an estimate","description":"One estimate with its lines, their price options, and the products sold with them, and `engagement`: the customer's opens of its link and the reminders sent.\n\nReturns [the estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate).","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/EstimateWithLinesAndEngagement"},"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 draft estimate

> Changes a draft estimate's message, property, lines, or expiry, as editing it in the app does. \`lines\` replaces every line; omit it to keep them. \`expiresAt\` sets when it stops being approvable; \`null\` returns to the default, 30 days after it is sent. Only drafts can change: a sent, approved, or closed estimate is \`409 state\_conflict\`. The app recomputes the total.\
> \
> Returns \[the estimate object]\(<https://docs.shortcutco.com/developers/reference/objects/estimate).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`service\_not\_supported\`]\(<https://docs.shortcutco.com/developers/concepts/errors#service\\_not\\_supported>), \[\`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":"Estimates","description":"An estimate offers lines of catalog services, each with a cadence and optional price options and products. Approving one creates its jobs.\n\nFields: [The estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate) · [The estimate reminder object](https://docs.shortcutco.com/developers/reference/objects/estimate-reminder)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["estimates: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":{"EstimateWithLines":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The estimate's id."},"object":{"type":"string","const":"estimate","description":"Always `estimate`."},"status":{"type":"string","enum":["draft","pending","approved","declined","voided","expired"],"description":"`draft` until sent; `pending` once sent and waiting for the customer; then `approved`, `declined`, `voided` by the office, or `expired`."},"customerId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The customer the estimate is for, or null."},"leadId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The lead the estimate answers, or null."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property the work is at, or null."},"propertyLabel":{"type":["string","null"],"description":"The property's label when the estimate was written, or null."},"propertyAddress":{"type":["string","null"],"description":"The property's address when the estimate was written, or null."},"message":{"type":["string","null"],"description":"The message to the customer sent with the estimate, or null."},"total":{"type":["number","null"],"description":"The estimate's total in US dollars as the app shows it, or null before it is priced."},"sentTotals":{"anyOf":[{"type":"object","properties":{"subtotal":{"type":"number","description":"The total before sales tax, in US dollars."},"taxRatePct":{"type":["number","null"],"description":"The sales-tax rate the estimate showed, as a percent (8.25 = 8.25%), or null when it showed no tax."},"tax":{"type":"number","description":"The sales tax in US dollars; 0 when `taxRatePct` is null."},"total":{"type":"number","description":"`subtotal` plus `tax`: the total the customer saw."}},"required":["subtotal","taxRatePct","tax","total"],"additionalProperties":false},{"type":"null"}],"description":"The Subtotal, Sales tax and Total the customer saw when the estimate was last sent, before any choice they made on it; null for a draft or an estimate sent before these were recorded. A bounded recurring line counts every visit, an unbounded one a single visit."},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was last sent, ISO 8601 in UTC, or null."},"sentOutsideShortcut":{"type":"boolean","description":"True when your system delivered the estimate and told Shortcut it was sent (`POST /v1/estimates/{id}/mark-sent`): Shortcut sent the customer nothing and sends no reminders or automation messages about it while it is pending."},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate stops being approvable, ISO 8601 in UTC, or null."},"expiredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate expired, ISO 8601 in UTC, or null."},"approvedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was approved, ISO 8601 in UTC, or null."},"declinedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the customer declined it, ISO 8601 in UTC, or null."},"declineReason":{"type":["string","null"],"description":"What the customer said when declining, or null."},"approvalUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"description":"The customer's estimate page (`/p/{token}`), where they approve or decline. Whoever holds it can approve the estimate, so it is returned only to a token with `estimates:write`, and only once the estimate is sent; null otherwise. Opening it records a customer view."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this estimate has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the estimate was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the estimate last changed, ISO 8601 in UTC."},"lines":{"type":"array","items":{"$ref":"#/components/schemas/EstimateLine"},"description":"The estimate's lines, in order."},"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."},"crewNote":{"type":["string","null"],"description":"The estimator's note for the crew. Never shown to the customer; copied onto the jobs approval creates."}},"required":["id","object","status","customerId","leadId","propertyId","propertyLabel","propertyAddress","message","total","sentTotals","sentAt","sentOutsideShortcut","expiresAt","expiredAt","approvedAt","declinedAt","declineReason","approvalUrl","externalReferences","createdAt","updatedAt","lines","sqftRateUnit","crewNote"],"additionalProperties":false,"description":"An estimate with its lines."},"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."},"EstimateLine":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The line's id."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the line was made from, or null for a custom line."},"name":{"type":"string","description":"The line's name."},"description":{"type":["string","null"],"description":"The line's description, or null."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged: per hour, per square foot, flat, or per crew member-hour."},"rate":{"type":"number","description":"The price in US dollars, per `priceStructure`. 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."},"quantity":{"type":["number","null"],"description":"Hours, square feet, or similar that `rate` multiplies, or null."},"subtotal":{"type":"number","description":"The line's price per visit in US dollars."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`recurring`, `one_off`, or `on_demand` (snow work that waits for a storm)."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"With `cadencePeriod`, how many visits per period, or null."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"The period `cadenceFrequency` counts in, or null."},"choiceGroupId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Lines sharing this id are alternatives the customer chooses between, or null."},"isOptional":{"type":"boolean","description":"Whether the customer may leave the line out."},"isRemovedByClient":{"type":"boolean","description":"Whether the customer left the line out when approving."},"selectedOptionId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The option the customer chose, or null."},"sortOrder":{"type":"integer","description":"Position on the estimate, ascending."},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The option's id."},"name":{"type":"string","description":"The option's name."},"rate":{"type":"number","description":"The option's price in US dollars, per `priceStructure`. 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."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"How often the option's work happens."}},"required":["id","name","rate","rateLabel","priceStructure","cadence"],"additionalProperties":false},"description":"Price options the customer can pick between."},"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The product line's id."},"productId":{"type":"string","format":"uuid","description":"The product from the catalog."},"name":{"type":"string","description":"The product's name on the estimate."},"description":{"type":["string","null"],"description":"The product's description, or null."},"unitLabel":{"type":"string","description":"The unit the quantity counts, such as `bag`."},"quantity":{"type":"number","description":"How many units."},"unitPrice":{"type":"number","description":"The customer's price per unit in US dollars."},"taxable":{"type":"boolean","description":"Whether sales tax applies."},"display":{"type":"string","enum":["itemized","included"],"description":"`itemized` shows the product as its own line to the customer; `included` folds it into the service's price."}},"required":["id","productId","name","description","unitLabel","quantity","unitPrice","taxable","display"],"additionalProperties":false},"description":"Products sold with the line."}},"required":["id","serviceId","name","description","priceStructure","rate","rateLabel","quantity","subtotal","cadence","cadenceFrequency","cadencePeriod","choiceGroupId","isOptional","isRemovedByClient","selectedOptionId","sortOrder","options","products"],"additionalProperties":false,"description":"A line of an estimate."},"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/estimates/{id}":{"patch":{"operationId":"estimates.update","tags":["Estimates"],"summary":"Update a draft estimate","description":"Changes a draft estimate's message, property, lines, or expiry, as editing it in the app does. `lines` replaces every line; omit it to keep them. `expiresAt` sets when it stops being approvable; `null` returns to the default, 30 days after it is sent. Only drafts can change: a sent, approved, or closed estimate is `409 state_conflict`. The app recomputes the total.\n\nReturns [the estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate).\n\n**Errors specific to this endpoint:** [`service_not_supported`](https://docs.shortcutco.com/developers/concepts/errors#service_not_supported), [`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"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"propertyId":{"type":"string","format":"uuid","description":"Another of the customer's properties."},"message":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"description":"The message to the customer; `null` clears it."},"crewNote":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"description":"The note for the crew, never shown to the customer; `null` clears it."},"lines":{"type":"array","items":{"type":"object","properties":{"serviceId":{"type":"string","format":"uuid","description":"The catalog service the line sells; its name and price structure come from the catalog. Send `serviceId` or `name`, not both."},"name":{"type":"string","minLength":1,"maxLength":140,"description":"A custom line's name, for a fee or add-on that is not in your catalog (the app's line that is \"only on this estimate\"). Send `name` or `serviceId`, not both. A custom line needs `rate`, is `one_off` or `recurring`, and cannot be one of a choice of lines."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"A custom line's price structure: how `rate` is charged. Defaults to `flat`. A catalog line takes its service's."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`recurring` for repeat work, `one_off` for a single visit, `on_demand` for a snow service's line (each push waits for its trigger)."},"cadenceFrequency":{"type":"integer","minimum":1,"maximum":31,"description":"For recurring lines, visits per `cadencePeriod`, such as `1` with `per_week`."},"cadencePeriod":{"type":"string","enum":["per_day","per_week","per_month","per_year"],"description":"For recurring lines, the period `cadenceFrequency` counts in."},"rate":{"type":"number","minimum":0,"maximum":1000000,"description":"The price in US dollars, per the service's price structure; per push on a snow line. Defaults to the service's rate. 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)."},"quantity":{"type":"number","minimum":0,"maximum":100000000,"description":"What `rate` multiplies: square feet for per-square-foot services, hours for hourly ones."},"snow":{"type":"object","properties":{"triggerKind":{"type":"string","enum":["depth","any","manual","on_call"],"description":"When a push is due: `depth` at `triggerInches`, `any` accumulation, `manual`, or `on_call` (offered each time)."},"triggerInches":{"type":["number","null"],"description":"Inches of snow that make a `depth` line due."},"offerWindowHours":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Hours an `on_call` offer stays open."},"depthLadder":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"upTo":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"The bracket's top in whole inches; null on the last."},"rate":{"type":"number","minimum":0,"description":"The price per push in this bracket, in US dollars."}},"required":["upTo","rate"],"additionalProperties":false}},{"type":"null"}],"description":"Optional price per push by accumulation, only with a `flat` price."}},"required":["triggerKind"],"additionalProperties":false,"description":"Snow terms for an `on_demand` line. Defaults to the snow service's own terms."},"description":{"type":"string","maxLength":2000,"description":"Shown under the line. Defaults to the service's description."},"isOptional":{"type":"boolean","description":"Whether the customer may leave the line out."},"choiceGroupId":{"type":"string","format":"uuid","description":"Give lines the same new UUID to offer them as alternatives; the customer picks one, the first by default."},"options":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":140,"description":"The option's name, such as `Biweekly`."},"rate":{"type":"number","minimum":0,"maximum":1000000,"description":"The option's price in US dollars, per `priceStructure`. 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)."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged."},"cadence":{"type":"string","enum":["one_off","recurring"],"description":"How often the option's work happens."}},"required":["name","rate","priceStructure","cadence"],"additionalProperties":false},"maxItems":10,"description":"Price options the customer can pick between."},"products":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","format":"uuid","description":"A product from the catalog."},"quantity":{"type":"number","minimum":0,"maximum":1000000,"description":"How many units."},"unitPrice":{"type":"number","minimum":0,"maximum":1000000,"description":"The customer's price per unit in US dollars. Defaults to the product's price."},"taxable":{"type":"boolean","description":"Whether sales tax applies. Defaults to the product's setting."},"display":{"type":"string","enum":["itemized","included"],"description":"`itemized` shows the product as its own line; `included` folds it into the service's price."},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"description":"Overrides the product's description."}},"required":["productId","quantity"],"additionalProperties":false},"maxItems":100,"description":"Products sold with the line."}},"required":["cadence"],"additionalProperties":false},"maxItems":100,"description":"Replaces every line. Omit to keep the lines as they are."},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","description":"When the estimate stops being approvable, ISO 8601. Must be in the future. Without it, an estimate expires 30 days after it is sent."},{"type":"null"}],"description":"When the estimate stops being approvable, ISO 8601 and in the future; `null` returns to the default, 30 days after it is sent."}},"additionalProperties":false,"description":"Changes to a draft estimate."}}}},"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/EstimateWithLines"},"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"}}}}}}
```

## Approve an estimate

> Approves an estimate on the customer's behalf, exactly as Approve does in the app: it creates the estimate's jobs (pending, ready to schedule), queues their visits for recurring work, and emails your admins. A draft can be approved directly, without \`proof\`. If your system collected the customer's signature on its own page, send it as \`proof\` (signer, time, IP address, user agent, the consent text and terms shown, a typed or drawn signature, and the signed PDF, at most 2.5 MB; the body may be up to 4 MB): it is stored as the approval record labelled as supplied by this integration (\`approvedBy: integration\`), never as collected by Shortcut, and appears that way in the app and its dispute packet. An approval with \`proof\` needs the estimate to be pending (sent, or marked sent). Approving an approved estimate creates nothing, stores no proof, and returns it with \`meta.alreadyApproved: true\`. An estimate past its expiry is marked expired and refused with \`409 estimate\_expired\`. If the lead's email belongs to an existing customer the estimate links to them, which needs \`customers:write\`. Your estimate-accepted automations, and workspace automations on approved estimates and on the visits it schedules, run only if the token has \`automations:trigger\`. If the follow-up work cannot be queued the response is \`503\`; approve again to queue it.\
> \
> Returns \[the estimate object]\(<https://docs.shortcutco.com/developers/reference/objects/estimate).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`estimate\_expired\`]\(<https://docs.shortcutco.com/developers/concepts/errors#estimate\\_expired>), \[\`estimate\_not\_approvable\`]\(<https://docs.shortcutco.com/developers/concepts/errors#estimate\\_not\\_approvable>), \[\`follow\_up\_not\_queued\`]\(<https://docs.shortcutco.com/developers/concepts/errors#follow\\_up\\_not\\_queued>), \[\`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":"Estimates","description":"An estimate offers lines of catalog services, each with a cadence and optional price options and products. Approving one creates its jobs.\n\nFields: [The estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate) · [The estimate reminder object](https://docs.shortcutco.com/developers/reference/objects/estimate-reminder)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["estimates: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":{"EstimateWithLines":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The estimate's id."},"object":{"type":"string","const":"estimate","description":"Always `estimate`."},"status":{"type":"string","enum":["draft","pending","approved","declined","voided","expired"],"description":"`draft` until sent; `pending` once sent and waiting for the customer; then `approved`, `declined`, `voided` by the office, or `expired`."},"customerId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The customer the estimate is for, or null."},"leadId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The lead the estimate answers, or null."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property the work is at, or null."},"propertyLabel":{"type":["string","null"],"description":"The property's label when the estimate was written, or null."},"propertyAddress":{"type":["string","null"],"description":"The property's address when the estimate was written, or null."},"message":{"type":["string","null"],"description":"The message to the customer sent with the estimate, or null."},"total":{"type":["number","null"],"description":"The estimate's total in US dollars as the app shows it, or null before it is priced."},"sentTotals":{"anyOf":[{"type":"object","properties":{"subtotal":{"type":"number","description":"The total before sales tax, in US dollars."},"taxRatePct":{"type":["number","null"],"description":"The sales-tax rate the estimate showed, as a percent (8.25 = 8.25%), or null when it showed no tax."},"tax":{"type":"number","description":"The sales tax in US dollars; 0 when `taxRatePct` is null."},"total":{"type":"number","description":"`subtotal` plus `tax`: the total the customer saw."}},"required":["subtotal","taxRatePct","tax","total"],"additionalProperties":false},{"type":"null"}],"description":"The Subtotal, Sales tax and Total the customer saw when the estimate was last sent, before any choice they made on it; null for a draft or an estimate sent before these were recorded. A bounded recurring line counts every visit, an unbounded one a single visit."},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was last sent, ISO 8601 in UTC, or null."},"sentOutsideShortcut":{"type":"boolean","description":"True when your system delivered the estimate and told Shortcut it was sent (`POST /v1/estimates/{id}/mark-sent`): Shortcut sent the customer nothing and sends no reminders or automation messages about it while it is pending."},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate stops being approvable, ISO 8601 in UTC, or null."},"expiredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate expired, ISO 8601 in UTC, or null."},"approvedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was approved, ISO 8601 in UTC, or null."},"declinedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the customer declined it, ISO 8601 in UTC, or null."},"declineReason":{"type":["string","null"],"description":"What the customer said when declining, or null."},"approvalUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"description":"The customer's estimate page (`/p/{token}`), where they approve or decline. Whoever holds it can approve the estimate, so it is returned only to a token with `estimates:write`, and only once the estimate is sent; null otherwise. Opening it records a customer view."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this estimate has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the estimate was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the estimate last changed, ISO 8601 in UTC."},"lines":{"type":"array","items":{"$ref":"#/components/schemas/EstimateLine"},"description":"The estimate's lines, in order."},"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."},"crewNote":{"type":["string","null"],"description":"The estimator's note for the crew. Never shown to the customer; copied onto the jobs approval creates."}},"required":["id","object","status","customerId","leadId","propertyId","propertyLabel","propertyAddress","message","total","sentTotals","sentAt","sentOutsideShortcut","expiresAt","expiredAt","approvedAt","declinedAt","declineReason","approvalUrl","externalReferences","createdAt","updatedAt","lines","sqftRateUnit","crewNote"],"additionalProperties":false,"description":"An estimate with its lines."},"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."},"EstimateLine":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The line's id."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the line was made from, or null for a custom line."},"name":{"type":"string","description":"The line's name."},"description":{"type":["string","null"],"description":"The line's description, or null."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged: per hour, per square foot, flat, or per crew member-hour."},"rate":{"type":"number","description":"The price in US dollars, per `priceStructure`. 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."},"quantity":{"type":["number","null"],"description":"Hours, square feet, or similar that `rate` multiplies, or null."},"subtotal":{"type":"number","description":"The line's price per visit in US dollars."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`recurring`, `one_off`, or `on_demand` (snow work that waits for a storm)."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"With `cadencePeriod`, how many visits per period, or null."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"The period `cadenceFrequency` counts in, or null."},"choiceGroupId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Lines sharing this id are alternatives the customer chooses between, or null."},"isOptional":{"type":"boolean","description":"Whether the customer may leave the line out."},"isRemovedByClient":{"type":"boolean","description":"Whether the customer left the line out when approving."},"selectedOptionId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The option the customer chose, or null."},"sortOrder":{"type":"integer","description":"Position on the estimate, ascending."},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The option's id."},"name":{"type":"string","description":"The option's name."},"rate":{"type":"number","description":"The option's price in US dollars, per `priceStructure`. 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."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"How often the option's work happens."}},"required":["id","name","rate","rateLabel","priceStructure","cadence"],"additionalProperties":false},"description":"Price options the customer can pick between."},"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The product line's id."},"productId":{"type":"string","format":"uuid","description":"The product from the catalog."},"name":{"type":"string","description":"The product's name on the estimate."},"description":{"type":["string","null"],"description":"The product's description, or null."},"unitLabel":{"type":"string","description":"The unit the quantity counts, such as `bag`."},"quantity":{"type":"number","description":"How many units."},"unitPrice":{"type":"number","description":"The customer's price per unit in US dollars."},"taxable":{"type":"boolean","description":"Whether sales tax applies."},"display":{"type":"string","enum":["itemized","included"],"description":"`itemized` shows the product as its own line to the customer; `included` folds it into the service's price."}},"required":["id","productId","name","description","unitLabel","quantity","unitPrice","taxable","display"],"additionalProperties":false},"description":"Products sold with the line."}},"required":["id","serviceId","name","description","priceStructure","rate","rateLabel","quantity","subtotal","cadence","cadenceFrequency","cadencePeriod","choiceGroupId","isOptional","isRemovedByClient","selectedOptionId","sortOrder","options","products"],"additionalProperties":false,"description":"A line of an estimate."},"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/estimates/{id}/approve":{"post":{"operationId":"estimates.approve","tags":["Estimates"],"summary":"Approve an estimate","description":"Approves an estimate on the customer's behalf, exactly as Approve does in the app: it creates the estimate's jobs (pending, ready to schedule), queues their visits for recurring work, and emails your admins. A draft can be approved directly, without `proof`. If your system collected the customer's signature on its own page, send it as `proof` (signer, time, IP address, user agent, the consent text and terms shown, a typed or drawn signature, and the signed PDF, at most 2.5 MB; the body may be up to 4 MB): it is stored as the approval record labelled as supplied by this integration (`approvedBy: integration`), never as collected by Shortcut, and appears that way in the app and its dispute packet. An approval with `proof` needs the estimate to be pending (sent, or marked sent). Approving an approved estimate creates nothing, stores no proof, and returns it with `meta.alreadyApproved: true`. An estimate past its expiry is marked expired and refused with `409 estimate_expired`. If the lead's email belongs to an existing customer the estimate links to them, which needs `customers:write`. Your estimate-accepted automations, and workspace automations on approved estimates and on the visits it schedules, run only if the token has `automations:trigger`. If the follow-up work cannot be queued the response is `503`; approve again to queue it.\n\nReturns [the estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate).\n\n**Errors specific to this endpoint:** [`estimate_expired`](https://docs.shortcutco.com/developers/concepts/errors#estimate_expired), [`estimate_not_approvable`](https://docs.shortcutco.com/developers/concepts/errors#estimate_not_approvable), [`follow_up_not_queued`](https://docs.shortcutco.com/developers/concepts/errors#follow_up_not_queued), [`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":{"selections":{"type":"array","items":{"type":"object","properties":{"lineId":{"type":"string","format":"uuid","description":"A line of the estimate."},"selectedOptionId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The option the customer chose."},"removed":{"type":"boolean","description":"`true` when the customer left this optional line out; `false` keeps a line they had left out on the estimate page. Omit it to leave the line as it is."}},"required":["lineId"],"additionalProperties":false},"maxItems":100,"default":[],"description":"The customer's choices, as they would make them on the estimate page."},"proof":{"type":"object","properties":{"signerName":{"type":"string","minLength":1,"maxLength":120,"description":"The name the customer signed with."},"signerEmail":{"type":"string","format":"email","maxLength":254,"description":"The email the signer gave, if any."},"signedAt":{"type":"string","format":"date-time","description":"When the customer signed on your page, ISO 8601, not in the future."},"ipAddress":{"type":"string","maxLength":45,"description":"The signer's IP address, IPv4 or IPv6, as your page recorded it."},"userAgent":{"type":"string","maxLength":1000,"description":"The signer's browser user agent, as your page recorded it."},"consentText":{"type":"string","minLength":1,"maxLength":4000,"description":"The consent statement your page showed the signer, word for word."},"termsText":{"type":"string","maxLength":10000,"description":"The terms your page showed with the estimate, word for word, if any."},"signature":{"type":"object","properties":{"method":{"type":"string","enum":["typed","drawn"],"description":"`typed` or `drawn`."},"typedText":{"type":"string","minLength":1,"maxLength":120,"description":"For `typed`: what the signer typed."},"image":{"type":"string","maxLength":400026,"description":"For `drawn`: the drawn signature as a PNG data URL (`data:image/png;base64,...`), at most 300 KB."}},"required":["method"],"additionalProperties":false,"description":"The customer's signature. Leave it out when your page took approval without one."},"signedDocument":{"type":"object","properties":{"contentBase64":{"type":"string","maxLength":3333338,"description":"The signed document as a base64 PDF, at most 2.5 MB."}},"required":["contentBase64"],"additionalProperties":false,"description":"The signed document your system produced, kept with the approval record. If it is not ready yet, approve without it and attach it later with `POST /v1/estimates/{id}/signed-document`."}},"required":["signerName","signedAt","consentText"],"additionalProperties":false,"description":"Proof of the customer's signature collected on your own page. It is stored with the approval as supplied by this integration, never as collected by Shortcut. Needs the estimate to be pending (sent or marked sent)."}},"additionalProperties":false,"description":"The customer's choices when approving, and the proof of their signature if your system collected it."}}}},"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/EstimateWithLines"},"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"}}}}}}
```

## Decline an estimate

> Declines a pending estimate on the customer's behalf, exactly as the customer's Decline on the estimate page does: the estimate becomes \`declined\` with the reason (\`reasonCode\`, as the page's options name it, and/or \`reason\` in the customer's words), a lead is marked lost if your company setting says so, your admins get the declined email, and the \`estimate.declined\` webhook fires. Declining a declined estimate changes nothing and returns it with \`meta.alreadyDeclined: true\`; a draft, approved, voided or expired estimate is \`409 state\_conflict\`. A declined estimate cannot be reopened (the app has no reopen); write a new estimate. Your declined-estimate automations run only if the token has \`automations:trigger\`.\
> \
> Returns \[the estimate object]\(<https://docs.shortcutco.com/developers/reference/objects/estimate).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`state\_conflict\`]\(<https://docs.shortcutco.com/developers/concepts/errors#state\\_conflict>). Every endpoint can also return the \[common errors]\(<https://docs.shortcutco.com/developers/concepts/errors>).

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Estimates","description":"An estimate offers lines of catalog services, each with a cadence and optional price options and products. Approving one creates its jobs.\n\nFields: [The estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate) · [The estimate reminder object](https://docs.shortcutco.com/developers/reference/objects/estimate-reminder)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["estimates: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":{"EstimateWithLines":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The estimate's id."},"object":{"type":"string","const":"estimate","description":"Always `estimate`."},"status":{"type":"string","enum":["draft","pending","approved","declined","voided","expired"],"description":"`draft` until sent; `pending` once sent and waiting for the customer; then `approved`, `declined`, `voided` by the office, or `expired`."},"customerId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The customer the estimate is for, or null."},"leadId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The lead the estimate answers, or null."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property the work is at, or null."},"propertyLabel":{"type":["string","null"],"description":"The property's label when the estimate was written, or null."},"propertyAddress":{"type":["string","null"],"description":"The property's address when the estimate was written, or null."},"message":{"type":["string","null"],"description":"The message to the customer sent with the estimate, or null."},"total":{"type":["number","null"],"description":"The estimate's total in US dollars as the app shows it, or null before it is priced."},"sentTotals":{"anyOf":[{"type":"object","properties":{"subtotal":{"type":"number","description":"The total before sales tax, in US dollars."},"taxRatePct":{"type":["number","null"],"description":"The sales-tax rate the estimate showed, as a percent (8.25 = 8.25%), or null when it showed no tax."},"tax":{"type":"number","description":"The sales tax in US dollars; 0 when `taxRatePct` is null."},"total":{"type":"number","description":"`subtotal` plus `tax`: the total the customer saw."}},"required":["subtotal","taxRatePct","tax","total"],"additionalProperties":false},{"type":"null"}],"description":"The Subtotal, Sales tax and Total the customer saw when the estimate was last sent, before any choice they made on it; null for a draft or an estimate sent before these were recorded. A bounded recurring line counts every visit, an unbounded one a single visit."},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was last sent, ISO 8601 in UTC, or null."},"sentOutsideShortcut":{"type":"boolean","description":"True when your system delivered the estimate and told Shortcut it was sent (`POST /v1/estimates/{id}/mark-sent`): Shortcut sent the customer nothing and sends no reminders or automation messages about it while it is pending."},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate stops being approvable, ISO 8601 in UTC, or null."},"expiredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate expired, ISO 8601 in UTC, or null."},"approvedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was approved, ISO 8601 in UTC, or null."},"declinedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the customer declined it, ISO 8601 in UTC, or null."},"declineReason":{"type":["string","null"],"description":"What the customer said when declining, or null."},"approvalUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"description":"The customer's estimate page (`/p/{token}`), where they approve or decline. Whoever holds it can approve the estimate, so it is returned only to a token with `estimates:write`, and only once the estimate is sent; null otherwise. Opening it records a customer view."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this estimate has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the estimate was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the estimate last changed, ISO 8601 in UTC."},"lines":{"type":"array","items":{"$ref":"#/components/schemas/EstimateLine"},"description":"The estimate's lines, in order."},"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."},"crewNote":{"type":["string","null"],"description":"The estimator's note for the crew. Never shown to the customer; copied onto the jobs approval creates."}},"required":["id","object","status","customerId","leadId","propertyId","propertyLabel","propertyAddress","message","total","sentTotals","sentAt","sentOutsideShortcut","expiresAt","expiredAt","approvedAt","declinedAt","declineReason","approvalUrl","externalReferences","createdAt","updatedAt","lines","sqftRateUnit","crewNote"],"additionalProperties":false,"description":"An estimate with its lines."},"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."},"EstimateLine":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The line's id."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the line was made from, or null for a custom line."},"name":{"type":"string","description":"The line's name."},"description":{"type":["string","null"],"description":"The line's description, or null."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged: per hour, per square foot, flat, or per crew member-hour."},"rate":{"type":"number","description":"The price in US dollars, per `priceStructure`. 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."},"quantity":{"type":["number","null"],"description":"Hours, square feet, or similar that `rate` multiplies, or null."},"subtotal":{"type":"number","description":"The line's price per visit in US dollars."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`recurring`, `one_off`, or `on_demand` (snow work that waits for a storm)."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"With `cadencePeriod`, how many visits per period, or null."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"The period `cadenceFrequency` counts in, or null."},"choiceGroupId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Lines sharing this id are alternatives the customer chooses between, or null."},"isOptional":{"type":"boolean","description":"Whether the customer may leave the line out."},"isRemovedByClient":{"type":"boolean","description":"Whether the customer left the line out when approving."},"selectedOptionId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The option the customer chose, or null."},"sortOrder":{"type":"integer","description":"Position on the estimate, ascending."},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The option's id."},"name":{"type":"string","description":"The option's name."},"rate":{"type":"number","description":"The option's price in US dollars, per `priceStructure`. 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."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"How often the option's work happens."}},"required":["id","name","rate","rateLabel","priceStructure","cadence"],"additionalProperties":false},"description":"Price options the customer can pick between."},"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The product line's id."},"productId":{"type":"string","format":"uuid","description":"The product from the catalog."},"name":{"type":"string","description":"The product's name on the estimate."},"description":{"type":["string","null"],"description":"The product's description, or null."},"unitLabel":{"type":"string","description":"The unit the quantity counts, such as `bag`."},"quantity":{"type":"number","description":"How many units."},"unitPrice":{"type":"number","description":"The customer's price per unit in US dollars."},"taxable":{"type":"boolean","description":"Whether sales tax applies."},"display":{"type":"string","enum":["itemized","included"],"description":"`itemized` shows the product as its own line to the customer; `included` folds it into the service's price."}},"required":["id","productId","name","description","unitLabel","quantity","unitPrice","taxable","display"],"additionalProperties":false},"description":"Products sold with the line."}},"required":["id","serviceId","name","description","priceStructure","rate","rateLabel","quantity","subtotal","cadence","cadenceFrequency","cadencePeriod","choiceGroupId","isOptional","isRemovedByClient","selectedOptionId","sortOrder","options","products"],"additionalProperties":false,"description":"A line of an estimate."},"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/estimates/{id}/decline":{"post":{"operationId":"estimates.decline","tags":["Estimates"],"summary":"Decline an estimate","description":"Declines a pending estimate on the customer's behalf, exactly as the customer's Decline on the estimate page does: the estimate becomes `declined` with the reason (`reasonCode`, as the page's options name it, and/or `reason` in the customer's words), a lead is marked lost if your company setting says so, your admins get the declined email, and the `estimate.declined` webhook fires. Declining a declined estimate changes nothing and returns it with `meta.alreadyDeclined: true`; a draft, approved, voided or expired estimate is `409 state_conflict`. A declined estimate cannot be reopened (the app has no reopen); write a new estimate. Your declined-estimate automations run only if the token has `automations:trigger`.\n\nReturns [the estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate).\n\n**Errors specific to this endpoint:** [`state_conflict`](https://docs.shortcutco.com/developers/concepts/errors#state_conflict). Every endpoint can also return the [common errors](https://docs.shortcutco.com/developers/concepts/errors).","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reasonCode":{"type":"string","enum":["price","timing","competitor","other"],"description":"The customer's reason, as the estimate page's options name it: `price`, `timing`, `competitor` (went with someone else), or `other`."},"reason":{"type":"string","maxLength":1000,"description":"What the customer said. Required without `reasonCode` or with `other`."}},"additionalProperties":false,"description":"Why the customer declined: `reasonCode`, `reason`, or both; `reason` is required without a code or with `other`."}}}},"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/EstimateWithLines"},"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 an approved estimate's dispute packet

> The approved estimate's signed record as a PDF, exactly as Download dispute packet in the app produces it for a company admin: the estimate as approved with its hash check, the signature (a drawn signature's image included) and consent, the approval's time, IP address and device, who approved it (the customer's link, the office, the API, or an integration's supplied proof, labelled as such), every send and view with IP addresses, card and autopay consent, and the visits, invoices and payments that followed. Returned base64 in JSON. Because it holds every one of those areas, it needs the read scope of each: \`estimates:read\`, \`customers:read\`, \`visits:read\`, \`teams:read\` and \`invoices:read\`. An estimate with no approval record is \`409 no\_approval\_record\`. Only API tokens and connected apps; a person in Clip reads \`GET /v1/estimates/{id}/evidence\`.\
> \
> Returns \[the estimate document object]\(<https://docs.shortcutco.com/developers/reference/objects/estimate-document).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`dispute\_packet\_not\_for\_people\`]\(<https://docs.shortcutco.com/developers/concepts/errors#dispute\\_packet\\_not\\_for\\_people>), \[\`no\_approval\_record\`]\(<https://docs.shortcutco.com/developers/concepts/errors#no\\_approval\\_record>). 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":"Estimates","description":"An estimate offers lines of catalog services, each with a cadence and optional price options and products. Approving one creates its jobs.\n\nFields: [The estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate) · [The estimate reminder object](https://docs.shortcutco.com/developers/reference/objects/estimate-reminder)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["estimates:read","customers:read","visits:read","teams:read","invoices:read"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"schemas":{"EstimateDocument":{"type":"object","properties":{"object":{"type":"string","const":"estimate_document","description":"Always `estimate_document`."},"estimateId":{"type":"string","format":"uuid","description":"The estimate."},"kind":{"type":"string","const":"dispute_packet","description":"Always `dispute_packet`: the app's Download dispute packet PDF."},"fileName":{"type":"string","description":"The file name the app gives the download."},"contentType":{"type":"string","const":"application/pdf","description":"Always `application/pdf`."},"byteLength":{"type":"integer","description":"The PDF's size in bytes."},"sha256":{"type":"string","description":"The PDF's SHA-256, hex."},"contentBase64":{"type":"string","description":"The PDF, base64."},"generatedAt":{"type":"string","format":"date-time","description":"When this copy was rendered, ISO 8601 in UTC. Each request renders a fresh copy from the stored approval record."}},"required":["object","estimateId","kind","fileName","contentType","byteLength","sha256","contentBase64","generatedAt"],"additionalProperties":false,"description":"An approved estimate's signed record as a PDF."},"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/estimates/{id}/dispute-packet":{"get":{"operationId":"estimates.dispute_packet.get","tags":["Estimates"],"summary":"Get an approved estimate's dispute packet","description":"The approved estimate's signed record as a PDF, exactly as Download dispute packet in the app produces it for a company admin: the estimate as approved with its hash check, the signature (a drawn signature's image included) and consent, the approval's time, IP address and device, who approved it (the customer's link, the office, the API, or an integration's supplied proof, labelled as such), every send and view with IP addresses, card and autopay consent, and the visits, invoices and payments that followed. Returned base64 in JSON. Because it holds every one of those areas, it needs the read scope of each: `estimates:read`, `customers:read`, `visits:read`, `teams:read` and `invoices:read`. An estimate with no approval record is `409 no_approval_record`. Only API tokens and connected apps; a person in Clip reads `GET /v1/estimates/{id}/evidence`.\n\nReturns [the estimate document object](https://docs.shortcutco.com/developers/reference/objects/estimate-document).\n\n**Errors specific to this endpoint:** [`dispute_packet_not_for_people`](https://docs.shortcutco.com/developers/concepts/errors#dispute_packet_not_for_people), [`no_approval_record`](https://docs.shortcutco.com/developers/concepts/errors#no_approval_record). Every endpoint can also return the [common errors](https://docs.shortcutco.com/developers/concepts/errors).","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/EstimateDocument"},"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 an estimate's approval evidence

> The proof that the customer agreed to a maintenance estimate and got the work, as the dispute packet holds it: the signature and consent, the approval record, the estimate as approved, every send and view, card and autopay consent, and, each with its own read scope, the customer's name and card and autopay consent (\`customers:read\`; the signer's email too), the visits that followed (\`visits:read\`; their crews with \`teams:read\`) and the invoices and payments after them (\`invoices:read\`). A part the token cannot read is left out and listed in \`meta.omitted\`. Never returns the signature image, an IP address, a raw user agent or a payment provider's id. A project estimate is not found here.

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Estimates","description":"An estimate offers lines of catalog services, each with a cadence and optional price options and products. Approving one creates its jobs.\n\nFields: [The estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate) · [The estimate reminder object](https://docs.shortcutco.com/developers/reference/objects/estimate-reminder)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["estimates: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/estimates/{id}/evidence":{"get":{"operationId":"estimates.evidence","tags":["Estimates"],"summary":"Get an estimate's approval evidence","description":"The proof that the customer agreed to a maintenance estimate and got the work, as the dispute packet holds it: the signature and consent, the approval record, the estimate as approved, every send and view, card and autopay consent, and, each with its own read scope, the customer's name and card and autopay consent (`customers:read`; the signer's email too), the visits that followed (`visits:read`; their crews with `teams:read`) and the invoices and payments after them (`invoices:read`). A part the token cannot read is left out and listed in `meta.omitted`. Never returns the signature image, an IP address, a raw user agent or a payment provider's id. A project estimate is not found here.","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"estimateId":{"type":"string","format":"uuid"},"status":{"type":"string","description":"The estimate's status now."},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was first sent."},"approvedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was approved."},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate expires."},"customer":{"type":"object","properties":{"name":{"type":"string"},"companyName":{"type":["string","null"]}},"required":["name","companyName"],"additionalProperties":false,"description":"Who the estimate is for, as it holds them now (the customer, else the lead). Left out without `customers:read`."},"property":{"type":"object","properties":{"label":{"type":["string","null"]},"address":{"type":["string","null"]}},"required":["label","address"],"additionalProperties":false,"description":"The service address as the estimate recorded it."},"approval":{"anyOf":[{"type":"object","properties":{"approvedAt":{"type":"string","format":"date-time","description":"When the approval was recorded."},"approvedBy":{"type":"string","description":"customer_link: the customer, from the estimate link. office: staff marked it approved in Shortcut. platform_api: an API client approved it. integration: an API integration approved it with the customer's signature record it collected on its own page; Shortcut stored that proof, it did not collect it."},"suppliedBy":{"type":["string","null"],"description":"For `integration`: the API token or connected app that supplied the proof, by name; else null."},"signedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"For `integration`: when the integration says the customer signed; else null."},"signedDocumentOnFile":{"type":"boolean","description":"For `integration`: whether it supplied a signed PDF, kept with the record (on the dispute packet as its hash)."},"signedDocumentReceivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"For `integration`: when Shortcut received the signed PDF: the approval's time when it came with the proof, later when attached afterwards with `POST /v1/estimates/{id}/signed-document`; null when none is on file."},"recordedBy":{"type":["string","null"],"description":"The staff member who recorded an office or API approval."},"signatureRequired":{"type":"boolean"},"signatureMethod":{"type":["string","null"],"description":"typed, drawn, or null when approved without a signature."},"drawnSignatureOnFile":{"type":"boolean","description":"A drawn signature image is stored (it is on the dispute packet, never in this answer)."},"signerName":{"type":"string","description":"The name the signer typed."},"typedSignature":{"type":["string","null"],"description":"The signature the signer typed, for a typed signature."},"signerEmail":{"type":["string","null"],"description":"The email the signer gave. Left out without `customers:read`."},"consentText":{"type":"string","description":"The consent statement the signer accepted."},"device":{"type":["string","null"],"description":"The device, in Shortcut's words (\"Safari on iPhone\"); null when none was recorded."},"ipAddressRecorded":{"type":"boolean","description":"Whether the approval's IP address is on file (it is on the dispute packet, never in this answer)."},"snapshotVerified":{"type":"boolean","description":"The stored copy of the approved estimate still matches the hash written at approval."},"termsShown":{"type":"boolean","description":"Whether terms were shown with the estimate at approval."}},"required":["approvedAt","approvedBy","suppliedBy","signedAt","signedDocumentOnFile","signedDocumentReceivedAt","recordedBy","signatureRequired","signatureMethod","drawnSignatureOnFile","signerName","typedSignature","consentText","device","ipAddressRecorded","snapshotVerified","termsShown"],"additionalProperties":false},{"type":"null"}],"description":"The approval record; null when the estimate was approved before approval evidence was recorded, or is not approved."},"approvedEstimate":{"anyOf":[{"type":"object","properties":{"total":{"type":"number","description":"The total the customer approved, in US dollars."},"subtotal":{"type":["number","null"]},"tax":{"anyOf":[{"type":"object","properties":{"label":{"type":"string"},"ratePct":{"type":"number"},"amount":{"type":"number"}},"required":["label","ratePct","amount"],"additionalProperties":false},{"type":"null"}]},"paymentChoice":{"type":["string","null"],"description":"per_visit or prepay (pay in full), when the estimate offered the choice."},"lines":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The service as the customer saw it."},"option":{"type":["string","null"],"description":"The price option the customer chose, if the line offered options."},"frequency":{"type":"string","description":"One time, On demand, or how often it recurs (\"1× per week\")."},"included":{"type":"boolean","description":"False when the customer left this optional line out."},"lineTotal":{"type":["number","null"],"description":"The line's total the customer saw, in US dollars."}},"required":["name","option","frequency","included","lineTotal"],"additionalProperties":false}}},"required":["total","subtotal","tax","paymentChoice","lines"],"additionalProperties":false},{"type":"null"}],"description":"The estimate exactly as approved, from the snapshot taken at approval."},"deliveries":{"type":"array","items":{"type":"object","properties":{"occurredAt":{"type":"string","format":"date-time","description":"When."},"kind":{"type":"string","description":"estimate_sent, estimate_approved, email_sent, sms_sent, and the like."},"channel":{"type":["string","null"]},"what":{"type":"string","description":"What was sent, in Shortcut's words, never a message body."}},"required":["occurredAt","kind","channel","what"],"additionalProperties":false},"description":"Every send of the estimate and every message to the customer around it, oldest first."},"deliveryCount":{"type":"integer"},"views":{"type":"array","items":{"type":"object","properties":{"viewedAt":{"type":"string","format":"date-time","description":"When the customer opened the estimate."},"device":{"type":["string","null"],"description":"The device, in Shortcut's words (\"Safari on iPhone\"); null when none was recorded."}},"required":["viewedAt","device"],"additionalProperties":false},"description":"The most recent views, newest first."},"viewCount":{"type":"integer"},"paymentAuthorizations":{"type":"array","items":{"type":"object","properties":{"capturedAt":{"type":"string","format":"date-time","description":"When."},"purpose":{"type":"string"},"action":{"type":"string"},"termsVersion":{"type":"string"},"consentText":{"type":"string"},"device":{"type":["string","null"],"description":"The device, in Shortcut's words (\"Safari on iPhone\"); null when none was recorded."}},"required":["capturedAt","purpose","action","termsVersion","consentText","device"],"additionalProperties":false},"description":"Card and autopay consent the customer gave at approval. Left out without `customers:read`."},"visits":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","description":"The visit's day, YYYY-MM-DD."},"service":{"type":"string"},"crew":{"type":["string","null"],"description":"The crew's name. Left out without `teams:read`."},"status":{"type":"string"},"arrivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the crew arrived."},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the visit was completed."}},"required":["date","service","status","arrivedAt","completedAt"],"additionalProperties":false},"description":"The visits of the jobs this estimate made, oldest first (at most 200). Left out without `visits:read`."},"invoicesWithheld":{"type":"boolean","description":"True without `invoices:read`: no invoice was read, which is not \"there are none\"."},"invoices":{"type":"array","items":{"type":"object","properties":{"number":{"type":"integer"},"status":{"type":"string"},"total":{"type":"number"},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When it was sent."},"paidAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When it was paid in full."},"payments":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number"},"method":{"type":"string"},"paidAt":{"type":"string","format":"date-time","description":"When."}},"required":["amount","method","paidAt"],"additionalProperties":false}}},"required":["number","status","total","sentAt","paidAt","payments"],"additionalProperties":false},"description":"The invoices for those visits, with their payments. Left out without `invoices:read` (invoicesWithheld)."}},"required":["estimateId","status","sentAt","approvedAt","expiresAt","property","approval","approvedEstimate","deliveries","deliveryCount","views","viewCount","invoicesWithheld"],"additionalProperties":false},"meta":{"type":"object","properties":{"omitted":{"type":"array","items":{"type":"object","properties":{"section":{"type":"string","description":"The section left out of `data`."},"requiredScope":{"type":"string","description":"The scope that would include it."}},"required":["section","requiredScope"],"additionalProperties":false},"description":"Sections omitted because the token lacks their scope."}},"additionalProperties":true,"description":"Facts about this request beside the object, such as `alreadyReminded` on a repeated reminder. Present only when there is something to report."}},"required":["data"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"402":{"$ref":"#/components/responses/SubscriptionRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}}}
```

## Link an estimate to your id

> Records \`externalId\` as this estimate's id in \`source\`, so the external lookup, upsert and list filter find it. Linking is always explicit. Repeating the same link changes nothing. If the id already belongs to another estimate, or this estimate already has a different id in \`source\`, the request fails with 409 and nothing changes. Any estimate can be linked, whatever its status.\
> \
> Returns \[the estimate object]\(<https://docs.shortcutco.com/developers/reference/objects/estimate).\\>
> \
> \*\*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>). 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":"Estimates","description":"An estimate offers lines of catalog services, each with a cadence and optional price options and products. Approving one creates its jobs.\n\nFields: [The estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate) · [The estimate reminder object](https://docs.shortcutco.com/developers/reference/objects/estimate-reminder)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["estimates: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":{"EstimateWithLines":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The estimate's id."},"object":{"type":"string","const":"estimate","description":"Always `estimate`."},"status":{"type":"string","enum":["draft","pending","approved","declined","voided","expired"],"description":"`draft` until sent; `pending` once sent and waiting for the customer; then `approved`, `declined`, `voided` by the office, or `expired`."},"customerId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The customer the estimate is for, or null."},"leadId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The lead the estimate answers, or null."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property the work is at, or null."},"propertyLabel":{"type":["string","null"],"description":"The property's label when the estimate was written, or null."},"propertyAddress":{"type":["string","null"],"description":"The property's address when the estimate was written, or null."},"message":{"type":["string","null"],"description":"The message to the customer sent with the estimate, or null."},"total":{"type":["number","null"],"description":"The estimate's total in US dollars as the app shows it, or null before it is priced."},"sentTotals":{"anyOf":[{"type":"object","properties":{"subtotal":{"type":"number","description":"The total before sales tax, in US dollars."},"taxRatePct":{"type":["number","null"],"description":"The sales-tax rate the estimate showed, as a percent (8.25 = 8.25%), or null when it showed no tax."},"tax":{"type":"number","description":"The sales tax in US dollars; 0 when `taxRatePct` is null."},"total":{"type":"number","description":"`subtotal` plus `tax`: the total the customer saw."}},"required":["subtotal","taxRatePct","tax","total"],"additionalProperties":false},{"type":"null"}],"description":"The Subtotal, Sales tax and Total the customer saw when the estimate was last sent, before any choice they made on it; null for a draft or an estimate sent before these were recorded. A bounded recurring line counts every visit, an unbounded one a single visit."},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was last sent, ISO 8601 in UTC, or null."},"sentOutsideShortcut":{"type":"boolean","description":"True when your system delivered the estimate and told Shortcut it was sent (`POST /v1/estimates/{id}/mark-sent`): Shortcut sent the customer nothing and sends no reminders or automation messages about it while it is pending."},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate stops being approvable, ISO 8601 in UTC, or null."},"expiredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate expired, ISO 8601 in UTC, or null."},"approvedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was approved, ISO 8601 in UTC, or null."},"declinedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the customer declined it, ISO 8601 in UTC, or null."},"declineReason":{"type":["string","null"],"description":"What the customer said when declining, or null."},"approvalUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"description":"The customer's estimate page (`/p/{token}`), where they approve or decline. Whoever holds it can approve the estimate, so it is returned only to a token with `estimates:write`, and only once the estimate is sent; null otherwise. Opening it records a customer view."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this estimate has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the estimate was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the estimate last changed, ISO 8601 in UTC."},"lines":{"type":"array","items":{"$ref":"#/components/schemas/EstimateLine"},"description":"The estimate's lines, in order."},"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."},"crewNote":{"type":["string","null"],"description":"The estimator's note for the crew. Never shown to the customer; copied onto the jobs approval creates."}},"required":["id","object","status","customerId","leadId","propertyId","propertyLabel","propertyAddress","message","total","sentTotals","sentAt","sentOutsideShortcut","expiresAt","expiredAt","approvedAt","declinedAt","declineReason","approvalUrl","externalReferences","createdAt","updatedAt","lines","sqftRateUnit","crewNote"],"additionalProperties":false,"description":"An estimate with its lines."},"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."},"EstimateLine":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The line's id."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the line was made from, or null for a custom line."},"name":{"type":"string","description":"The line's name."},"description":{"type":["string","null"],"description":"The line's description, or null."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged: per hour, per square foot, flat, or per crew member-hour."},"rate":{"type":"number","description":"The price in US dollars, per `priceStructure`. 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."},"quantity":{"type":["number","null"],"description":"Hours, square feet, or similar that `rate` multiplies, or null."},"subtotal":{"type":"number","description":"The line's price per visit in US dollars."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`recurring`, `one_off`, or `on_demand` (snow work that waits for a storm)."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"With `cadencePeriod`, how many visits per period, or null."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"The period `cadenceFrequency` counts in, or null."},"choiceGroupId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Lines sharing this id are alternatives the customer chooses between, or null."},"isOptional":{"type":"boolean","description":"Whether the customer may leave the line out."},"isRemovedByClient":{"type":"boolean","description":"Whether the customer left the line out when approving."},"selectedOptionId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The option the customer chose, or null."},"sortOrder":{"type":"integer","description":"Position on the estimate, ascending."},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The option's id."},"name":{"type":"string","description":"The option's name."},"rate":{"type":"number","description":"The option's price in US dollars, per `priceStructure`. 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."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"How often the option's work happens."}},"required":["id","name","rate","rateLabel","priceStructure","cadence"],"additionalProperties":false},"description":"Price options the customer can pick between."},"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The product line's id."},"productId":{"type":"string","format":"uuid","description":"The product from the catalog."},"name":{"type":"string","description":"The product's name on the estimate."},"description":{"type":["string","null"],"description":"The product's description, or null."},"unitLabel":{"type":"string","description":"The unit the quantity counts, such as `bag`."},"quantity":{"type":"number","description":"How many units."},"unitPrice":{"type":"number","description":"The customer's price per unit in US dollars."},"taxable":{"type":"boolean","description":"Whether sales tax applies."},"display":{"type":"string","enum":["itemized","included"],"description":"`itemized` shows the product as its own line to the customer; `included` folds it into the service's price."}},"required":["id","productId","name","description","unitLabel","quantity","unitPrice","taxable","display"],"additionalProperties":false},"description":"Products sold with the line."}},"required":["id","serviceId","name","description","priceStructure","rate","rateLabel","quantity","subtotal","cadence","cadenceFrequency","cadencePeriod","choiceGroupId","isOptional","isRemovedByClient","selectedOptionId","sortOrder","options","products"],"additionalProperties":false,"description":"A line of an estimate."},"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/estimates/{id}/external-references/{source}":{"put":{"operationId":"estimates.externalReferences.link","tags":["Estimates"],"summary":"Link an estimate to your id","description":"Records `externalId` as this estimate's id in `source`, so the external lookup, upsert and list filter find it. Linking is always explicit. Repeating the same link changes nothing. If the id already belongs to another estimate, or this estimate already has a different id in `source`, the request fails with 409 and nothing changes. Any estimate can be linked, whatever its status.\n\nReturns [the estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate).\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). 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/EstimateWithLines"},"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 an estimate from your id

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

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Estimates","description":"An estimate offers lines of catalog services, each with a cadence and optional price options and products. Approving one creates its jobs.\n\nFields: [The estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate) · [The estimate reminder object](https://docs.shortcutco.com/developers/reference/objects/estimate-reminder)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["estimates: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":{"EstimateWithLines":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The estimate's id."},"object":{"type":"string","const":"estimate","description":"Always `estimate`."},"status":{"type":"string","enum":["draft","pending","approved","declined","voided","expired"],"description":"`draft` until sent; `pending` once sent and waiting for the customer; then `approved`, `declined`, `voided` by the office, or `expired`."},"customerId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The customer the estimate is for, or null."},"leadId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The lead the estimate answers, or null."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property the work is at, or null."},"propertyLabel":{"type":["string","null"],"description":"The property's label when the estimate was written, or null."},"propertyAddress":{"type":["string","null"],"description":"The property's address when the estimate was written, or null."},"message":{"type":["string","null"],"description":"The message to the customer sent with the estimate, or null."},"total":{"type":["number","null"],"description":"The estimate's total in US dollars as the app shows it, or null before it is priced."},"sentTotals":{"anyOf":[{"type":"object","properties":{"subtotal":{"type":"number","description":"The total before sales tax, in US dollars."},"taxRatePct":{"type":["number","null"],"description":"The sales-tax rate the estimate showed, as a percent (8.25 = 8.25%), or null when it showed no tax."},"tax":{"type":"number","description":"The sales tax in US dollars; 0 when `taxRatePct` is null."},"total":{"type":"number","description":"`subtotal` plus `tax`: the total the customer saw."}},"required":["subtotal","taxRatePct","tax","total"],"additionalProperties":false},{"type":"null"}],"description":"The Subtotal, Sales tax and Total the customer saw when the estimate was last sent, before any choice they made on it; null for a draft or an estimate sent before these were recorded. A bounded recurring line counts every visit, an unbounded one a single visit."},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was last sent, ISO 8601 in UTC, or null."},"sentOutsideShortcut":{"type":"boolean","description":"True when your system delivered the estimate and told Shortcut it was sent (`POST /v1/estimates/{id}/mark-sent`): Shortcut sent the customer nothing and sends no reminders or automation messages about it while it is pending."},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate stops being approvable, ISO 8601 in UTC, or null."},"expiredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate expired, ISO 8601 in UTC, or null."},"approvedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was approved, ISO 8601 in UTC, or null."},"declinedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the customer declined it, ISO 8601 in UTC, or null."},"declineReason":{"type":["string","null"],"description":"What the customer said when declining, or null."},"approvalUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"description":"The customer's estimate page (`/p/{token}`), where they approve or decline. Whoever holds it can approve the estimate, so it is returned only to a token with `estimates:write`, and only once the estimate is sent; null otherwise. Opening it records a customer view."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this estimate has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the estimate was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the estimate last changed, ISO 8601 in UTC."},"lines":{"type":"array","items":{"$ref":"#/components/schemas/EstimateLine"},"description":"The estimate's lines, in order."},"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."},"crewNote":{"type":["string","null"],"description":"The estimator's note for the crew. Never shown to the customer; copied onto the jobs approval creates."}},"required":["id","object","status","customerId","leadId","propertyId","propertyLabel","propertyAddress","message","total","sentTotals","sentAt","sentOutsideShortcut","expiresAt","expiredAt","approvedAt","declinedAt","declineReason","approvalUrl","externalReferences","createdAt","updatedAt","lines","sqftRateUnit","crewNote"],"additionalProperties":false,"description":"An estimate with its lines."},"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."},"EstimateLine":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The line's id."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the line was made from, or null for a custom line."},"name":{"type":"string","description":"The line's name."},"description":{"type":["string","null"],"description":"The line's description, or null."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged: per hour, per square foot, flat, or per crew member-hour."},"rate":{"type":"number","description":"The price in US dollars, per `priceStructure`. 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."},"quantity":{"type":["number","null"],"description":"Hours, square feet, or similar that `rate` multiplies, or null."},"subtotal":{"type":"number","description":"The line's price per visit in US dollars."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`recurring`, `one_off`, or `on_demand` (snow work that waits for a storm)."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"With `cadencePeriod`, how many visits per period, or null."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"The period `cadenceFrequency` counts in, or null."},"choiceGroupId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Lines sharing this id are alternatives the customer chooses between, or null."},"isOptional":{"type":"boolean","description":"Whether the customer may leave the line out."},"isRemovedByClient":{"type":"boolean","description":"Whether the customer left the line out when approving."},"selectedOptionId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The option the customer chose, or null."},"sortOrder":{"type":"integer","description":"Position on the estimate, ascending."},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The option's id."},"name":{"type":"string","description":"The option's name."},"rate":{"type":"number","description":"The option's price in US dollars, per `priceStructure`. 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."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"How often the option's work happens."}},"required":["id","name","rate","rateLabel","priceStructure","cadence"],"additionalProperties":false},"description":"Price options the customer can pick between."},"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The product line's id."},"productId":{"type":"string","format":"uuid","description":"The product from the catalog."},"name":{"type":"string","description":"The product's name on the estimate."},"description":{"type":["string","null"],"description":"The product's description, or null."},"unitLabel":{"type":"string","description":"The unit the quantity counts, such as `bag`."},"quantity":{"type":"number","description":"How many units."},"unitPrice":{"type":"number","description":"The customer's price per unit in US dollars."},"taxable":{"type":"boolean","description":"Whether sales tax applies."},"display":{"type":"string","enum":["itemized","included"],"description":"`itemized` shows the product as its own line to the customer; `included` folds it into the service's price."}},"required":["id","productId","name","description","unitLabel","quantity","unitPrice","taxable","display"],"additionalProperties":false},"description":"Products sold with the line."}},"required":["id","serviceId","name","description","priceStructure","rate","rateLabel","quantity","subtotal","cadence","cadenceFrequency","cadencePeriod","choiceGroupId","isOptional","isRemovedByClient","selectedOptionId","sortOrder","options","products"],"additionalProperties":false,"description":"A line of an estimate."},"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/estimates/{id}/external-references/{source}":{"delete":{"operationId":"estimates.externalReferences.unlink","tags":["Estimates"],"summary":"Unlink an estimate from your id","description":"Removes this estimate's id in `source`. The estimate itself is unchanged. Unlinking when there is no link changes nothing.\n\nReturns [the estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate).","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/EstimateWithLines"},"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"}}}}}}
```

## Mark an estimate sent by your system

> Records that your own system delivered a draft estimate to the customer, without Shortcut sending anything: the draft becomes \`pending\` with \`sentAt\` (now, or the time you send) and \`sentOutsideShortcut: true\`, its totals and sales tax are frozen as at a send, the lead becomes a prospect, and the \`estimate.sent\` webhook fires. Shortcut sends no email or text about the estimate and the estimate-sent delivery automation does not run; automation messages to the customer about it go out on no channel while it is pending and when it expires or is voided, and an API reminder needs the channels named. An expiry that would already have passed (a \`sentAt\` more than 30 days back with no \`expiresAt\`) is refused with \`422 estimate\_not\_sendable\`. \`expiresAt\` sets when it stops being approvable (default: the draft's own, else 30 days after \`sentAt\`). The customer timeline shows it as sent outside Shortcut. When your system sends a pending estimate it marked again, mark it sent again with the resend's \`sentAt\` (after the last send recorded) and, to move the expiry, a new \`expiresAt\`: the estimate stays pending with its first \`sentAt\` and frozen prices, takes the new expiry (else keeps its own), and the resend is recorded as a send on the customer timeline, the estimate's touches and its dispute packet, with \`meta.resent: true\`; no webhook fires. A repeat with no later \`sentAt\` and no new \`expiresAt\` changes nothing and returns \`meta.alreadyMarked: true\`; a \`sentAt\` at or before the last send with a new \`expiresAt\` is \`409 state\_conflict\`, and an estimate already past its expiry is \`409 estimate\_expired\`. One Shortcut sent, or one approved, declined, voided or expired, is \`409 state\_conflict\`. Sending it later with \`POST /v1/estimates/{id}/send\` delivers it from Shortcut and clears the flag. Workspace automations on the lead's new stage run only if the token has \`automations:trigger\`.\
> \
> Returns \[the estimate object]\(<https://docs.shortcutco.com/developers/reference/objects/estimate).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`estimate\_expired\`]\(<https://docs.shortcutco.com/developers/concepts/errors#estimate\\_expired>), \[\`estimate\_not\_sendable\`]\(<https://docs.shortcutco.com/developers/concepts/errors#estimate\\_not\\_sendable>), \[\`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":"Estimates","description":"An estimate offers lines of catalog services, each with a cadence and optional price options and products. Approving one creates its jobs.\n\nFields: [The estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate) · [The estimate reminder object](https://docs.shortcutco.com/developers/reference/objects/estimate-reminder)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["estimates: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":{"EstimateWithLines":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The estimate's id."},"object":{"type":"string","const":"estimate","description":"Always `estimate`."},"status":{"type":"string","enum":["draft","pending","approved","declined","voided","expired"],"description":"`draft` until sent; `pending` once sent and waiting for the customer; then `approved`, `declined`, `voided` by the office, or `expired`."},"customerId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The customer the estimate is for, or null."},"leadId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The lead the estimate answers, or null."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property the work is at, or null."},"propertyLabel":{"type":["string","null"],"description":"The property's label when the estimate was written, or null."},"propertyAddress":{"type":["string","null"],"description":"The property's address when the estimate was written, or null."},"message":{"type":["string","null"],"description":"The message to the customer sent with the estimate, or null."},"total":{"type":["number","null"],"description":"The estimate's total in US dollars as the app shows it, or null before it is priced."},"sentTotals":{"anyOf":[{"type":"object","properties":{"subtotal":{"type":"number","description":"The total before sales tax, in US dollars."},"taxRatePct":{"type":["number","null"],"description":"The sales-tax rate the estimate showed, as a percent (8.25 = 8.25%), or null when it showed no tax."},"tax":{"type":"number","description":"The sales tax in US dollars; 0 when `taxRatePct` is null."},"total":{"type":"number","description":"`subtotal` plus `tax`: the total the customer saw."}},"required":["subtotal","taxRatePct","tax","total"],"additionalProperties":false},{"type":"null"}],"description":"The Subtotal, Sales tax and Total the customer saw when the estimate was last sent, before any choice they made on it; null for a draft or an estimate sent before these were recorded. A bounded recurring line counts every visit, an unbounded one a single visit."},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was last sent, ISO 8601 in UTC, or null."},"sentOutsideShortcut":{"type":"boolean","description":"True when your system delivered the estimate and told Shortcut it was sent (`POST /v1/estimates/{id}/mark-sent`): Shortcut sent the customer nothing and sends no reminders or automation messages about it while it is pending."},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate stops being approvable, ISO 8601 in UTC, or null."},"expiredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate expired, ISO 8601 in UTC, or null."},"approvedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was approved, ISO 8601 in UTC, or null."},"declinedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the customer declined it, ISO 8601 in UTC, or null."},"declineReason":{"type":["string","null"],"description":"What the customer said when declining, or null."},"approvalUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"description":"The customer's estimate page (`/p/{token}`), where they approve or decline. Whoever holds it can approve the estimate, so it is returned only to a token with `estimates:write`, and only once the estimate is sent; null otherwise. Opening it records a customer view."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this estimate has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the estimate was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the estimate last changed, ISO 8601 in UTC."},"lines":{"type":"array","items":{"$ref":"#/components/schemas/EstimateLine"},"description":"The estimate's lines, in order."},"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."},"crewNote":{"type":["string","null"],"description":"The estimator's note for the crew. Never shown to the customer; copied onto the jobs approval creates."}},"required":["id","object","status","customerId","leadId","propertyId","propertyLabel","propertyAddress","message","total","sentTotals","sentAt","sentOutsideShortcut","expiresAt","expiredAt","approvedAt","declinedAt","declineReason","approvalUrl","externalReferences","createdAt","updatedAt","lines","sqftRateUnit","crewNote"],"additionalProperties":false,"description":"An estimate with its lines."},"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."},"EstimateLine":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The line's id."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the line was made from, or null for a custom line."},"name":{"type":"string","description":"The line's name."},"description":{"type":["string","null"],"description":"The line's description, or null."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged: per hour, per square foot, flat, or per crew member-hour."},"rate":{"type":"number","description":"The price in US dollars, per `priceStructure`. 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."},"quantity":{"type":["number","null"],"description":"Hours, square feet, or similar that `rate` multiplies, or null."},"subtotal":{"type":"number","description":"The line's price per visit in US dollars."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`recurring`, `one_off`, or `on_demand` (snow work that waits for a storm)."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"With `cadencePeriod`, how many visits per period, or null."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"The period `cadenceFrequency` counts in, or null."},"choiceGroupId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Lines sharing this id are alternatives the customer chooses between, or null."},"isOptional":{"type":"boolean","description":"Whether the customer may leave the line out."},"isRemovedByClient":{"type":"boolean","description":"Whether the customer left the line out when approving."},"selectedOptionId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The option the customer chose, or null."},"sortOrder":{"type":"integer","description":"Position on the estimate, ascending."},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The option's id."},"name":{"type":"string","description":"The option's name."},"rate":{"type":"number","description":"The option's price in US dollars, per `priceStructure`. 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."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"How often the option's work happens."}},"required":["id","name","rate","rateLabel","priceStructure","cadence"],"additionalProperties":false},"description":"Price options the customer can pick between."},"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The product line's id."},"productId":{"type":"string","format":"uuid","description":"The product from the catalog."},"name":{"type":"string","description":"The product's name on the estimate."},"description":{"type":["string","null"],"description":"The product's description, or null."},"unitLabel":{"type":"string","description":"The unit the quantity counts, such as `bag`."},"quantity":{"type":"number","description":"How many units."},"unitPrice":{"type":"number","description":"The customer's price per unit in US dollars."},"taxable":{"type":"boolean","description":"Whether sales tax applies."},"display":{"type":"string","enum":["itemized","included"],"description":"`itemized` shows the product as its own line to the customer; `included` folds it into the service's price."}},"required":["id","productId","name","description","unitLabel","quantity","unitPrice","taxable","display"],"additionalProperties":false},"description":"Products sold with the line."}},"required":["id","serviceId","name","description","priceStructure","rate","rateLabel","quantity","subtotal","cadence","cadenceFrequency","cadencePeriod","choiceGroupId","isOptional","isRemovedByClient","selectedOptionId","sortOrder","options","products"],"additionalProperties":false,"description":"A line of an estimate."},"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/estimates/{id}/mark-sent":{"post":{"operationId":"estimates.mark_sent","tags":["Estimates"],"summary":"Mark an estimate sent by your system","description":"Records that your own system delivered a draft estimate to the customer, without Shortcut sending anything: the draft becomes `pending` with `sentAt` (now, or the time you send) and `sentOutsideShortcut: true`, its totals and sales tax are frozen as at a send, the lead becomes a prospect, and the `estimate.sent` webhook fires. Shortcut sends no email or text about the estimate and the estimate-sent delivery automation does not run; automation messages to the customer about it go out on no channel while it is pending and when it expires or is voided, and an API reminder needs the channels named. An expiry that would already have passed (a `sentAt` more than 30 days back with no `expiresAt`) is refused with `422 estimate_not_sendable`. `expiresAt` sets when it stops being approvable (default: the draft's own, else 30 days after `sentAt`). The customer timeline shows it as sent outside Shortcut. When your system sends a pending estimate it marked again, mark it sent again with the resend's `sentAt` (after the last send recorded) and, to move the expiry, a new `expiresAt`: the estimate stays pending with its first `sentAt` and frozen prices, takes the new expiry (else keeps its own), and the resend is recorded as a send on the customer timeline, the estimate's touches and its dispute packet, with `meta.resent: true`; no webhook fires. A repeat with no later `sentAt` and no new `expiresAt` changes nothing and returns `meta.alreadyMarked: true`; a `sentAt` at or before the last send with a new `expiresAt` is `409 state_conflict`, and an estimate already past its expiry is `409 estimate_expired`. One Shortcut sent, or one approved, declined, voided or expired, is `409 state_conflict`. Sending it later with `POST /v1/estimates/{id}/send` delivers it from Shortcut and clears the flag. Workspace automations on the lead's new stage run only if the token has `automations:trigger`.\n\nReturns [the estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate).\n\n**Errors specific to this endpoint:** [`estimate_expired`](https://docs.shortcutco.com/developers/concepts/errors#estimate_expired), [`estimate_not_sendable`](https://docs.shortcutco.com/developers/concepts/errors#estimate_not_sendable), [`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":{"sentAt":{"type":"string","format":"date-time","description":"When your system sent it, ISO 8601, not in the future. Defaults to now. Kept to the whole second."},"expiresAt":{"type":"string","format":"date-time","description":"When the estimate stops being approvable, ISO 8601. Must be in the future. Without it, an estimate expires 30 days after it is sent."},"message":{"type":"string","maxLength":4000,"description":"Replaces the estimate's message to the customer, as your system sent it."}},"additionalProperties":false,"description":"The send your system made."}}}},"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/EstimateWithLines"},"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"}}}}}}
```

## Remind about an estimate

> Reminds the customer about a pending estimate by email, text, or both, as Remind does in the app. Without \`sendEmail\` or \`sendSms\` the reminder uses the channels of the latest send; an estimate your system sent (\`sentOutsideShortcut\`) has none, so name them or the request is \`422 reminder\_not\_sent\`. Suppressed and complaint-suppressed addresses and customers who opted out of texts are skipped, and \`skippedChannels\` says why. At most one reminder per estimate in ten minutes (\`429 estimate\_recently\_reminded\`). Repeating a request with the same \`Idempotency-Key\` returns the first reminder with \`meta.alreadyReminded: true\` once it was sent, however late. While the first attempt is still sending, the repeat gets a retryable \`409 reminder\_in\_progress\` with \`Retry-After\`; if that attempt stopped before finishing, a repeat five minutes after it started sends the reminder, so a reminder interrupted mid-send can reach the customer twice. Needs \`estimates:send\`.\
> \
> Returns \[the estimate reminder object]\(<https://docs.shortcutco.com/developers/reference/objects/estimate-reminder).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`customer\_comms\_suppressed\`]\(<https://docs.shortcutco.com/developers/concepts/errors#customer\\_comms\\_suppressed>), \[\`estimate\_recently\_reminded\`]\(<https://docs.shortcutco.com/developers/concepts/errors#estimate\\_recently\\_reminded>), \[\`reminder\_in\_progress\`]\(<https://docs.shortcutco.com/developers/concepts/errors#reminder\\_in\\_progress>), \[\`reminder\_not\_sent\`]\(<https://docs.shortcutco.com/developers/concepts/errors#reminder\\_not\\_sent>), \[\`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":"Estimates","description":"An estimate offers lines of catalog services, each with a cadence and optional price options and products. Approving one creates its jobs.\n\nFields: [The estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate) · [The estimate reminder object](https://docs.shortcutco.com/developers/reference/objects/estimate-reminder)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["estimates:send","estimates:read"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.","schema":{"type":"string","maxLength":255}}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"schemas":{"EstimateReminder":{"type":"object","properties":{"object":{"type":"string","const":"estimate_reminder","description":"Always `estimate_reminder`."},"estimateId":{"type":"string","format":"uuid","description":"The estimate reminded about."},"remindedAt":{"type":"string","format":"date-time","description":"When the reminder went out, ISO 8601 in UTC."},"sentChannels":{"type":"array","items":{"type":"string","enum":["email","sms"]},"description":"Where the reminder went."},"skippedChannels":{"type":"array","items":{"type":"string"},"description":"Why a requested channel was skipped, one sentence each."}},"required":["object","estimateId","remindedAt","sentChannels","skippedChannels"],"additionalProperties":false,"description":"A reminder sent to the customer about an estimate."},"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/estimates/{id}/remind":{"post":{"operationId":"estimates.remind","tags":["Estimates"],"summary":"Remind about an estimate","description":"Reminds the customer about a pending estimate by email, text, or both, as Remind does in the app. Without `sendEmail` or `sendSms` the reminder uses the channels of the latest send; an estimate your system sent (`sentOutsideShortcut`) has none, so name them or the request is `422 reminder_not_sent`. Suppressed and complaint-suppressed addresses and customers who opted out of texts are skipped, and `skippedChannels` says why. At most one reminder per estimate in ten minutes (`429 estimate_recently_reminded`). Repeating a request with the same `Idempotency-Key` returns the first reminder with `meta.alreadyReminded: true` once it was sent, however late. While the first attempt is still sending, the repeat gets a retryable `409 reminder_in_progress` with `Retry-After`; if that attempt stopped before finishing, a repeat five minutes after it started sends the reminder, so a reminder interrupted mid-send can reach the customer twice. Needs `estimates:send`.\n\nReturns [the estimate reminder object](https://docs.shortcutco.com/developers/reference/objects/estimate-reminder).\n\n**Errors specific to this endpoint:** [`customer_comms_suppressed`](https://docs.shortcutco.com/developers/concepts/errors#customer_comms_suppressed), [`estimate_recently_reminded`](https://docs.shortcutco.com/developers/concepts/errors#estimate_recently_reminded), [`reminder_in_progress`](https://docs.shortcutco.com/developers/concepts/errors#reminder_in_progress), [`reminder_not_sent`](https://docs.shortcutco.com/developers/concepts/errors#reminder_not_sent), [`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":{"sendEmail":{"type":"boolean","description":"Email a reminder. Defaults to the channels of the latest send."},"sendSms":{"type":"boolean","description":"Text a reminder. Defaults to the channels of the latest send."}},"additionalProperties":false,"description":"How to remind the customer."}}}},"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/EstimateReminder"},"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"}}}}}}
```

## Send an estimate

> Sends an estimate to the customer by email, text, or both, exactly as Send does in the app: a draft becomes \`pending\`, the lead becomes a prospect, and your estimate-sent automations deliver the link whatever the token's scopes. Workspace email settings, unsubscribed and complaint-suppressed addresses, and customers who opted out of texts are honored as in the app. Sending a pending estimate again does not send a second message, except one your system delivered (\`sentOutsideShortcut\`, from mark-sent): sending it here delivers it from Shortcut for the first time and clears that flag. Needs \`estimates:send\`. Other automations, such as those for the lead's new stage, run only if the token has \`automations:trigger\`.\
> \
> Returns \[the estimate object]\(<https://docs.shortcutco.com/developers/reference/objects/estimate).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`customer\_comms\_suppressed\`]\(<https://docs.shortcutco.com/developers/concepts/errors#customer\\_comms\\_suppressed>), \[\`estimate\_not\_sendable\`]\(<https://docs.shortcutco.com/developers/concepts/errors#estimate\\_not\\_sendable>), \[\`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":"Estimates","description":"An estimate offers lines of catalog services, each with a cadence and optional price options and products. Approving one creates its jobs.\n\nFields: [The estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate) · [The estimate reminder object](https://docs.shortcutco.com/developers/reference/objects/estimate-reminder)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["estimates:send","estimates:read"]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"scut_<env>_<id>_<secret>","description":"A workspace API token. Each operation lists the scopes it needs; `write` implies `read`, and `send`/`complete` are never implied."}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"Any string up to 255 characters. Retrying with the same key returns the first response instead of repeating the write, for 24 hours.","schema":{"type":"string","maxLength":255}}},"headers":{"RateLimitLimit":{"schema":{"type":"integer"},"description":"Requests allowed in the tightest window."},"RateLimitRemaining":{"schema":{"type":"integer"},"description":"Requests left in that window."},"RateLimitReset":{"schema":{"type":"integer"},"description":"Seconds until that window resets."}},"schemas":{"EstimateWithLines":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The estimate's id."},"object":{"type":"string","const":"estimate","description":"Always `estimate`."},"status":{"type":"string","enum":["draft","pending","approved","declined","voided","expired"],"description":"`draft` until sent; `pending` once sent and waiting for the customer; then `approved`, `declined`, `voided` by the office, or `expired`."},"customerId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The customer the estimate is for, or null."},"leadId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The lead the estimate answers, or null."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property the work is at, or null."},"propertyLabel":{"type":["string","null"],"description":"The property's label when the estimate was written, or null."},"propertyAddress":{"type":["string","null"],"description":"The property's address when the estimate was written, or null."},"message":{"type":["string","null"],"description":"The message to the customer sent with the estimate, or null."},"total":{"type":["number","null"],"description":"The estimate's total in US dollars as the app shows it, or null before it is priced."},"sentTotals":{"anyOf":[{"type":"object","properties":{"subtotal":{"type":"number","description":"The total before sales tax, in US dollars."},"taxRatePct":{"type":["number","null"],"description":"The sales-tax rate the estimate showed, as a percent (8.25 = 8.25%), or null when it showed no tax."},"tax":{"type":"number","description":"The sales tax in US dollars; 0 when `taxRatePct` is null."},"total":{"type":"number","description":"`subtotal` plus `tax`: the total the customer saw."}},"required":["subtotal","taxRatePct","tax","total"],"additionalProperties":false},{"type":"null"}],"description":"The Subtotal, Sales tax and Total the customer saw when the estimate was last sent, before any choice they made on it; null for a draft or an estimate sent before these were recorded. A bounded recurring line counts every visit, an unbounded one a single visit."},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was last sent, ISO 8601 in UTC, or null."},"sentOutsideShortcut":{"type":"boolean","description":"True when your system delivered the estimate and told Shortcut it was sent (`POST /v1/estimates/{id}/mark-sent`): Shortcut sent the customer nothing and sends no reminders or automation messages about it while it is pending."},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate stops being approvable, ISO 8601 in UTC, or null."},"expiredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate expired, ISO 8601 in UTC, or null."},"approvedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was approved, ISO 8601 in UTC, or null."},"declinedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the customer declined it, ISO 8601 in UTC, or null."},"declineReason":{"type":["string","null"],"description":"What the customer said when declining, or null."},"approvalUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"description":"The customer's estimate page (`/p/{token}`), where they approve or decline. Whoever holds it can approve the estimate, so it is returned only to a token with `estimates:write`, and only once the estimate is sent; null otherwise. Opening it records a customer view."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this estimate has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the estimate was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the estimate last changed, ISO 8601 in UTC."},"lines":{"type":"array","items":{"$ref":"#/components/schemas/EstimateLine"},"description":"The estimate's lines, in order."},"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."},"crewNote":{"type":["string","null"],"description":"The estimator's note for the crew. Never shown to the customer; copied onto the jobs approval creates."}},"required":["id","object","status","customerId","leadId","propertyId","propertyLabel","propertyAddress","message","total","sentTotals","sentAt","sentOutsideShortcut","expiresAt","expiredAt","approvedAt","declinedAt","declineReason","approvalUrl","externalReferences","createdAt","updatedAt","lines","sqftRateUnit","crewNote"],"additionalProperties":false,"description":"An estimate with its lines."},"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."},"EstimateLine":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The line's id."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the line was made from, or null for a custom line."},"name":{"type":"string","description":"The line's name."},"description":{"type":["string","null"],"description":"The line's description, or null."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged: per hour, per square foot, flat, or per crew member-hour."},"rate":{"type":"number","description":"The price in US dollars, per `priceStructure`. 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."},"quantity":{"type":["number","null"],"description":"Hours, square feet, or similar that `rate` multiplies, or null."},"subtotal":{"type":"number","description":"The line's price per visit in US dollars."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`recurring`, `one_off`, or `on_demand` (snow work that waits for a storm)."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"With `cadencePeriod`, how many visits per period, or null."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"The period `cadenceFrequency` counts in, or null."},"choiceGroupId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Lines sharing this id are alternatives the customer chooses between, or null."},"isOptional":{"type":"boolean","description":"Whether the customer may leave the line out."},"isRemovedByClient":{"type":"boolean","description":"Whether the customer left the line out when approving."},"selectedOptionId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The option the customer chose, or null."},"sortOrder":{"type":"integer","description":"Position on the estimate, ascending."},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The option's id."},"name":{"type":"string","description":"The option's name."},"rate":{"type":"number","description":"The option's price in US dollars, per `priceStructure`. 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."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"How often the option's work happens."}},"required":["id","name","rate","rateLabel","priceStructure","cadence"],"additionalProperties":false},"description":"Price options the customer can pick between."},"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The product line's id."},"productId":{"type":"string","format":"uuid","description":"The product from the catalog."},"name":{"type":"string","description":"The product's name on the estimate."},"description":{"type":["string","null"],"description":"The product's description, or null."},"unitLabel":{"type":"string","description":"The unit the quantity counts, such as `bag`."},"quantity":{"type":"number","description":"How many units."},"unitPrice":{"type":"number","description":"The customer's price per unit in US dollars."},"taxable":{"type":"boolean","description":"Whether sales tax applies."},"display":{"type":"string","enum":["itemized","included"],"description":"`itemized` shows the product as its own line to the customer; `included` folds it into the service's price."}},"required":["id","productId","name","description","unitLabel","quantity","unitPrice","taxable","display"],"additionalProperties":false},"description":"Products sold with the line."}},"required":["id","serviceId","name","description","priceStructure","rate","rateLabel","quantity","subtotal","cadence","cadenceFrequency","cadencePeriod","choiceGroupId","isOptional","isRemovedByClient","selectedOptionId","sortOrder","options","products"],"additionalProperties":false,"description":"A line of an estimate."},"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/estimates/{id}/send":{"post":{"operationId":"estimates.send","tags":["Estimates"],"summary":"Send an estimate","description":"Sends an estimate to the customer by email, text, or both, exactly as Send does in the app: a draft becomes `pending`, the lead becomes a prospect, and your estimate-sent automations deliver the link whatever the token's scopes. Workspace email settings, unsubscribed and complaint-suppressed addresses, and customers who opted out of texts are honored as in the app. Sending a pending estimate again does not send a second message, except one your system delivered (`sentOutsideShortcut`, from mark-sent): sending it here delivers it from Shortcut for the first time and clears that flag. Needs `estimates:send`. Other automations, such as those for the lead's new stage, run only if the token has `automations:trigger`.\n\nReturns [the estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate).\n\n**Errors specific to this endpoint:** [`customer_comms_suppressed`](https://docs.shortcutco.com/developers/concepts/errors#customer_comms_suppressed), [`estimate_not_sendable`](https://docs.shortcutco.com/developers/concepts/errors#estimate_not_sendable), [`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":{"sendEmail":{"type":"boolean","default":true,"description":"Email the estimate link. Defaults to true."},"sendSms":{"type":"boolean","default":false,"description":"Text the estimate link. Customers who opted out of texts are skipped. Defaults to false."},"message":{"type":"string","maxLength":4000,"description":"Replaces the message to the customer."}},"additionalProperties":false,"description":"How to send the estimate."}}}},"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/EstimateWithLines"},"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"}}}}}}
```

## Attach the signed document to an approval

> Adds the signed PDF your system produced to an estimate your integration already approved with \`proof\`, for when the document is ready only after the approval. The same rule as \`proof.signedDocument\`: a complete PDF, base64, at most 2.5 MB (this call takes bodies up to 3.5 MB). It is kept with the approval record as supplied by your integration, with the time Shortcut received it, and appears wherever a document sent with the proof does: the app's approval record, the dispute packet (which says it arrived after the approval), and \`signedDocumentOnFile\` and \`signedDocumentReceivedAt\` in \`GET /v1/estimates/{id}/evidence\`. An approval takes one document: sending the same PDF again changes nothing and returns \`meta.alreadyOnFile: true\`; a different one is \`409 signed\_document\_on\_file\`. An estimate that is not approved is \`409 state\_conflict\`, one approved without \`proof\` (in the app, on the estimate page, or by the API without it) is \`409 state\_conflict\`, and one approved before approval records were kept is \`409 no\_approval\_record\`. Nothing else about the estimate changes, and nobody is messaged.\
> \
> Returns \[the estimate object]\(<https://docs.shortcutco.com/developers/reference/objects/estimate).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`no\_approval\_record\`]\(<https://docs.shortcutco.com/developers/concepts/errors#no\\_approval\\_record>), \[\`signed\_document\_on\_file\`]\(<https://docs.shortcutco.com/developers/concepts/errors#signed\\_document\\_on\\_file>), \[\`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":"Estimates","description":"An estimate offers lines of catalog services, each with a cadence and optional price options and products. Approving one creates its jobs.\n\nFields: [The estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate) · [The estimate reminder object](https://docs.shortcutco.com/developers/reference/objects/estimate-reminder)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["estimates: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":{"EstimateWithLines":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The estimate's id."},"object":{"type":"string","const":"estimate","description":"Always `estimate`."},"status":{"type":"string","enum":["draft","pending","approved","declined","voided","expired"],"description":"`draft` until sent; `pending` once sent and waiting for the customer; then `approved`, `declined`, `voided` by the office, or `expired`."},"customerId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The customer the estimate is for, or null."},"leadId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The lead the estimate answers, or null."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property the work is at, or null."},"propertyLabel":{"type":["string","null"],"description":"The property's label when the estimate was written, or null."},"propertyAddress":{"type":["string","null"],"description":"The property's address when the estimate was written, or null."},"message":{"type":["string","null"],"description":"The message to the customer sent with the estimate, or null."},"total":{"type":["number","null"],"description":"The estimate's total in US dollars as the app shows it, or null before it is priced."},"sentTotals":{"anyOf":[{"type":"object","properties":{"subtotal":{"type":"number","description":"The total before sales tax, in US dollars."},"taxRatePct":{"type":["number","null"],"description":"The sales-tax rate the estimate showed, as a percent (8.25 = 8.25%), or null when it showed no tax."},"tax":{"type":"number","description":"The sales tax in US dollars; 0 when `taxRatePct` is null."},"total":{"type":"number","description":"`subtotal` plus `tax`: the total the customer saw."}},"required":["subtotal","taxRatePct","tax","total"],"additionalProperties":false},{"type":"null"}],"description":"The Subtotal, Sales tax and Total the customer saw when the estimate was last sent, before any choice they made on it; null for a draft or an estimate sent before these were recorded. A bounded recurring line counts every visit, an unbounded one a single visit."},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was last sent, ISO 8601 in UTC, or null."},"sentOutsideShortcut":{"type":"boolean","description":"True when your system delivered the estimate and told Shortcut it was sent (`POST /v1/estimates/{id}/mark-sent`): Shortcut sent the customer nothing and sends no reminders or automation messages about it while it is pending."},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate stops being approvable, ISO 8601 in UTC, or null."},"expiredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate expired, ISO 8601 in UTC, or null."},"approvedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was approved, ISO 8601 in UTC, or null."},"declinedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the customer declined it, ISO 8601 in UTC, or null."},"declineReason":{"type":["string","null"],"description":"What the customer said when declining, or null."},"approvalUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"description":"The customer's estimate page (`/p/{token}`), where they approve or decline. Whoever holds it can approve the estimate, so it is returned only to a token with `estimates:write`, and only once the estimate is sent; null otherwise. Opening it records a customer view."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this estimate has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the estimate was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the estimate last changed, ISO 8601 in UTC."},"lines":{"type":"array","items":{"$ref":"#/components/schemas/EstimateLine"},"description":"The estimate's lines, in order."},"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."},"crewNote":{"type":["string","null"],"description":"The estimator's note for the crew. Never shown to the customer; copied onto the jobs approval creates."}},"required":["id","object","status","customerId","leadId","propertyId","propertyLabel","propertyAddress","message","total","sentTotals","sentAt","sentOutsideShortcut","expiresAt","expiredAt","approvedAt","declinedAt","declineReason","approvalUrl","externalReferences","createdAt","updatedAt","lines","sqftRateUnit","crewNote"],"additionalProperties":false,"description":"An estimate with its lines."},"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."},"EstimateLine":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The line's id."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the line was made from, or null for a custom line."},"name":{"type":"string","description":"The line's name."},"description":{"type":["string","null"],"description":"The line's description, or null."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged: per hour, per square foot, flat, or per crew member-hour."},"rate":{"type":"number","description":"The price in US dollars, per `priceStructure`. 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."},"quantity":{"type":["number","null"],"description":"Hours, square feet, or similar that `rate` multiplies, or null."},"subtotal":{"type":"number","description":"The line's price per visit in US dollars."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`recurring`, `one_off`, or `on_demand` (snow work that waits for a storm)."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"With `cadencePeriod`, how many visits per period, or null."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"The period `cadenceFrequency` counts in, or null."},"choiceGroupId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Lines sharing this id are alternatives the customer chooses between, or null."},"isOptional":{"type":"boolean","description":"Whether the customer may leave the line out."},"isRemovedByClient":{"type":"boolean","description":"Whether the customer left the line out when approving."},"selectedOptionId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The option the customer chose, or null."},"sortOrder":{"type":"integer","description":"Position on the estimate, ascending."},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The option's id."},"name":{"type":"string","description":"The option's name."},"rate":{"type":"number","description":"The option's price in US dollars, per `priceStructure`. 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."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"How often the option's work happens."}},"required":["id","name","rate","rateLabel","priceStructure","cadence"],"additionalProperties":false},"description":"Price options the customer can pick between."},"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The product line's id."},"productId":{"type":"string","format":"uuid","description":"The product from the catalog."},"name":{"type":"string","description":"The product's name on the estimate."},"description":{"type":["string","null"],"description":"The product's description, or null."},"unitLabel":{"type":"string","description":"The unit the quantity counts, such as `bag`."},"quantity":{"type":"number","description":"How many units."},"unitPrice":{"type":"number","description":"The customer's price per unit in US dollars."},"taxable":{"type":"boolean","description":"Whether sales tax applies."},"display":{"type":"string","enum":["itemized","included"],"description":"`itemized` shows the product as its own line to the customer; `included` folds it into the service's price."}},"required":["id","productId","name","description","unitLabel","quantity","unitPrice","taxable","display"],"additionalProperties":false},"description":"Products sold with the line."}},"required":["id","serviceId","name","description","priceStructure","rate","rateLabel","quantity","subtotal","cadence","cadenceFrequency","cadencePeriod","choiceGroupId","isOptional","isRemovedByClient","selectedOptionId","sortOrder","options","products"],"additionalProperties":false,"description":"A line of an estimate."},"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/estimates/{id}/signed-document":{"post":{"operationId":"estimates.signed_document.attach","tags":["Estimates"],"summary":"Attach the signed document to an approval","description":"Adds the signed PDF your system produced to an estimate your integration already approved with `proof`, for when the document is ready only after the approval. The same rule as `proof.signedDocument`: a complete PDF, base64, at most 2.5 MB (this call takes bodies up to 3.5 MB). It is kept with the approval record as supplied by your integration, with the time Shortcut received it, and appears wherever a document sent with the proof does: the app's approval record, the dispute packet (which says it arrived after the approval), and `signedDocumentOnFile` and `signedDocumentReceivedAt` in `GET /v1/estimates/{id}/evidence`. An approval takes one document: sending the same PDF again changes nothing and returns `meta.alreadyOnFile: true`; a different one is `409 signed_document_on_file`. An estimate that is not approved is `409 state_conflict`, one approved without `proof` (in the app, on the estimate page, or by the API without it) is `409 state_conflict`, and one approved before approval records were kept is `409 no_approval_record`. Nothing else about the estimate changes, and nobody is messaged.\n\nReturns [the estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate).\n\n**Errors specific to this endpoint:** [`no_approval_record`](https://docs.shortcutco.com/developers/concepts/errors#no_approval_record), [`signed_document_on_file`](https://docs.shortcutco.com/developers/concepts/errors#signed_document_on_file), [`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":{"contentBase64":{"type":"string","maxLength":3333338,"description":"The signed document as a base64 PDF, at most 2.5 MB."}},"required":["contentBase64"],"additionalProperties":false,"description":"The signed document for an approval your integration recorded with `proof`."}}}},"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/EstimateWithLines"},"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 an estimate's sends, reminders and opens

> Everything that happened to one estimate, oldest first: created, each send, the estimate's texts with their delivery state, reminder emails and texts, an estimate automation's messages, each time the customer opened the link (the latest 100; \`viewCount\` counts them all), and approved, declined (with the customer's reason), voided or expired. Opens of the estimate email itself are not stored. A customer's questions arrive in Messaging, not here.

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Estimates","description":"An estimate offers lines of catalog services, each with a cadence and optional price options and products. Approving one creates its jobs.\n\nFields: [The estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate) · [The estimate reminder object](https://docs.shortcutco.com/developers/reference/objects/estimate-reminder)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["estimates: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/estimates/{id}/touches":{"get":{"operationId":"estimates.touches.get","tags":["Estimates"],"summary":"List an estimate's sends, reminders and opens","description":"Everything that happened to one estimate, oldest first: created, each send, the estimate's texts with their delivery state, reminder emails and texts, an estimate automation's messages, each time the customer opened the link (the latest 100; `viewCount` counts them all), and approved, declined (with the customer's reason), voided or expired. Opens of the estimate email itself are not stored. A customer's questions arrive in Messaging, not here.","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"estimateId":{"type":"string","format":"uuid"},"status":{"type":"string","description":"The estimate's status now."},"touches":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","format":"date-time","description":"When, ISO 8601 in UTC."},"kind":{"type":"string","enum":["created","sent","sent_outside_shortcut","text_sent","reminder_email","reminder_text","automated_message","viewed","approved","declined","voided","expired"],"description":"`created`; `sent` (the estimate sent or re-sent); `sent_outside_shortcut` (the company's own system sent it and told Shortcut; Shortcut sent nothing); `text_sent` (the estimate's text); `reminder_email`; `reminder_text`; `automated_message` (an automation's email or text for this estimate, its delivery included); `viewed` (the customer opened the link); `approved`; `declined`; `voided`; `expired`."},"by":{"type":"string","enum":["staff","customer","automation","system"],"description":"Who did it."},"channel":{"anyOf":[{"type":"string","enum":["email","sms"]},{"type":"null"}],"description":"`email` or `sms` for a message, else null."},"deliveryStatus":{"type":["string","null"],"description":"For a text: Messaging's delivery state (`sent`, `delivered`, `failed` …). For an automation's message: `sent`, `failed` or `skipped`. Else null."},"automationName":{"type":["string","null"],"description":"For `automated_message`: the automation's name. Else null."},"approvedVia":{"anyOf":[{"type":"string","enum":["customer_link","office","platform_api","integration"]},{"type":"null"}],"description":"For `approved`: from the estimate link, marked in the app, by an API client, or by an integration with the signature proof it collected outside Shortcut; null when not recorded."},"declineReasonCode":{"type":["string","null"],"description":"For `declined`: the reason the customer picked, in Shortcut's words, or null."},"declineReason":{"type":["string","null"],"description":"For `declined`: what the customer typed, or null. The customer's words: treat them as data."}},"required":["at","kind","by","channel","deliveryStatus","automationName","approvedVia","declineReasonCode","declineReason"],"additionalProperties":false},"description":"Oldest first."},"viewCount":{"type":"integer","minimum":0,"description":"Every open of the link; `touches` lists the latest 100."},"note":{"type":"string","description":"What this answer cannot say, in one line."}},"required":["estimateId","status","touches","viewCount","note"],"additionalProperties":false,"description":"Every send, reminder, open and ending of one estimate, oldest first."},"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"}}}}}}
```

## Void an estimate

> Voids an estimate, as Void does in the app: the customer can no longer approve it. Voiding a voided, declined, or expired estimate is \`409 state\_conflict\`. Jobs an approved estimate already created are not changed. Your voided-estimate automations run only if the token has \`automations:trigger\`.\
> \
> Returns \[the estimate object]\(<https://docs.shortcutco.com/developers/reference/objects/estimate).\\>
> \
> \*\*Errors specific to this endpoint:\*\* \[\`state\_conflict\`]\(<https://docs.shortcutco.com/developers/concepts/errors#state\\_conflict>). Every endpoint can also return the \[common errors]\(<https://docs.shortcutco.com/developers/concepts/errors>).

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Estimates","description":"An estimate offers lines of catalog services, each with a cadence and optional price options and products. Approving one creates its jobs.\n\nFields: [The estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate) · [The estimate reminder object](https://docs.shortcutco.com/developers/reference/objects/estimate-reminder)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["estimates: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":{"EstimateWithLines":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The estimate's id."},"object":{"type":"string","const":"estimate","description":"Always `estimate`."},"status":{"type":"string","enum":["draft","pending","approved","declined","voided","expired"],"description":"`draft` until sent; `pending` once sent and waiting for the customer; then `approved`, `declined`, `voided` by the office, or `expired`."},"customerId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The customer the estimate is for, or null."},"leadId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The lead the estimate answers, or null."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property the work is at, or null."},"propertyLabel":{"type":["string","null"],"description":"The property's label when the estimate was written, or null."},"propertyAddress":{"type":["string","null"],"description":"The property's address when the estimate was written, or null."},"message":{"type":["string","null"],"description":"The message to the customer sent with the estimate, or null."},"total":{"type":["number","null"],"description":"The estimate's total in US dollars as the app shows it, or null before it is priced."},"sentTotals":{"anyOf":[{"type":"object","properties":{"subtotal":{"type":"number","description":"The total before sales tax, in US dollars."},"taxRatePct":{"type":["number","null"],"description":"The sales-tax rate the estimate showed, as a percent (8.25 = 8.25%), or null when it showed no tax."},"tax":{"type":"number","description":"The sales tax in US dollars; 0 when `taxRatePct` is null."},"total":{"type":"number","description":"`subtotal` plus `tax`: the total the customer saw."}},"required":["subtotal","taxRatePct","tax","total"],"additionalProperties":false},{"type":"null"}],"description":"The Subtotal, Sales tax and Total the customer saw when the estimate was last sent, before any choice they made on it; null for a draft or an estimate sent before these were recorded. A bounded recurring line counts every visit, an unbounded one a single visit."},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was last sent, ISO 8601 in UTC, or null."},"sentOutsideShortcut":{"type":"boolean","description":"True when your system delivered the estimate and told Shortcut it was sent (`POST /v1/estimates/{id}/mark-sent`): Shortcut sent the customer nothing and sends no reminders or automation messages about it while it is pending."},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate stops being approvable, ISO 8601 in UTC, or null."},"expiredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate expired, ISO 8601 in UTC, or null."},"approvedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was approved, ISO 8601 in UTC, or null."},"declinedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the customer declined it, ISO 8601 in UTC, or null."},"declineReason":{"type":["string","null"],"description":"What the customer said when declining, or null."},"approvalUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"description":"The customer's estimate page (`/p/{token}`), where they approve or decline. Whoever holds it can approve the estimate, so it is returned only to a token with `estimates:write`, and only once the estimate is sent; null otherwise. Opening it records a customer view."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this estimate has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the estimate was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the estimate last changed, ISO 8601 in UTC."},"lines":{"type":"array","items":{"$ref":"#/components/schemas/EstimateLine"},"description":"The estimate's lines, in order."},"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."},"crewNote":{"type":["string","null"],"description":"The estimator's note for the crew. Never shown to the customer; copied onto the jobs approval creates."}},"required":["id","object","status","customerId","leadId","propertyId","propertyLabel","propertyAddress","message","total","sentTotals","sentAt","sentOutsideShortcut","expiresAt","expiredAt","approvedAt","declinedAt","declineReason","approvalUrl","externalReferences","createdAt","updatedAt","lines","sqftRateUnit","crewNote"],"additionalProperties":false,"description":"An estimate with its lines."},"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."},"EstimateLine":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The line's id."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the line was made from, or null for a custom line."},"name":{"type":"string","description":"The line's name."},"description":{"type":["string","null"],"description":"The line's description, or null."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged: per hour, per square foot, flat, or per crew member-hour."},"rate":{"type":"number","description":"The price in US dollars, per `priceStructure`. 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."},"quantity":{"type":["number","null"],"description":"Hours, square feet, or similar that `rate` multiplies, or null."},"subtotal":{"type":"number","description":"The line's price per visit in US dollars."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`recurring`, `one_off`, or `on_demand` (snow work that waits for a storm)."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"With `cadencePeriod`, how many visits per period, or null."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"The period `cadenceFrequency` counts in, or null."},"choiceGroupId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Lines sharing this id are alternatives the customer chooses between, or null."},"isOptional":{"type":"boolean","description":"Whether the customer may leave the line out."},"isRemovedByClient":{"type":"boolean","description":"Whether the customer left the line out when approving."},"selectedOptionId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The option the customer chose, or null."},"sortOrder":{"type":"integer","description":"Position on the estimate, ascending."},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The option's id."},"name":{"type":"string","description":"The option's name."},"rate":{"type":"number","description":"The option's price in US dollars, per `priceStructure`. 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."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"How often the option's work happens."}},"required":["id","name","rate","rateLabel","priceStructure","cadence"],"additionalProperties":false},"description":"Price options the customer can pick between."},"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The product line's id."},"productId":{"type":"string","format":"uuid","description":"The product from the catalog."},"name":{"type":"string","description":"The product's name on the estimate."},"description":{"type":["string","null"],"description":"The product's description, or null."},"unitLabel":{"type":"string","description":"The unit the quantity counts, such as `bag`."},"quantity":{"type":"number","description":"How many units."},"unitPrice":{"type":"number","description":"The customer's price per unit in US dollars."},"taxable":{"type":"boolean","description":"Whether sales tax applies."},"display":{"type":"string","enum":["itemized","included"],"description":"`itemized` shows the product as its own line to the customer; `included` folds it into the service's price."}},"required":["id","productId","name","description","unitLabel","quantity","unitPrice","taxable","display"],"additionalProperties":false},"description":"Products sold with the line."}},"required":["id","serviceId","name","description","priceStructure","rate","rateLabel","quantity","subtotal","cadence","cadenceFrequency","cadencePeriod","choiceGroupId","isOptional","isRemovedByClient","selectedOptionId","sortOrder","options","products"],"additionalProperties":false,"description":"A line of an estimate."},"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/estimates/{id}/void":{"post":{"operationId":"estimates.void","tags":["Estimates"],"summary":"Void an estimate","description":"Voids an estimate, as Void does in the app: the customer can no longer approve it. Voiding a voided, declined, or expired estimate is `409 state_conflict`. Jobs an approved estimate already created are not changed. Your voided-estimate automations run only if the token has `automations:trigger`.\n\nReturns [the estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate).\n\n**Errors specific to this endpoint:** [`state_conflict`](https://docs.shortcutco.com/developers/concepts/errors#state_conflict). Every endpoint can also return the [common errors](https://docs.shortcutco.com/developers/concepts/errors).","parameters":[{"name":"id","in":"path","required":true,"description":"The object's id.","schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"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/EstimateWithLines"},"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 an estimate by your id

> The estimate your id maps to, as \`GET /v1/estimates/{id}\` returns it, or 404.\
> \
> Returns \[the estimate object]\(<https://docs.shortcutco.com/developers/reference/objects/estimate>).

```json
{"openapi":"3.1.0","info":{"title":"Shortcut API","version":"v1"},"tags":[{"name":"Estimates","description":"An estimate offers lines of catalog services, each with a cadence and optional price options and products. Approving one creates its jobs.\n\nFields: [The estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate) · [The estimate reminder object](https://docs.shortcutco.com/developers/reference/objects/estimate-reminder)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["estimates: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":{"EstimateWithLinesAndEngagement":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The estimate's id."},"object":{"type":"string","const":"estimate","description":"Always `estimate`."},"status":{"type":"string","enum":["draft","pending","approved","declined","voided","expired"],"description":"`draft` until sent; `pending` once sent and waiting for the customer; then `approved`, `declined`, `voided` by the office, or `expired`."},"customerId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The customer the estimate is for, or null."},"leadId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The lead the estimate answers, or null."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property the work is at, or null."},"propertyLabel":{"type":["string","null"],"description":"The property's label when the estimate was written, or null."},"propertyAddress":{"type":["string","null"],"description":"The property's address when the estimate was written, or null."},"message":{"type":["string","null"],"description":"The message to the customer sent with the estimate, or null."},"total":{"type":["number","null"],"description":"The estimate's total in US dollars as the app shows it, or null before it is priced."},"sentTotals":{"anyOf":[{"type":"object","properties":{"subtotal":{"type":"number","description":"The total before sales tax, in US dollars."},"taxRatePct":{"type":["number","null"],"description":"The sales-tax rate the estimate showed, as a percent (8.25 = 8.25%), or null when it showed no tax."},"tax":{"type":"number","description":"The sales tax in US dollars; 0 when `taxRatePct` is null."},"total":{"type":"number","description":"`subtotal` plus `tax`: the total the customer saw."}},"required":["subtotal","taxRatePct","tax","total"],"additionalProperties":false},{"type":"null"}],"description":"The Subtotal, Sales tax and Total the customer saw when the estimate was last sent, before any choice they made on it; null for a draft or an estimate sent before these were recorded. A bounded recurring line counts every visit, an unbounded one a single visit."},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was last sent, ISO 8601 in UTC, or null."},"sentOutsideShortcut":{"type":"boolean","description":"True when your system delivered the estimate and told Shortcut it was sent (`POST /v1/estimates/{id}/mark-sent`): Shortcut sent the customer nothing and sends no reminders or automation messages about it while it is pending."},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate stops being approvable, ISO 8601 in UTC, or null."},"expiredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate expired, ISO 8601 in UTC, or null."},"approvedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was approved, ISO 8601 in UTC, or null."},"declinedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the customer declined it, ISO 8601 in UTC, or null."},"declineReason":{"type":["string","null"],"description":"What the customer said when declining, or null."},"approvalUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"description":"The customer's estimate page (`/p/{token}`), where they approve or decline. Whoever holds it can approve the estimate, so it is returned only to a token with `estimates:write`, and only once the estimate is sent; null otherwise. Opening it records a customer view."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this estimate has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the estimate was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the estimate last changed, ISO 8601 in UTC."},"lines":{"type":"array","items":{"$ref":"#/components/schemas/EstimateLine"},"description":"The estimate's lines, in order."},"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."},"crewNote":{"type":["string","null"],"description":"The estimator's note for the crew. Never shown to the customer; copied onto the jobs approval creates."},"engagement":{"$ref":"#/components/schemas/EstimateEngagement"}},"required":["id","object","status","customerId","leadId","propertyId","propertyLabel","propertyAddress","message","total","sentTotals","sentAt","sentOutsideShortcut","expiresAt","expiredAt","approvedAt","declinedAt","declineReason","approvalUrl","externalReferences","createdAt","updatedAt","lines","sqftRateUnit","crewNote","engagement"],"additionalProperties":false,"description":"An estimate with its lines, its link's opens and the reminders sent."},"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."},"EstimateLine":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The line's id."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the line was made from, or null for a custom line."},"name":{"type":"string","description":"The line's name."},"description":{"type":["string","null"],"description":"The line's description, or null."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged: per hour, per square foot, flat, or per crew member-hour."},"rate":{"type":"number","description":"The price in US dollars, per `priceStructure`. 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."},"quantity":{"type":["number","null"],"description":"Hours, square feet, or similar that `rate` multiplies, or null."},"subtotal":{"type":"number","description":"The line's price per visit in US dollars."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`recurring`, `one_off`, or `on_demand` (snow work that waits for a storm)."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"With `cadencePeriod`, how many visits per period, or null."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"The period `cadenceFrequency` counts in, or null."},"choiceGroupId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Lines sharing this id are alternatives the customer chooses between, or null."},"isOptional":{"type":"boolean","description":"Whether the customer may leave the line out."},"isRemovedByClient":{"type":"boolean","description":"Whether the customer left the line out when approving."},"selectedOptionId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The option the customer chose, or null."},"sortOrder":{"type":"integer","description":"Position on the estimate, ascending."},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The option's id."},"name":{"type":"string","description":"The option's name."},"rate":{"type":"number","description":"The option's price in US dollars, per `priceStructure`. 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."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"How often the option's work happens."}},"required":["id","name","rate","rateLabel","priceStructure","cadence"],"additionalProperties":false},"description":"Price options the customer can pick between."},"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The product line's id."},"productId":{"type":"string","format":"uuid","description":"The product from the catalog."},"name":{"type":"string","description":"The product's name on the estimate."},"description":{"type":["string","null"],"description":"The product's description, or null."},"unitLabel":{"type":"string","description":"The unit the quantity counts, such as `bag`."},"quantity":{"type":"number","description":"How many units."},"unitPrice":{"type":"number","description":"The customer's price per unit in US dollars."},"taxable":{"type":"boolean","description":"Whether sales tax applies."},"display":{"type":"string","enum":["itemized","included"],"description":"`itemized` shows the product as its own line to the customer; `included` folds it into the service's price."}},"required":["id","productId","name","description","unitLabel","quantity","unitPrice","taxable","display"],"additionalProperties":false},"description":"Products sold with the line."}},"required":["id","serviceId","name","description","priceStructure","rate","rateLabel","quantity","subtotal","cadence","cadenceFrequency","cadencePeriod","choiceGroupId","isOptional","isRemovedByClient","selectedOptionId","sortOrder","options","products"],"additionalProperties":false,"description":"A line of an estimate."},"EstimateEngagement":{"type":"object","properties":{"views":{"type":"integer","minimum":0,"description":"How many times the estimate's link was opened."},"firstViewedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"The first time the link was opened, ISO 8601 in UTC, or null."},"lastViewedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"The last time the link was opened, ISO 8601 in UTC, or null."},"daysSinceLastView":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Whole days since the last open, or null when never opened."},"daysSinceSent":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Whole days since the estimate was last sent, or null for a draft."},"reminders":{"type":"object","properties":{"emails":{"type":"integer","minimum":0,"description":"Reminder emails staff sent (the Remind button or the API) that the mailbox accepted."},"texts":{"type":"integer","minimum":0,"description":"Reminder texts staff sent that Messaging recorded as sent."},"lastAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"The latest of those reminders, ISO 8601 in UTC, or null."}},"required":["emails","texts","lastAt"],"additionalProperties":false,"description":"Reminders staff sent, each counted from its own record. One reminder by email and text counts in both. A floor: zero does not prove nobody was reminded."},"automated":{"type":"object","properties":{"sent":{"type":"integer","minimum":0,"description":"Emails and texts an automation sent for this estimate, its delivery of the estimate included."},"lastAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"The latest of them, ISO 8601 in UTC, or null."}},"required":["sent","lastAt"],"additionalProperties":false,"description":"What automations sent for this estimate. A floor: an automation run about something else is not counted."}},"required":["views","firstViewedAt","lastViewedAt","daysSinceLastView","daysSinceSent","reminders","automated"],"additionalProperties":false,"description":"What the customer did with the estimate's link, and what was sent to remind them. Opens of the estimate email itself are not stored; `views` counts opens of the link."},"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/estimates/external/{source}/{externalId}":{"get":{"operationId":"estimates.external.get","tags":["Estimates"],"summary":"Get an estimate by your id","description":"The estimate your id maps to, as `GET /v1/estimates/{id}` returns it, or 404.\n\nReturns [the estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate).","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/EstimateWithLinesAndEngagement"},"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 an estimate by your id

> The sync endpoint. If your id is new, creates a draft estimate as \`POST /v1/estimates\` does and saves the id (\`created: true\`, status 201). If it exists and the estimate is still a draft, applies the property, message, crew note, lines and expiry you send as \`PATCH /v1/estimates/{id}\` does (\`created: false\`, status 200); a sent, approved or closed estimate is \`409 state\_conflict\` and nothing changes. \`leadId\` or \`customerId\` must be the mapped estimate's, or the request fails with 409. Concurrent requests for the same id run one after another, so they never create two estimates.\
> \
> \*\*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>), \[\`service\_not\_supported\`]\(<https://docs.shortcutco.com/developers/concepts/errors#service\\_not\\_supported>), \[\`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":"Estimates","description":"An estimate offers lines of catalog services, each with a cadence and optional price options and products. Approving one creates its jobs.\n\nFields: [The estimate object](https://docs.shortcutco.com/developers/reference/objects/estimate) · [The estimate reminder object](https://docs.shortcutco.com/developers/reference/objects/estimate-reminder)."}],"servers":[{"url":"https://api.shortcutco.com","description":"Production"}],"security":[{"bearerAuth":["estimates: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":{"EstimateWithLines":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The estimate's id."},"object":{"type":"string","const":"estimate","description":"Always `estimate`."},"status":{"type":"string","enum":["draft","pending","approved","declined","voided","expired"],"description":"`draft` until sent; `pending` once sent and waiting for the customer; then `approved`, `declined`, `voided` by the office, or `expired`."},"customerId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The customer the estimate is for, or null."},"leadId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The lead the estimate answers, or null."},"propertyId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The property the work is at, or null."},"propertyLabel":{"type":["string","null"],"description":"The property's label when the estimate was written, or null."},"propertyAddress":{"type":["string","null"],"description":"The property's address when the estimate was written, or null."},"message":{"type":["string","null"],"description":"The message to the customer sent with the estimate, or null."},"total":{"type":["number","null"],"description":"The estimate's total in US dollars as the app shows it, or null before it is priced."},"sentTotals":{"anyOf":[{"type":"object","properties":{"subtotal":{"type":"number","description":"The total before sales tax, in US dollars."},"taxRatePct":{"type":["number","null"],"description":"The sales-tax rate the estimate showed, as a percent (8.25 = 8.25%), or null when it showed no tax."},"tax":{"type":"number","description":"The sales tax in US dollars; 0 when `taxRatePct` is null."},"total":{"type":"number","description":"`subtotal` plus `tax`: the total the customer saw."}},"required":["subtotal","taxRatePct","tax","total"],"additionalProperties":false},{"type":"null"}],"description":"The Subtotal, Sales tax and Total the customer saw when the estimate was last sent, before any choice they made on it; null for a draft or an estimate sent before these were recorded. A bounded recurring line counts every visit, an unbounded one a single visit."},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was last sent, ISO 8601 in UTC, or null."},"sentOutsideShortcut":{"type":"boolean","description":"True when your system delivered the estimate and told Shortcut it was sent (`POST /v1/estimates/{id}/mark-sent`): Shortcut sent the customer nothing and sends no reminders or automation messages about it while it is pending."},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate stops being approvable, ISO 8601 in UTC, or null."},"expiredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate expired, ISO 8601 in UTC, or null."},"approvedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the estimate was approved, ISO 8601 in UTC, or null."},"declinedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the customer declined it, ISO 8601 in UTC, or null."},"declineReason":{"type":["string","null"],"description":"What the customer said when declining, or null."},"approvalUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"description":"The customer's estimate page (`/p/{token}`), where they approve or decline. Whoever holds it can approve the estimate, so it is returned only to a token with `estimates:write`, and only once the estimate is sent; null otherwise. Opening it records a customer view."},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/ExternalReference"},"description":"Ids this estimate has in your other systems, set with `externalReference`, the external upsert, or a link."},"createdAt":{"type":"string","format":"date-time","description":"When the estimate was created, ISO 8601 in UTC."},"updatedAt":{"type":"string","format":"date-time","description":"When the estimate last changed, ISO 8601 in UTC."},"lines":{"type":"array","items":{"$ref":"#/components/schemas/EstimateLine"},"description":"The estimate's lines, in order."},"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."},"crewNote":{"type":["string","null"],"description":"The estimator's note for the crew. Never shown to the customer; copied onto the jobs approval creates."}},"required":["id","object","status","customerId","leadId","propertyId","propertyLabel","propertyAddress","message","total","sentTotals","sentAt","sentOutsideShortcut","expiresAt","expiredAt","approvedAt","declinedAt","declineReason","approvalUrl","externalReferences","createdAt","updatedAt","lines","sqftRateUnit","crewNote"],"additionalProperties":false,"description":"An estimate with its lines."},"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."},"EstimateLine":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The line's id."},"serviceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The catalog service the line was made from, or null for a custom line."},"name":{"type":"string","description":"The line's name."},"description":{"type":["string","null"],"description":"The line's description, or null."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged: per hour, per square foot, flat, or per crew member-hour."},"rate":{"type":"number","description":"The price in US dollars, per `priceStructure`. 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."},"quantity":{"type":["number","null"],"description":"Hours, square feet, or similar that `rate` multiplies, or null."},"subtotal":{"type":"number","description":"The line's price per visit in US dollars."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`recurring`, `one_off`, or `on_demand` (snow work that waits for a storm)."},"cadenceFrequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"With `cadencePeriod`, how many visits per period, or null."},"cadencePeriod":{"anyOf":[{"type":"string","enum":["per_week","per_month","per_year","per_day"]},{"type":"null"}],"description":"The period `cadenceFrequency` counts in, or null."},"choiceGroupId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Lines sharing this id are alternatives the customer chooses between, or null."},"isOptional":{"type":"boolean","description":"Whether the customer may leave the line out."},"isRemovedByClient":{"type":"boolean","description":"Whether the customer left the line out when approving."},"selectedOptionId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The option the customer chose, or null."},"sortOrder":{"type":"integer","description":"Position on the estimate, ascending."},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The option's id."},"name":{"type":"string","description":"The option's name."},"rate":{"type":"number","description":"The option's price in US dollars, per `priceStructure`. 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."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"How often the option's work happens."}},"required":["id","name","rate","rateLabel","priceStructure","cadence"],"additionalProperties":false},"description":"Price options the customer can pick between."},"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The product line's id."},"productId":{"type":"string","format":"uuid","description":"The product from the catalog."},"name":{"type":"string","description":"The product's name on the estimate."},"description":{"type":["string","null"],"description":"The product's description, or null."},"unitLabel":{"type":"string","description":"The unit the quantity counts, such as `bag`."},"quantity":{"type":"number","description":"How many units."},"unitPrice":{"type":"number","description":"The customer's price per unit in US dollars."},"taxable":{"type":"boolean","description":"Whether sales tax applies."},"display":{"type":"string","enum":["itemized","included"],"description":"`itemized` shows the product as its own line to the customer; `included` folds it into the service's price."}},"required":["id","productId","name","description","unitLabel","quantity","unitPrice","taxable","display"],"additionalProperties":false},"description":"Products sold with the line."}},"required":["id","serviceId","name","description","priceStructure","rate","rateLabel","quantity","subtotal","cadence","cadenceFrequency","cadencePeriod","choiceGroupId","isOptional","isRemovedByClient","selectedOptionId","sortOrder","options","products"],"additionalProperties":false,"description":"A line of an estimate."},"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/estimates/external/{source}/{externalId}":{"put":{"operationId":"estimates.external.upsert","tags":["Estimates"],"summary":"Create or update an estimate by your id","description":"The sync endpoint. If your id is new, creates a draft estimate as `POST /v1/estimates` does and saves the id (`created: true`, status 201). If it exists and the estimate is still a draft, applies the property, message, crew note, lines and expiry you send as `PATCH /v1/estimates/{id}` does (`created: false`, status 200); a sent, approved or closed estimate is `409 state_conflict` and nothing changes. `leadId` or `customerId` must be the mapped estimate's, or the request fails with 409. Concurrent requests for the same id run one after another, so they never create two estimates.\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), [`service_not_supported`](https://docs.shortcutco.com/developers/concepts/errors#service_not_supported), [`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":{"leadId":{"type":"string","format":"uuid","description":"The lead the estimate answers. Required unless `customerId` is sent; send one, not both. Its customer account and property are used; if the lead's email belongs to an existing customer it is linked to them, which needs `customers:write`."},"customerId":{"type":"string","format":"uuid","description":"An existing customer to write the estimate for, instead of `leadId`. The estimate attaches to the customer's lead record, the one New estimate on their profile in the app uses."},"propertyId":{"type":"string","format":"uuid","description":"One of the customer's properties. Defaults to the lead's property."},"message":{"type":"string","maxLength":4000,"description":"A message to the customer, sent with the estimate."},"crewNote":{"type":"string","maxLength":4000,"description":"A note for the crew, never shown to the customer; approval copies it onto the jobs it creates."},"lines":{"type":"array","items":{"type":"object","properties":{"serviceId":{"type":"string","format":"uuid","description":"The catalog service the line sells; its name and price structure come from the catalog. Send `serviceId` or `name`, not both."},"name":{"type":"string","minLength":1,"maxLength":140,"description":"A custom line's name, for a fee or add-on that is not in your catalog (the app's line that is \"only on this estimate\"). Send `name` or `serviceId`, not both. A custom line needs `rate`, is `one_off` or `recurring`, and cannot be one of a choice of lines."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"A custom line's price structure: how `rate` is charged. Defaults to `flat`. A catalog line takes its service's."},"cadence":{"type":"string","enum":["one_off","recurring","on_demand"],"description":"`recurring` for repeat work, `one_off` for a single visit, `on_demand` for a snow service's line (each push waits for its trigger)."},"cadenceFrequency":{"type":"integer","minimum":1,"maximum":31,"description":"For recurring lines, visits per `cadencePeriod`, such as `1` with `per_week`."},"cadencePeriod":{"type":"string","enum":["per_day","per_week","per_month","per_year"],"description":"For recurring lines, the period `cadenceFrequency` counts in."},"rate":{"type":"number","minimum":0,"maximum":1000000,"description":"The price in US dollars, per the service's price structure; per push on a snow line. Defaults to the service's rate. 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)."},"quantity":{"type":"number","minimum":0,"maximum":100000000,"description":"What `rate` multiplies: square feet for per-square-foot services, hours for hourly ones."},"snow":{"type":"object","properties":{"triggerKind":{"type":"string","enum":["depth","any","manual","on_call"],"description":"When a push is due: `depth` at `triggerInches`, `any` accumulation, `manual`, or `on_call` (offered each time)."},"triggerInches":{"type":["number","null"],"description":"Inches of snow that make a `depth` line due."},"offerWindowHours":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Hours an `on_call` offer stays open."},"depthLadder":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"upTo":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"The bracket's top in whole inches; null on the last."},"rate":{"type":"number","minimum":0,"description":"The price per push in this bracket, in US dollars."}},"required":["upTo","rate"],"additionalProperties":false}},{"type":"null"}],"description":"Optional price per push by accumulation, only with a `flat` price."}},"required":["triggerKind"],"additionalProperties":false,"description":"Snow terms for an `on_demand` line. Defaults to the snow service's own terms."},"description":{"type":"string","maxLength":2000,"description":"Shown under the line. Defaults to the service's description."},"isOptional":{"type":"boolean","description":"Whether the customer may leave the line out."},"choiceGroupId":{"type":"string","format":"uuid","description":"Give lines the same new UUID to offer them as alternatives; the customer picks one, the first by default."},"options":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":140,"description":"The option's name, such as `Biweekly`."},"rate":{"type":"number","minimum":0,"maximum":1000000,"description":"The option's price in US dollars, per `priceStructure`. 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)."},"priceStructure":{"type":"string","enum":["per_hour","per_sqft","flat","per_man_hour"],"description":"How `rate` is charged."},"cadence":{"type":"string","enum":["one_off","recurring"],"description":"How often the option's work happens."}},"required":["name","rate","priceStructure","cadence"],"additionalProperties":false},"maxItems":10,"description":"Price options the customer can pick between."},"products":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","format":"uuid","description":"A product from the catalog."},"quantity":{"type":"number","minimum":0,"maximum":1000000,"description":"How many units."},"unitPrice":{"type":"number","minimum":0,"maximum":1000000,"description":"The customer's price per unit in US dollars. Defaults to the product's price."},"taxable":{"type":"boolean","description":"Whether sales tax applies. Defaults to the product's setting."},"display":{"type":"string","enum":["itemized","included"],"description":"`itemized` shows the product as its own line; `included` folds it into the service's price."},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"description":"Overrides the product's description."}},"required":["productId","quantity"],"additionalProperties":false},"maxItems":100,"description":"Products sold with the line."}},"required":["cadence"],"additionalProperties":false},"maxItems":100,"default":[],"description":"The estimate's lines, in order."},"expiresAt":{"type":"string","format":"date-time","description":"When the estimate stops being approvable, ISO 8601. Must be in the future. Without it, an estimate expires 30 days after it is sent."}},"additionalProperties":false,"description":"The estimate to create, or the draft's new fields."}}}},"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 your id was new and the estimate was created."},"estimate":{"$ref":"#/components/schemas/EstimateWithLines"}},"required":["created","estimate"],"additionalProperties":false,"description":"Whether the estimate was created, and the estimate."},"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 estimate 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 your id was new and the estimate was created."},"estimate":{"$ref":"#/components/schemas/EstimateWithLines"}},"required":["created","estimate"],"additionalProperties":false,"description":"Whether the estimate was created, and the estimate."},"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"}}}}}}
```
