CurrenciesSupported Currencies

Supported currencies

Fetch supported currencies before you render payment options or validate user input.

1. List supported currencies

Use GET /v1/oblixcore/config/supported-currencies to fetch the fiat currencies your integration can display or accept.

Request and response

curl --location 'https://sandbox-api.aparatech.io/v1/public/config/supported-currencies?direction=deposit&userType=individual&limit=100&page=1' \
--header 'accept: application/json' \
--header 'mid: {{mid}}' \
--header 'Authorization: Basic {{token}}'

Integration

const axios = require("axios");

async function getSupportedCurrencies() {
  try {
    const response = await axios.get(
      "https://sandbox-api.aparatech.io/v1/public/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();