Deactivate account

Deactivate a chart of accounts entry so it can no longer be selected on new transactions. For asset, liability, and equity accounts with a non-zero balance, a transfer account is required: the remaining balance is moved to it with a posted journal entry. When the account being deactivated is its organization's processing fee income or expense account, or invoices record processing fees to it, a replacement is required for each such side, whatever the account's type or balance: an active account of the same type and organization as the account being deactivated (an account with no organization is the default organization's). The invoices using the account move to the replacement, and when it is its organization's default fee account the default moves to the replacement too, taken off that organization's other accounts only (each organization has its own pair). For an income or expense account that is neither, the body can be omitted. While multi-org is on, an account of an organization where you hold Accounting Settings at no campus answers 403, and so does a replacement fee account of one.

Required permission: Accounting Settings

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
int32
required
≥ 1

The id of the account

Body Params

The transfer and replacement account selections

transferAccount
object | null

The active account the remaining balance is transferred to. Required when deactivating an asset, liability, or equity account with a non-zero balance. Provide the id.

feeIncome
object | null

The account that takes over fee income from the account being deactivated: the invoices that record fee income to it move to this account, and when it is its organization's processing fee income account, this account becomes that instead. Required whenever the account being deactivated is the processing fee income account or invoices record fee income to it, whatever its type or balance (the account read reports this as feeIncome). Must be an active account of the same type and organization as the account being deactivated. Provide the id.

feeExpense
object | null

The account that takes over fee expense from the account being deactivated: the invoices that record fee expense to it move to this account, and when it is its organization's processing fee expense account, this account becomes that instead. Required whenever the account being deactivated is the processing fee expense account or invoices record fee expense to it, whatever its type or balance (the account read reports this as feeExpense). Must be an active account of the same type and organization as the account being deactivated. Provide the id.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses
200

OK

401

Authentication is required, or the Ocs-Api-Key header is missing or invalid.

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json