Prerequisites
- Your platform’s secret key from the same environment as the account.
connected_accounts:readto check eligibility andconnected_accounts:writeto remove the account. See Permissions.- An account owned directly by your platform. OAuth access to an independent business does not give you permission to close it.
Remove through the API
These examples use sandbox. Use your own sandbox account and key; no real money moves. The full contracts are Check account closure and Delete a connected account.1
Check whether the account can close
Read every blocker before asking for confirmation.If
can_close is false, resolve each listed obligation and check again. Nonzero
balances, unfinished payouts or refunds, open disputes or holds, settlements,
renewing subscriptions and payable invoices can prevent closure. A preview does
not reserve the account: removal checks the conditions again.2
Remove the account
Send the exact account name when you include A successful removal returns
confirm_name. For an unnamed
account, use its account ID. The API body is optional; dashboard removal always
requires typed confirmation.200, with closed_at set. The account is excluded
from active account lists. Its past payments, payouts and other financial records
remain stored.3
Verify the result or retry safely
Keep the returned account ID and closure time. If the response is lost, repeat
the same DELETE request. An account already closed by your platform returns the
original closure and timestamp without repeating the closure actions.If obligations appeared after your preview, removal returns
409 ACCOUNT_HAS_CLOSURE_BLOCKERS with a blockers array, and the account stays
open. Resolve those blockers before retrying. See the
error response.Remove through the dashboard
Open Connect → Connected accounts and select the account. Choose Remove account from its three-dot menu beside Copy ID, or open Settings → Account removal at the bottom of the page. Review the blockers, type the exact name or the displayed account ID, and confirm Remove account. The action requires permission to manage Connect. A blocked account cannot be confirmed. A request failure keeps the dialog open for retry; success returns you to the active account list.Handle a refusal
400 ACCOUNT_NAME_CONFIRMATION_MISMATCH: check the exact name, including case and spaces, or the ID for an unnamed account.401or403: check the platform key, environment and required scopes.404: check the ID, direct platform ownership and environment. An unrelated account and an unknown ID are both refused.409 ACCOUNT_HAS_CLOSURE_BLOCKERS: read every blocker, clear the obligations and check again.
X-Account-Id does not change which
platform owns the key or grant permission to remove another platform’s account.
Next steps
- Accounts
- Balances
- Bachs Apps, for access to an existing independent business

