Sample - Stripe API
DELETE/v1/accounts/{account}/bank_accounts/{id}

Delete an external account

Deletes a specified bank account or card used as an external account for a connected account. Provide the parent account and external account identifiers to remove the selected external account. The response identifies the deleted object and its deletion state.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
accountstringrequired
The connected account identifier. Maximum 5000 characters.
idstringrequired
The unique identifier of the external account to delete.

2 status codes
200Returns a deleted bank account or card object with its identifier, object type, currency when applicable, and `deleted` state.
currencystringoptional
Three-letter [ISO code for the currency](https://stripe.com/docs/payouts) paid out to the bank account.
deletedbooleanrequired
Always true for a deleted object
Allowed:true
idstringrequired
Unique identifier for the object.
objectstringrequired
String representing the object's type. Objects of the same type share the same value.
Allowed:bank_account
defaultError response.
errorobjectrequired

Error handling

account must be no longer than 5000 characters, and id must identify the external account to delete. The request body defines no fields, so send the identifiers without update parameters.