BankAccounts

Delete a bank account

Changed on

<b>Deleting a bank account is irreversible and reaches past the account itself.</b> It removes every transaction the account holds, and — unless another account shares it — the accounting journal attached to it together with every accounting entry written in that journal. There is no undo, and no export is taken first.

Three cases are refused rather than deleted, so the destructive path is narrow: — <b>409</b> when the account holds transactions already reconciled with a receipt, a supplier or colleague payment, or a miscellaneous operation. This API never overrides that check, so an account with any bookkeeping against it cannot be deleted here at all: detach or delete those settlements in the Altoviz application first, and consider whether you meant to. — <b>400</b> when the account is connected to a provider, i.e. its provider is set. — <b>400</b> when the account is the company's main one. What survives the 409 gate is an account with no reconciled transactions, so in practice this deletes an account that was created by mistake or never used. If you only want it out of the way of day-to-day work, there is nothing to delete: leave it in place.

delete/v1/bankaccounts/{id}

Request

Path parameters

idinteger required

Bank account ID

Response

OK

Changes