Closes an account belonging to the authenticated entity by setting its status to closed. This is a soft delete — the account record is preserved, not removed, and its status becomes terminal (a closed account cannot be reopened or modified further). The account must belong to the authenticated entity; the entity_id from the bearer token is automatically applied as a scoping condition, so callers cannot close accounts belonging to other entities. If the account has an associated ledger account, its live balance is checked first: closure is rejected if there is any non-zero available balance, pending credit, or pending debit, since funds must be cleared out before an account can be closed.
Request
Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.