logo
StartCurrencies

Currencies

Retrieve the list of supported fiat currencies available for merchant invoices, together with the current exchange rate used by the payment system.

Get currencies

GET /api/v1/currencies

Returns the list of enabled currencies available for the authenticated merchant.

Each item contains the current buy rate from USDT → fiat, rounded down to 2 decimal places.

Authentication

Send your API key in the X-Api-Key header.

X-Api-Key: your_api_key_here

Query parameters

This endpoint does not accept query parameters.

Example request

curl -X GET https://api.ecca-ex.com/api/v1/currencies \
  -H "X-Api-Key: your_api_key_here"

Example response

{
  "successful": true,
  "data": [
    {
      "currency": "UAH",
      "decimal": 2,
      "symbol": "₴",
      "name": "Ukrainian Hryvnia",
      "rate": "41.32"
    },
    {
      "currency": "KZT",
      "decimal": 2,
      "symbol": "₸",
      "name": "Kazakhstani Tenge",
      "rate": "489.50"
    }
  ]
}

Response fields

Top-level response

FieldTypeDescription
successfulbooleanIndicates whether the request succeeded
dataarrayList of available currencies

Currency item fields

FieldTypeDescription
currencystringCurrency code in uppercase, for example UAH
decimalintegerNumber of decimal places used for the currency
symbolstringCurrency symbol
namestringHuman-readable currency name
ratestringCurrent buy rate from USDT to this fiat currency, rounded down to 2 decimals

Notes

  • The rate direction is USDT -> fiat.

Currency errors

HTTPCodeDescription
503RATES_UNAVAILABLEExchange rates are temporarily unavailable
503RATES_INVALIDExchange rates cache is invalid
422RATE_INVALIDA currency rate exists but is invalid
404RATE_NOT_FOUNDNo valid currency rates were found

Example error

{
  "successful": false,
  "request_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
  "error": {
    "code": "RATES_UNAVAILABLE",
    "message": "Exchange rates are temporarily unavailable",
    "details": {}
  }
}