Update an invoice
curl --request PATCH \ --url https://example.com/api/v1/invoices/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "clientId": "example", "commissionDurationMonths": 1, "commissionDurationRule": "ALWAYS", "contactId": "example", "currency": "example", "discount": 1, "dueDate": "example", "issueDate": "example", "notes": "example", "periodEnd": "2026-04-15", "periodStart": "2026-04-15", "poNumber": "example", "refreshBillTo": true, "subject": "example", "taxRate": 1 }'Updates a DRAFT invoice’s fields. contactId, refreshBillTo and the invoice-level service period (periodStart, periodEnd) also apply to an issued invoice: they are the only fields that do, since its bill-to comes from the company (edit it there) and is refreshed on purpose, and the period is what accounting books. A period change touches only the dates, never amounts, totals or status, emails nobody and is written to the invoice history; it is refused with 409 on a CANCELLED invoice or one recorded from another system. Moving an invoice that sells an order to another company is refused with 409 and reason INVOICE_CLIENT_CHANGE_BLOCKED, and moving it to a company out of the caller’s reach with 404. A discount above 0 while any line carries a discountPercent is refused with 409 DISCOUNT_CONFLICT. Requires the invoices.manage permission. The company must be one the caller reaches: one they are assigned to, or any with clients.view_all or invoices.view_all.
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
Due date (YYYY-MM-DD), resolved at workspace-local midnight.
Issue date (YYYY-MM-DD), resolved at workspace-local midnight.
First day of the invoice’s own service period (YYYY-MM-DD, workspace day), the one accounting books. Changes at any status but CANCELLED (409 otherwise) and only the dates: never amounts, totals or status, and the client is not emailed. Needs an end too; null on both clears it; omit it to keep it.
Takes the company’s current legal name, address and tax ID into an issued, unpaid invoice (SENT, VIEWED or OVERDUE); audited. A DRAFT already reads them live and a PAID invoice never changes, so both are refused with 409. The bill-to itself is edited on the company, never on the invoice.
Responses
Section titled “Responses”The updated invoice.
object
An invoice. Monetary amounts are numbers; dates are ISO 8601 strings.
object
Commission duration rule: ALWAYS, NEVER or FIRST_N_MONTHS.
The user of the invoice’s company it is addressed to (a contact id from GET /clients/{id}/contacts); it prints above the company’s name. Null addresses nobody.
ISO 4217 currency code.
Discount percentage (0-100); null when no discount applies.
Link to the document the originating system produced.
Source estimate when the invoice was converted from one.
The number the originating system gave it. For an EXTERNAL invoice this is also its number; null for SYSTEM.
Which system issued an EXTERNAL invoice, e.g. SPP or QuickBooks. Null for SYSTEM.
The import source (e.g. SPP) that wrote this invoice as one of the workspace’s own. Null for an invoice issued in Chelsea. An imported invoice keeps the notes it was sent with: the workspace’s note on every invoice is not printed on it.
True when the invoice bills a cycle of a client subscription (it has a subscriptionId).
The order this invoice sells or renews, when it has one.
SYSTEM for an invoice this workspace issued, EXTERNAL for one issued elsewhere and recorded here. An EXTERNAL invoice is never emailed, rendered to PDF, charged, published or made recurring.
Whether payment reminders are paused for this invoice alone. A paused company pauses all of its invoices regardless of this flag.
Invoice status: DRAFT, SENT, VIEWED, OVERDUE, PAID or CANCELLED.
Tax rate as a percentage (0-100); null when the invoice has no tax rate.
Example generated
{ "data": { "amountPaid": 1, "clientId": "example", "commissionDurationMonths": 1, "commissionDurationRule": "example", "contactId": "example", "createdAt": "2026-04-15T12:00:00Z", "currency": "example", "discount": 1, "discountAmount": 1, "documentUrl": "example", "dueDate": "2026-04-15T12:00:00Z", "estimateId": "example", "externalNumber": "example", "externalSource": "example", "id": "example", "importedFrom": "example", "isRecurring": true, "issueDate": "2026-04-15T12:00:00Z", "notes": "example", "number": "example", "orderId": "example", "orderPendingAt": "2026-04-15T12:00:00Z", "origin": "example", "paidAt": "2026-04-15T12:00:00Z", "paymentRemindersPaused": true, "paymentRemindersPausedAt": "2026-04-15T12:00:00Z", "periodEnd": "2026-04-15T12:00:00Z", "periodStart": "2026-04-15T12:00:00Z", "poNumber": "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" }}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" }}The invoice sells an order and cannot change company (reason INVOICE_CLIENT_CHANGE_BLOCKED), refreshBillTo was sent for a DRAFT, PAID or CANCELLED invoice, contactId or a service period for a CANCELLED one, a service period for an invoice recorded from another system, or a discount 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" }}A DRAFT-only field was sent for an issued invoice, contactId is not a user of the invoice’s company, or the service period has only one day or ends before it starts.
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