Introducing Starknet Network:   OffRamp and OnRamp USDC are now supported for Starknet network.  View changelog for details →.
Sphere Paysphere
Bank account

Get a Bank Account by ID

GET
/v2/customers/{customer_id}/bank-account/{bank_account_id}
AuthorizationBearer <token>

In: header

Path Parameters

customer_idstring

The customer's id.

bank_account_idstring

The customer's bank account id.

Response Body

curl -X GET "https://api.sandbox.spherepay.co/v2/customers/{{customer_id}}/bank-account/{{bank_account_id}}"
fetch("https://api.sandbox.spherepay.co/v2/customers/{{customer_id}}/bank-account/{{bank_account_id}}")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://api.sandbox.spherepay.co/v2/customers/{{customer_id}}/bank-account/{{bank_account_id}}"

  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_id}}/bank-account/{{bank_account_id}}"

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"
  }
}