OptionalcardOptional SCOPE for the disconnect. Omit for the historical account-scoped behaviour: the whole account is torn down and every card on it loses the feed. Supply the card that was deactivated to scope it to that card: its link is removed and the account keeps feeding any other cards attached to it. Disconnecting the last remaining card still tears the account down, so a single-card account behaves identically either way.
OptionalreasonOptional free-text reason recorded with the disconnect. Sent as reason on bankaccount.state_changed. Default subscription_deactivated.
Set to disconnected to stop this account's feed and remove its card links while keeping the account, its transactions and its matches readable. With cardId, see that field: the account can keep feeding its other cards. This endpoint cannot set it back: a new bank link to the same bank creates a new bank account, and this one stays disconnected. When this is the connection's last active account, the connection at the bank is ended too. Disconnecting an account that is already disconnected, or one that was deleted, answers 200 and sends no webhook (an id that never existed still answers 404). Use DELETE /bank-accounts/{bankAccountId} to remove the account and its transactions.
Export
BankAccountDisconnect