Update invoice, dunning, payment-reminder, portal-cancellation and accounting settings
curl --request PATCH \ --url https://example.com/api/v1/invoice-settings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "accountingExportColumns": [ "issueDate" ], "accountingRequiresClass": true, "addressLayout": "ONE_LINE", "collectImportedInvoices": true, "defaultHourlyRate": 1, "firstInvoiceDueDays": 1, "footerNotes": "example", "hourBlockPeriodMonths": 1, "invoiceNumberingMode": "YEARLY", "invoicePrefix": "example", "invoiceStartingNumber": 1, "lockedLineFields": [ "account" ], "paymentReminderDaysAfterDue": 1, "paymentReminderEnabled": true, "paymentReminderMaxCount": 1, "paymentReminderRepeatEveryDays": 1, "paymentTermsDays": 1, "portalAllowsSubscriptionCancellation": true, "retryDays": [ 1 ], "servicePackageHours": [ 1 ], "showStandardRate": true, "suspensionAfterDays": 1, "suspensionEnabled": true, "taxRate": 1 }'Updates any of the tax rate, payment terms, dunning schedule, imported-invoice collection (collectImportedInvoices: false stops online payment, card charges and payment reminders for invoices with importedFrom set, which their source system collects; a payment recorded by hand is still accepted), payment-reminder schedule, portal-cancellation setting, default hourly rate, invoice numbering and the accounting rules; omitted fields stay as they are. The sender and Reply-To of the invoice emails and reminders are the billing channel of /domains/senders. Numbering is invoicePrefix (1 to 8 characters, stored uppercase), invoiceStartingNumber (a whole number from 1 to 999999999) and invoiceNumberingMode: YEARLY (“Number invoices sequentially each year”, PREFIX-YYYY-NNN), WORKSPACE (“Number invoices sequentially across the workspace”, PREFIX-N) or COMPANY (“Number invoices sequentially for each company”, PREFIX-<COMPANY PREFIX>/NNNN, which needs a prefix on each company). The next invoice takes the larger of the starting number and the highest number already in its series plus one, imported invoices included; changing the mode, prefix or starting number never renumbers existing invoices. A prefix outside 1 to 8 characters, a starting number outside its range, an unknown mode, or a switch to COMPANY while active companies have no prefix (the message gives how many) is refused with 400 and nothing is written. The response carries the read-only nextInvoiceNumber. Turning paymentReminderEnabled on stamps paymentReminderEnabledAt; an invoice whose reminder date is earlier than that is never reminded. Requires the invoices.manage permission for every call. When the body includes portalAllowsSubscriptionCancellation, the settings.manage permission is also required, and when it includes accountingRequiresClass, accountingExportColumns or lockedLineFields, the accounting.manage permission is also required (by default the Owner and Admin roles hold it). Each is checked only when its fields are present, before anything is written.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”object
Ordered columns of the accounting lines export; an empty list restores the standard set.
How addresses print on invoices, the workspace’s own and the billed company’s alike, on the invoice page, its public link and its PDF: ONE_LINE joins an address’s lines with commas, MULTI_LINE keeps them as typed.
Whether an invoice imported from another system (importedFrom set) is collected in Chelsea. True by default. False leaves it to that system: its public page, the portal and paymentUrl take no online payment, no card on file is charged for it and no payment reminder is sent; a payment staff record by hand is still accepted.
How many days after its issue day a company’s first invoice is due by default, 0 to 365; 7 unless changed. A company’s invoices after its first one (drafts included; on the same issue day the one created first) follow its own payment terms, else paymentTermsDays.
How invoices are numbered: YEARLY (“Number invoices sequentially each year”) gives PREFIX-YYYY-NNN and restarts every year; WORKSPACE (“Number invoices sequentially across the workspace”) gives PREFIX-N in one series; COMPANY (“Number invoices sequentially for each company”) gives PREFIX-<COMPANY PREFIX>/NNNN with one series per company, so an invoice for a company with no prefix cannot be numbered, and switching to it is refused while active companies have no prefix. Changing it never renumbers existing invoices.
The text every invoice number opens with, 1 to 8 characters, stored uppercase. Changing it never renumbers existing invoices.
The number the series starts at, 1 to 999999999. The next invoice takes the larger of this and the highest number already in the series plus one, imported invoices included. Changing it never renumbers existing invoices.
Which fields a service fills on an invoice line stay locked until a change is made on purpose: account, class, period, description. An empty list locks nothing.
Requires settings.manage in addition to invoices.manage, checked only when this field is present in the body.
Hour sizes offered as one-click packages; repeats are dropped and the list is sorted.
Responses
Section titled “Responses”The updated invoice settings.
object
A workspace’s invoice, dunning, imported-invoice collection, payment-reminder, portal-cancellation and accounting-default settings.
object
Ordered column keys of the accounting lines export (CSV and XLSX). Empty uses the standard columns. Keys: issueDate, number, company, status, currency, rowType, description, service, quantity, rate, amount, revenueAccountCode, revenueAccountName, periodStart, periodEnd, className, accountingComplete.
Whether a priced invoice line needs a class team besides its revenue account to count as accounting complete. Turn it off for a workspace that books revenue accounts without classes.
How addresses print on invoices, the workspace’s own and the billed company’s alike, on the invoice page, its public link and its PDF: ONE_LINE joins an address’s lines with commas, MULTI_LINE keeps them as typed.
Whether an invoice imported from another system (importedFrom set) is collected in Chelsea. True by default. False leaves it to that system: its public page, the portal and paymentUrl take no online payment, no card on file is charged for it and no payment reminder is sent; a payment staff record by hand is still accepted.
The workspace’s standard hourly rate; new services take it as their base hourly rate. Null means none is set.
How many days after its issue day a company’s first invoice is due by default, 0 to 365; 7 unless changed. A company’s invoices after its first one (drafts included; on the same issue day the one created first) follow its own payment terms, else paymentTermsDays.
The note every invoice issued in Chelsea prints after its own notes, such as bank transfer details. An invoice with importedFrom set keeps its own notes and prints none. Null prints none.
How invoices are numbered: YEARLY (“Number invoices sequentially each year”) gives PREFIX-YYYY-NNN and restarts every year; WORKSPACE (“Number invoices sequentially across the workspace”) gives PREFIX-N in one series; COMPANY (“Number invoices sequentially for each company”) gives PREFIX-<COMPANY PREFIX>/NNNN with one series per company, so an invoice for a company with no prefix cannot be numbered, and switching to it is refused while active companies have no prefix. Changing it never renumbers existing invoices.
The text every invoice number opens with, 1 to 8 characters, stored uppercase. Changing it never renumbers existing invoices.
The number the series starts at, 1 to 999999999. The next invoice takes the larger of this and the highest number already in the series plus one, imported invoices included. Changing it never renumbers existing invoices.
The fields a service fills on an invoice line that stay locked until a change is made on purpose, in catalog order: account, class, period, description. A request that changes a locked field of a service line must carry exception: true. Custom lines are never locked; a lock never applies to a line already saved.
The number the next invoice takes under the saved numbering. In COMPANY mode no company is chosen yet, so it shows the pattern with the placeholder company prefix ACME at the starting number, such as INV-ACME/0001. Read-only.
Companies that follow a reminder schedule of their own instead of this one; set on the company with PATCH /clients/{id}.
Days after an invoice’s due date, in the workspace timezone, of the first reminder.
Whether unpaid invoices are followed up by email with the invoice link and PDF. Off by default; turning it on never reminds invoices whose reminder date is already past.
ISO 8601 instant the reminders were last switched on; a reminder dated before it is never sent. Null while they are off.
Most reminders one invoice receives when they repeat.
Companies with open invoices issued from Chelsea where nobody can be emailed: no billing email, no active portal contact, and an open invoice addressed to nobody the email can reach (no contact, a revoked contact or an inactive member). Fix it with billingEmails on PATCH /clients/{id} or by choosing the invoice’s contact.
Companies whose payment reminders are paused, which stops them for every invoice they have.
Open invoices issued from Chelsea whose payment reminders are paused individually.
Days between repeat reminders while the invoice stays unpaid; 0 sends one.
Whether a client’s reply to a reminder reaches the order’s conversation, which needs the workspace to receive email.
Currently overdue invoices the reminders will not reach because their reminder dates are already past.
How many days after the issue date an invoice is due by default.
Whether a client may cancel their own subscription from the portal. Gated by settings.manage, not invoices.manage — see PATCH’s description.
Days after the due date on which an unpaid subscription is retried off-session.
The hour sizes the service editor offers as one-click packages, ascending.
Whether an invoice, its PDF, its public link and the portal show the list rate crossed out when the company’s rate is lower.
Days after a cycle invoice’s due date before an unpaid subscription is suspended.
Whether an unpaid subscription’s order is suspended past the grace period.
Example
{ "data": { "addressLayout": "ONE_LINE", "invoiceNumberingMode": "YEARLY" }}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" }}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