Skip to main content
PUT
Update Account Code

Authorizations

X-Auth-Token
string
header
required

Authentication token for API access

Path Parameters

code
string
required

Body

application/json

One line of this organisation's chart of accounts.

code
string

Account code (e.g., "200", "SALES").

name
string
type
enum<string>

Which side of the ledger an account sits on.

Available options:
Revenue,
Expense,
Asset,
Liability,
Equity
status
enum<string>

Status of an account code.

Available options:
Active,
Archived
taxType
string | null

Default tax type for this account.

description
string | null
organisationId
string
isInUse
boolean

True when this account code is referenced by credit notes or client finance settings; delete is not allowed (use archive instead).

providerId
string | null

The accounting system's own id for this account. Without it a later edit asks for the code to be created again.

externalProvider
string | null

Which accounting system holds it, as the integrations hub named it.

syncStatus
enum<string> | null

Sync status with external provider.

Available options:
NotSynced,
Synced,
SyncFailed,
Syncing,
NeedsAttention
lastSyncedAt
string | null

When the accounting system last synced this (UTC, ISO 8601).

The provider's own moment, not when this service recorded the answer, so it is safe to reconcile against the provider's records and does not move with our internal queue timings. Null until a send has succeeded.

syncErrorMessage
string | null

Last sync error message when sync failed.

createdDate
string | null
createdBy
string | null
updatedDate
string | null
updatedBy
string | null

Response

OK

Billing's response envelope: the platform's (message.text + message.token, content.data + content.metadata, validationIssues) plus the fields billing sent before it (PRODLAUNCH-416). Those are deprecated, removed on 31 December 2026, and are projections of their replacements so the two cannot disagree.

message
object
required

What happened, as English text and a stable snake_case token to translate from.

content
object
validationIssues
object[] | null
errors
object[] | null
deprecated
read-only

Deprecated: the same issues as validationIssues (reasonText is reason, reasonId is reasonToken, reasonParameters is reasonTokenArguments). Read validationIssues; this will be removed.

metadata
object
deprecated

Deprecated: the same values as content.metadata. Read that; this will be removed.