Skip to main content
DELETE
Delete an account

Deleting an account

Deleting an account removes it from every open fiscal year. An account can only be deleted if nothing depends on it:
  • No transactions may have been posted to the account. Otherwise the request fails with 400 Bad Request and error code ledger/cannot-delete-account-with-transactions.
  • System accounts that Infinity relies on, such as VAT accounts, cannot be deleted (403 Forbidden, ledger/system-account).
  • Accounts connected to a bank through Live Accounting cannot be deleted (403 Forbidden, accounts/cannot-delete-live-account).

Authorizations

x-api-token
string
header
required

API token for authentication. Obtain from your Infinity account settings.

Path Parameters

accountNumber
integer
required

The account number of the account

Required range: 1000 <= x <= 9999

Response

The account was deleted successfully.