curl --request GET \
--url https://api.hypermid.io/v1/onramp/config \
--header 'X-API-Key: <api-key>'{
"data": {
"currencies": [
{ "code": "USD", "name": "US Dollar", "symbol": "$" },
{ "code": "EUR", "name": "Euro", "symbol": "\u20ac" },
{ "code": "GBP", "name": "British Pound", "symbol": "\u00a3" },
{ "code": "CAD", "name": "Canadian Dollar", "symbol": "C$" },
{ "code": "AUD", "name": "Australian Dollar", "symbol": "A$" },
{ "code": "CHF", "name": "Swiss Franc", "symbol": "CHF" }
],
"paymentMethods": [
{
"id": "credit_card",
"name": "Credit Card",
"processingTime": "Instant",
"feePercentage": 3.49
},
{
"id": "debit_card",
"name": "Debit Card",
"processingTime": "Instant",
"feePercentage": 2.99
},
{
"id": "bank_transfer",
"name": "Bank Transfer",
"processingTime": "1-3 business days",
"feePercentage": 1.49
}
]
},
"error": null,
"meta": {
"requestId": "u1d2e3f4-a5b6-7890-4567-901234567890",
"timestamp": 1711234579,
"rateLimit": {
"limit": 2000,
"remaining": 1979,
"reset": 1711234627
}
}
}
Get supported fiat currencies and payment methods
curl --request GET \
--url https://api.hypermid.io/v1/onramp/config \
--header 'X-API-Key: <api-key>'{
"data": {
"currencies": [
{ "code": "USD", "name": "US Dollar", "symbol": "$" },
{ "code": "EUR", "name": "Euro", "symbol": "\u20ac" },
{ "code": "GBP", "name": "British Pound", "symbol": "\u00a3" },
{ "code": "CAD", "name": "Canadian Dollar", "symbol": "C$" },
{ "code": "AUD", "name": "Australian Dollar", "symbol": "A$" },
{ "code": "CHF", "name": "Swiss Franc", "symbol": "CHF" }
],
"paymentMethods": [
{
"id": "credit_card",
"name": "Credit Card",
"processingTime": "Instant",
"feePercentage": 3.49
},
{
"id": "debit_card",
"name": "Debit Card",
"processingTime": "Instant",
"feePercentage": 2.99
},
{
"id": "bank_transfer",
"name": "Bank Transfer",
"processingTime": "1-3 business days",
"feePercentage": 1.49
}
]
},
"error": null,
"meta": {
"requestId": "u1d2e3f4-a5b6-7890-4567-901234567890",
"timestamp": 1711234579,
"rateLimit": {
"limit": 2000,
"remaining": 1979,
"reset": 1711234627
}
}
}
{
"data": {
"currencies": [
{ "code": "USD", "name": "US Dollar", "symbol": "$" },
{ "code": "EUR", "name": "Euro", "symbol": "\u20ac" },
{ "code": "GBP", "name": "British Pound", "symbol": "\u00a3" },
{ "code": "CAD", "name": "Canadian Dollar", "symbol": "C$" },
{ "code": "AUD", "name": "Australian Dollar", "symbol": "A$" },
{ "code": "CHF", "name": "Swiss Franc", "symbol": "CHF" }
],
"paymentMethods": [
{
"id": "credit_card",
"name": "Credit Card",
"processingTime": "Instant",
"feePercentage": 3.49
},
{
"id": "debit_card",
"name": "Debit Card",
"processingTime": "Instant",
"feePercentage": 2.99
},
{
"id": "bank_transfer",
"name": "Bank Transfer",
"processingTime": "1-3 business days",
"feePercentage": 1.49
}
]
},
"error": null,
"meta": {
"requestId": "u1d2e3f4-a5b6-7890-4567-901234567890",
"timestamp": 1711234579,
"rateLimit": {
"limit": 2000,
"remaining": 1979,
"reset": 1711234627
}
}
}
const config = await client.getOnrampConfig();
console.log("Supported currencies:");
for (const currency of config.data.currencies) {
console.log(` ${currency.symbol} ${currency.code} - ${currency.name}`);
}
console.log("Payment methods:");
for (const method of config.data.paymentMethods) {
console.log(` ${method.name}: ${method.feePercentage}% fee, ${method.processingTime}`);
}