Retrieve a bank account
GET / v1 / customers /:id / bank_accounts /:id
By default, you can see the 10 most recent sources stored on a Customer directly on the object, but you can also retrieve details about a specific bank account stored on the Stripe account.
Parameters
No parameters.
Returns
Returns the bank account object.
cURL
Response
{ "id": "ba_1MvoIJ2eZvKYlo2CO9f0MabO", "object": "bank_account", "account_holder_name": "Jane Austen", "account_holder_type": "company", "account_type": null, "bank_name": "STRIPE TEST BANK", "country": "US", "currency": "usd", "customer": "cus_9s6XI9OFIdpjIg", "fingerprint": "1JWtPxqbdX5Gamtc", "last4": "6789", "metadata": {}, "routing_number": "110000000", "status": "new"}
List all bank accounts
GET / v1 / customers /:id / bank_accounts
You can see a list of the bank accounts belonging to a Customer. Note that the 10 most recent sources are always available by default on the Customer. If you need more than those 10, you can use this API method and the limit and starting_after parameters to page through additional bank accounts.
Parameters
No parameters.
More parameters
- ending _ before string
- limit integer
- starting _ after string
Returns
Returns a list of the bank accounts stored on the customer.
cURL
Response
Delete a bank account
DELETE / v1 / customers /:id / sources /:id
You can delete bank accounts from a Customer.
Parameters
No parameters.
Returns
Response
{ "customer": "cus_9s6XKzkNRiz8i3", "id": "ba_1NkxyL2eZvKYlo2CwZgb2mzO", "object": "bank_account", "deleted": true}
