Supported currencies and Tokens
Fetch supported currencies and tokens before you render payment options or validate user input.
1. List supported currencies
Use GET /v3/config/supported-currencies to fetch the fiat currencies your integration can display or accept.
cURL
curl --request GET \
--url "https://sandbox-api.aparatech.io/v3/config/supported-currencies" \
--user "aparaUser:aparaPass" \
--header "Accept: application/json" \
--header "Content-Type: application/json"
Integration
const axios = require("axios");
async function getSupportedCurrencies() {
try {
const response = await axios.get(
"https://sandbox-api.aparatech.io/v3/config/supported-currencies",
{
auth: {
username: "aparaUser",
password: "aparaPass"
},
headers: {
Accept: "application/json",
"Content-Type": "application/json"
}
}
);
console.log("Supported currencies:", response.data);
} catch (error) {
if (error.response) {
console.error("API error:", error.response.status, error.response.data);
return;
}
console.error("Request failed:", error.message);
}
}
getSupportedCurrencies();
import requests
from requests.auth import HTTPBasicAuth
def get_supported_currencies():
try:
response = requests.get(
"https://sandbox-api.aparatech.io/v3/config/supported-currencies",
auth=HTTPBasicAuth("aparaUser", "aparaPass"),
headers={
"Accept": "application/json",
"Content-Type": "application/json",
},
timeout=30,
)
response.raise_for_status()
print("Supported currencies:")
print(response.json())
except requests.HTTPError:
print("API error:", response.status_code, response.text)
except requests.RequestException as exc:
print("Request failed:", exc)
get_supported_currencies()
Example response
{
"success": true,
"data": [
{
"code": "USD",
"name": "US Dollar"
},
{
"code": "EUR",
"name": "Euro"
},
{
"code": "NGN",
"name": "Nigerian Naira"
}
]
}
2. List supported tokens
Use GET /v3/config/list-tokens to fetch the token options your integration can present for token-based flows.
cURL
curl --request GET \
--url "https://sandbox-api.aparatech.io/v3/config/list-tokens" \
--user "aparaUser:aparaPass" \
--header "Accept: application/json" \
--header "Content-Type: application/json"
Integration
const axios = require("axios");
async function getSupportedTokens() {
try {
const response = await axios.get(
"https://sandbox-api.aparatech.io/v3/config/list-tokens",
{
auth: {
username: "aparaUser",
password: "aparaPass"
},
headers: {
Accept: "application/json",
"Content-Type": "application/json"
}
}
);
console.log("Supported tokens:", response.data);
} catch (error) {
if (error.response) {
console.error("API error:", error.response.status, error.response.data);
return;
}
console.error("Request failed:", error.message);
}
}
getSupportedTokens();
import requests
from requests.auth import HTTPBasicAuth
def get_supported_tokens():
try:
response = requests.get(
"https://sandbox-api.aparatech.io/v3/config/list-tokens",
auth=HTTPBasicAuth("aparaUser", "aparaPass"),
headers={
"Accept": "application/json",
"Content-Type": "application/json",
},
timeout=30,
)
response.raise_for_status()
print("Supported tokens:")
print(response.json())
except requests.HTTPError:
print("API error:", response.status_code, response.text)
except requests.RequestException as exc:
print("Request failed:", exc)
get_supported_tokens()
Example response
{
"success": true,
"data": [
{
"symbol": "USDT",
"name": "Tether USD",
"network": "TRON"
},
{
"symbol": "USDC",
"name": "USD Coin",
"network": "Ethereum"
}
]
}
Was this page helpful?
Last updated today
Built with Documentation.AI