Convert an estimate to an invoice
curl --request POST \ --url https://example.com/api/v1/estimates/example/convert-to-invoice \ --header 'Authorization: Bearer <token>'Creates one DRAFT invoice from a sent, viewed or accepted estimate, copying its lines with their discountPercent, the estimate-wide discount and tax, and returns it under data.invoice. An estimate converts once, to an invoice or to an order: one already converted is refused with 422 and the message names what it became. 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).
Responses
Section titled “Responses”The invoice created from the estimate.
object
object
Invoice created by converting an estimate.
object
Invoice status (DRAFT after conversion).
Tax rate as a fraction (e.g. 0.16 for 16%).
Example generated
{ "data": { "invoice": { "amountPaid": 1, "clientId": "example", "createdAt": "2026-04-15T12:00:00Z", "currency": "example", "dueDate": "2026-04-15T12:00:00Z", "id": "example", "isRecurring": true, "issueDate": "2026-04-15T12:00:00Z", "notes": "example", "number": "example", "paidAt": "2026-04-15T12:00:00Z", "recurringInterval": "example", "sentAt": "2026-04-15T12:00:00Z", "status": "example", "subtotal": 1, "taxAmount": 1, "taxRate": 1, "total": 1, "updatedAt": "2026-04-15T12:00:00Z" } }}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" }}The estimate cannot be converted (not sent yet, closed, or already converted to an invoice or an order), or the workspace numbers invoices per company and the estimate’s company has no prefix: reason is then COMPANY_PREFIX_REQUIRED, the message names the company and no invoice is created.
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