Retrieve balances
curl --request GET \
--url https://api.bachs.io/v1/balances \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bachs.io/v1/balances', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bachs.io/v1/balances"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bachs.io/v1/balances"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"account_id": "acct_7KpQ2mNv4XbR9dLc",
"balances": [
{
"currency": "NGN",
"available_balance": "58700.00",
"pending_balance": "0.00"
},
{
"currency": "USD",
"available_balance": "95178.20",
"pending_balance": "0.00"
}
],
"total_balance_usd": "95221.29",
"pending_settlements_by_day": []
}{
"detail": "Invalid request parameters",
"error_code": "VALIDATION_ERROR",
"errors": [
{
"field": "amount",
"message": "Amount must be a positive decimal string",
"type": "value_error"
}
]
}{
"detail": "Invalid API key",
"error_code": "UNAUTHORIZED"
}{
"detail": "API key does not have permission for this operation",
"error_code": "FORBIDDEN"
}{
"detail": "Resource not found",
"error_code": "NOT_FOUND"
}{
"detail": "Rate limit exceeded. Please retry after a few seconds.",
"error_code": "TOO_MANY_REQUESTS"
}{
"detail": "An unexpected error occurred. Please try again later.",
"error_code": "INTERNAL_SERVER_ERROR"
}Balance
Retrieve balances
Return account balance buckets by currency, including available, locked, and pending amounts, plus a consolidated USD total.
GET
/
v1
/
balances
Retrieve balances
curl --request GET \
--url https://api.bachs.io/v1/balances \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bachs.io/v1/balances', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bachs.io/v1/balances"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bachs.io/v1/balances"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"account_id": "acct_7KpQ2mNv4XbR9dLc",
"balances": [
{
"currency": "NGN",
"available_balance": "58700.00",
"pending_balance": "0.00"
},
{
"currency": "USD",
"available_balance": "95178.20",
"pending_balance": "0.00"
}
],
"total_balance_usd": "95221.29",
"pending_settlements_by_day": []
}{
"detail": "Invalid request parameters",
"error_code": "VALIDATION_ERROR",
"errors": [
{
"field": "amount",
"message": "Amount must be a positive decimal string",
"type": "value_error"
}
]
}{
"detail": "Invalid API key",
"error_code": "UNAUTHORIZED"
}{
"detail": "API key does not have permission for this operation",
"error_code": "FORBIDDEN"
}{
"detail": "Resource not found",
"error_code": "NOT_FOUND"
}{
"detail": "Rate limit exceeded. Please retry after a few seconds.",
"error_code": "TOO_MANY_REQUESTS"
}{
"detail": "An unexpected error occurred. Please try again later.",
"error_code": "INTERNAL_SERVER_ERROR"
}Authorizations
Bearer token authentication. Pass your API key as Authorization: Bearer sk_.... See Authentication for keys, scopes, and sandbox vs production.
Response
Success - Account balances retrieved
Organization balance snapshot across currencies, including spendable and in-flight amounts.
Organization ID the returned balances belong to.
Example:
"acct_7KpQ2mNv4XbR9dLc"
One balance object per currency bucket.
Show child attributes
Show child attributes
Aggregate of available and pending balances converted to USD.
Example:
"1375.00"
Upcoming settlements grouped by day. Empty when no settlements are pending. Each entry describes settlements expected to become available on a given date.
Example:
[]

