Update a DRAFT estimate
curl --request PATCH \ --url https://example.com/api/v1/estimates/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "currency": "example", "dealId": "example", "discount": 1, "expiryDate": "example", "issueDate": "example", "notes": "example", "poNumber": "example", "subject": "example", "taxRate": 1 }'Updates an estimate while it is still in DRAFT status. A discount above 0 while any line carries a discountPercent is refused with 409 DISCOUNT_CONFLICT. Requires the estimates.manage permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Request Body
Section titled “Request Body”object
Deal this proposal belongs to. Needs deals.view, and the deal must be one the caller can reach on the same company as the estimate. Null clears it.
Expiry date (YYYY-MM-DD), resolved at workspace-local midnight. Left out, it stays as it is; null clears it.
Issue date (YYYY-MM-DD), resolved at workspace-local midnight.
Example generated
{ "currency": "example", "dealId": "example", "discount": 1, "expiryDate": "example", "issueDate": "example", "notes": "example", "poNumber": "example", "subject": "example", "taxRate": 1}Responses
Section titled “Responses”The updated estimate.
object
An estimate. Money fields are numbers; dates are ISO 8601 strings.
object
Deal this proposal belongs to, if any.
Discount percentage (0-100).
Estimate status: DRAFT, SENT, VIEWED, ACCEPTED, DECLINED, or EXPIRED.
Tax rate as a fraction (e.g. 0.16 for 16%).
Example generated
{ "data": { "acceptedAt": "2026-04-15T12:00:00Z", "clientId": "example", "createdAt": "2026-04-15T12:00:00Z", "currency": "example", "dealId": "example", "declinedAt": "2026-04-15T12:00:00Z", "discount": 1, "expiryDate": "2026-04-15T12:00:00Z", "id": "example", "issueDate": "2026-04-15T12:00:00Z", "notes": "example", "number": "example", "poNumber": "example", "publicToken": "example", "sentAt": "2026-04-15T12:00:00Z", "status": "example", "subject": "example", "subtotal": 1, "taxAmount": 1, "taxRate": 1, "total": 1, "updatedAt": "2026-04-15T12:00:00Z", "viewedAt": "2026-04-15T12:00:00Z" }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}A discount was sent while lines carry a discountPercent (DISCOUNT_CONFLICT).
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Estimate can only be modified in DRAFT status.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC