Get Supported Assets
Returns the list of supported crypto and fiat currencies for on-ramp or off-ramp.
GET
https://api.zenpayz.com/payment/api/v1/on-ramp/supported-assetsBearer · API key
Request
Headers
| Header | Description |
|---|---|
x-request-id OPTIONAL | Custom request ID for tracing |
Public Endpoint
This endpoint does not require authentication headers.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
type OPTIONAL | string | buy or sell (default: buy) |
country OPTIONAL | string | ISO country code (e.g. US, GB) |
Response
Success (200 OK)
{
"success": true,
"data": {
"message": {
"crypto": [
{
"id": "btc_bitcoin",
"code": "BTC",
"name": "Bitcoin",
"network": "bitcoin"
},
{
"id": "eth_ethereum",
"code": "ETH",
"name": "Ethereum",
"network": "ethereum"
}
],
"fiat": [
{
"id": "usd",
"code": "USD",
"name": "US Dollar",
"symbol": "$"
},
{
"id": "eur",
"code": "EUR",
"name": "Euro",
"symbol": "\u20ac"
}
]
}
},
"message": "Supported assets retrieved"
}
Error Responses
| Code | HTTP | Message |
|---|---|---|
| RAMP_SUPPORTED_FAILED | 500 | Failed to get supported assets |
Examples
- cURL
- JavaScript
- Python
curl "https://api.zenpayz.com/payment/api/v1/on-ramp/supported-assets?type=buy&country=US"
const response = await fetch(
'https://api.zenpayz.com/payment/api/v1/on-ramp/supported-assets?type=buy&country=US'
);
const { data } = await response.json();
console.log(data.message.crypto); // [{ id: "btc_bitcoin", ... }]
console.log(data.message.fiat); // [{ id: "usd", ... }]
import requests
response = requests.get(
"https://api.zenpayz.com/payment/api/v1/on-ramp/supported-assets",
params={"type": "buy", "country": "US"},
)
data = response.json()["data"]["message"]
print(data["crypto"]) # [{"id": "btc_bitcoin", ...}]
print(data["fiat"]) # [{"id": "usd", ...}]
Next Steps
- Payment Methods -- Get payment methods for a currency
- Buy Quotes -- Get quotes for a specific pair