Bank account
Get a Bank Account by ID
AuthorizationBearer <token>
JWT Bearer token authentication
In: header
Path Parameters
customer_idstring
The customer's unique ID generated by SpherePay upon customer creation.
Pattern
"^customer_[a-z0-9]+$"
bank_account_idstring
The bank account's unique ID generated by SpherePay upon bank account creation.
Pattern
"^bankAccount_[a-z0-9]+$"
Response Body
curl -X GET "https://api.sandbox.spherepay.co/v2/customers/customer_1ab2c3d4/bank-account/bankAccount_1ab2c3d4"
fetch("https://api.sandbox.spherepay.co/v2/customers/customer_1ab2c3d4/bank-account/bankAccount_1ab2c3d4")
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.sandbox.spherepay.co/v2/customers/customer_1ab2c3d4/bank-account/bankAccount_1ab2c3d4"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import requests
url = "https://api.sandbox.spherepay.co/v2/customers/customer_1ab2c3d4/bank-account/bankAccount_1ab2c3d4"
response = requests.request("GET", url)
print(response.text)
{
"id": "bankAccount_1c19dcf3caaa447bb209df0e5d599e8d",
"status": "active",
"bankName": "Chase",
"accountHolderName": "John Mock-Doe",
"accountName": "Savings Account",
"customer": "customer_68f1c089703945e7bbff6f04bf1c5041",
"currency": "usd",
"accountDetails": {
"accountNumber": "**********6789",
"routingNumber": "**********6789",
"accountType": "checking | savings"
}
}
{
"ts": "2025-04-20T02:32:52.669Z",
"error": {
"general": "Bank account not found"
}
}