List supported currencies
curl --request GET \
--url https://api.bachs.io/v1/currencies/supportedconst options = {method: 'GET'};
fetch('https://api.bachs.io/v1/currencies/supported', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bachs.io/v1/currencies/supported"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bachs.io/v1/currencies/supported"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"fiat": [
"USD",
"NGN",
"GHS",
"KES",
"ZAR"
],
"crypto": [
"USDT_TRC20",
"USDT_ERC20",
"BTC"
]
}{
"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"
}Misc
List supported currencies
Get all supported fiat and cryptocurrency codes. Use this to validate currency selections and display currency options to users.
GET
/
v1
/
currencies
/
supported
List supported currencies
curl --request GET \
--url https://api.bachs.io/v1/currencies/supportedconst options = {method: 'GET'};
fetch('https://api.bachs.io/v1/currencies/supported', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bachs.io/v1/currencies/supported"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bachs.io/v1/currencies/supported"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"fiat": [
"USD",
"NGN",
"GHS",
"KES",
"ZAR"
],
"crypto": [
"USDT_TRC20",
"USDT_ERC20",
"BTC"
]
}{
"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"
}Response
Success
Response containing all supported currencies organized by type (fiat and cryptocurrency)
List of supported fiat (traditional) currencies. These are government-issued currencies like USD, NGN, GHS.
Fiat currency code (e.g., 'USD', 'NGN', 'GHS', 'KES', 'ZAR')
List of supported cryptocurrency codes. These may include network identifiers (e.g., 'USDT_TRC20' for Tron network, 'USDT_ERC20' for Ethereum network).
Cryptocurrency code, optionally including network (e.g., 'USDT_TRC20', 'USDT_ERC20', 'BTC')

