Convert an accepted estimate to an order
curl --request POST \ --url https://example.com/api/v1/estimates/example/convert-to-order \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "projectId": "example" }'Opens one ACTIVE hour-block order from an accepted estimate: its hours are the lines no order covers yet whose category is billed in hours, priced per hour at their quantity times rate before any line discount, less the estimate-wide discount, with the workspace’s common activity types. Line discounts stay on the proposal and its invoice, so the order’s rate, its overage and the reports that value its hours use the standard rate. Optionally makes a project of the same company its primary project. An estimate converts once, to an invoice or to an order. Refused with 422 when the estimate was already converted (the message names what it became), is not accepted, is not in the company’s currency, every line already has an order, or none of its lines is filed under a category billed in hours. 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”Responses
Section titled “Responses”The order the estimate became.
object
The hour-block order an accepted estimate was converted to.
object
object
Hours of the lines no order covered yet.
Example generated
{ "data": { "order": { "id": "example", "name": "example", "totalHours": 1 } }}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" }}Invalid input.
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