List bank accounts
Returns the business's settlement bank accounts — the same list for every project key of the business. Only the last four digits of the account number are shown. An account with `settlement_selectable: true` can be named as `settlement_account` when creating a PaymentIntent, to have that payment settle into it instead of the default account. Accounts are added and connected on the dashboard.
GET
/v1/bank_accountsAuthorization
bearerAuth AuthorizationBearer <token>
Secret API key as a bearer token: Authorization: Bearer sk_live_….
Test keys (sk_test_…) are refused with 401 test_mode_unavailable.
Keys are issued per project in the dashboard. Never expose a secret
key in browser or mobile code.
In: header
Response Body
application/json
application/json
curl -X GET "https://example.com/v1/bank_accounts"{
"object": "list",
"url": "/v1/bank_accounts",
"has_more": false,
"data": [
{
"id": "ba_m2qk7t4xw5nbv3rj6yhc2dpa4e",
"object": "bank_account",
"bank_code": "050000",
"account_number_last4": "4567",
"holder_name": "Example LLC",
"is_default": true,
"settlement_selectable": true
}
]
}{
"error": {
"type": "api_error",
"code": "test_mode_unavailable",
"message": "test keys are not accepted by this API; use a live secret key",
"request_id": "req_8f3a1c9e5b7d2f4a6c0e9b1d"
}
}