Skip to content

Update invoice, dunning, payment-reminder, portal-cancellation and accounting settings

PATCH
/invoice-settings
Code sample: Shell / cURL
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.

Media typeapplication/json
object
accountingExportColumns

Ordered columns of the accounting lines export; an empty list restores the standard set.

Array<string>
<= 20 items
Allowed values: issueDate number company status currency rowType description service quantity rate amount revenueAccountCode revenueAccountName periodStart periodEnd className accountingComplete
accountingRequiresClass
boolean
addressLayout

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.

string
Allowed values: ONE_LINE MULTI_LINE
collectImportedInvoices

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.

boolean
defaultHourlyRate

The standard hourly rate, rounded to cents. Null clears it.

Any of:
number
> 0 <= 99999999.99
firstInvoiceDueDays

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.

integer
<= 365
footerNotes

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. Blank or null clears it.

Any of:
string
<= 5000 characters
hourBlockPeriodMonths

Months of a new hour-package service’s period, 1 to 120. Null means manual dates.

Any of:
integer
>= 1 <= 120
invoiceNumberingMode

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.

string
Allowed values: YEARLY WORKSPACE COMPANY
invoicePrefix

The text every invoice number opens with, 1 to 8 characters, stored uppercase. Changing it never renumbers existing invoices.

string
>= 1 characters <= 8 characters
invoiceStartingNumber

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.

integer
>= 1 <= 999999999
lockedLineFields

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.

Array<string>
<= 4 items
Allowed values: account class period description
paymentReminderDaysAfterDue
integer
>= 1 <= 365
paymentReminderEnabled
boolean
paymentReminderMaxCount
integer
>= 1 <= 20
paymentReminderRepeatEveryDays
integer
<= 365
paymentTermsDays
integer
> 0 <= 9007199254740991
portalAllowsSubscriptionCancellation

Requires settings.manage in addition to invoices.manage, checked only when this field is present in the body.

boolean
retryDays
Array<integer>
servicePackageHours

Hour sizes offered as one-click packages; repeats are dropped and the list is sorted.

Array<integer>
<= 12 items
showStandardRate
boolean
suspensionAfterDays
integer
> 0 <= 9007199254740991
suspensionEnabled
boolean
taxRate

Tax rate as a 0-100 percentage; stored as a fraction rounded to 4 decimal places. Null clears it.

Any of:
number
<= 100

The updated invoice settings.

Media typeapplication/json
object
data
required

A workspace’s invoice, dunning, imported-invoice collection, payment-reminder, portal-cancellation and accounting-default settings.

object
accountingExportColumns
required

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.

Array<string>
accountingRequiresClass
required

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.

boolean
addressLayout
required

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.

string
Allowed values: ONE_LINE MULTI_LINE
collectImportedInvoices
required

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.

boolean
defaultHourlyRate
required

The workspace’s standard hourly rate; new services take it as their base hourly rate. Null means none is set.

number | null
firstInvoiceDueDays
required

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.

integer
<= 365
footerNotes
required

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.

string | null
hourBlockPeriodMonths
required

Months a new hour-package service’s period lasts when its rule is not set. Null means the period dates are entered by hand.

Any of:
integer
>= -9007199254740991 <= 9007199254740991
invoiceNumberingMode
required

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.

string
Allowed values: YEARLY WORKSPACE COMPANY
invoicePrefix
required

The text every invoice number opens with, 1 to 8 characters, stored uppercase. Changing it never renumbers existing invoices.

string
>= 1 characters <= 8 characters
invoiceStartingNumber
required

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.

integer
>= 1 <= 999999999
lockedLineFields
required

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.

Array<string>
nextInvoiceNumber
required

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.

string
paymentReminderCustomScheduleCompanyCount
required

Companies that follow a reminder schedule of their own instead of this one; set on the company with PATCH /clients/{id}.

integer
<= 9007199254740991
paymentReminderDaysAfterDue
required

Days after an invoice’s due date, in the workspace timezone, of the first reminder.

integer
>= 1 <= 9007199254740991
paymentReminderEnabled
required

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.

boolean
paymentReminderEnabledAt
required

ISO 8601 instant the reminders were last switched on; a reminder dated before it is never sent. Null while they are off.

string | null
paymentReminderMaxCount
required

Most reminders one invoice receives when they repeat.

integer
>= 1 <= 9007199254740991
paymentReminderNoRecipientCompanyCount
required

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.

integer
<= 9007199254740991
paymentReminderPausedCompanyCount
required

Companies whose payment reminders are paused, which stops them for every invoice they have.

integer
<= 9007199254740991
paymentReminderPausedInvoiceCount
required

Open invoices issued from Chelsea whose payment reminders are paused individually.

integer
<= 9007199254740991
paymentReminderRepeatEveryDays
required

Days between repeat reminders while the invoice stays unpaid; 0 sends one.

integer
<= 9007199254740991
paymentReminderRepliesRouted
required

Whether a client’s reply to a reminder reaches the order’s conversation, which needs the workspace to receive email.

boolean
paymentReminderSkippedOverdueCount
required

Currently overdue invoices the reminders will not reach because their reminder dates are already past.

integer
<= 9007199254740991
paymentTermsDays
required

How many days after the issue date an invoice is due by default.

integer
> 0 <= 9007199254740991
portalAllowsSubscriptionCancellation
required

Whether a client may cancel their own subscription from the portal. Gated by settings.manage, not invoices.manage — see PATCH’s description.

boolean
retryDays
required

Days after the due date on which an unpaid subscription is retried off-session.

Array<integer>
servicePackageHours
required

The hour sizes the service editor offers as one-click packages, ascending.

Array<integer>
showStandardRate
required

Whether an invoice, its PDF, its public link and the portal show the list rate crossed out when the company’s rate is lower.

boolean
suspensionAfterDays
required

Days after a cycle invoice’s due date before an unpaid subscription is suspended.

integer
> 0 <= 9007199254740991
suspensionEnabled
required

Whether an unpaid subscription’s order is suspended past the grace period.

boolean
taxRate
required

Tax rate as a 0-100 percentage, applied to every invoice and subscription cycle this workspace issues. Null means no tax.

Any of:
number
<= 100

Example

{
"data": {
"addressLayout": "ONE_LINE",
"invoiceNumberingMode": "YEARLY"
}
}

Validation error. Parse failures include field paths and expectations.

Media typeapplication/json

Validation error with safe field paths and expected values; submitted values are never returned.

object
error
required
object
code
required

Stable machine-readable error code.

string
issues
Array<object>
object
expected
required
string
message
required
string
path
required
Array<string | number>
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.