Delete a financial account
DELETE/financial-accounts/:id
Deletes an account. Requires scope finance.accounts.write. Returns 422 (reason: in_use, with a usage breakdown) when the account has any transaction, payable or receivable — deleting would cascade-delete its transactions, so soft-deactivate via PATCH { active: false } instead. Calling DELETE twice returns 200 then 404.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
- 500
Account deleted.
Missing / invalid / expired / revoked token.
Token lacks the finance.accounts.write scope.
Account not found within the tenant.
The account is in use (reason: in_use).
Rate limit exceeded for this token. Reads and writes have separate budgets, both on a 1-hour sliding window. The response carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and Retry-After — wait out Retry-After rather than retrying immediately.
Unhandled server error.