Skip to content

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

GET
/invoice-settings
Code sample: Shell / cURL
curl --request GET \
--url https://example.com/api/v1/invoice-settings \
--header 'Authorization: Bearer <token>'

Returns the workspace’s tax rate, default payment terms, unpaid-subscription dunning schedule, payment-reminder schedule (with the count of overdue invoices the reminders will not reach, how many invoices and companies have their reminders paused, and how many companies have nobody to email), and whether a client may cancel their own subscription from the portal. It also returns collectImportedInvoices, whether invoices imported from another system are collected in Chelsea or left to that system, the default hourly rate and how invoices are numbered: invoicePrefix, invoiceStartingNumber, invoiceNumberingMode and nextInvoiceNumber, the number the next invoice takes (in COMPANY mode it shows the placeholder company prefix ACME, since no company is chosen yet). Requires the invoices.manage permission.

The workspace’s 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"
}
}

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.