API referenceCurrencies

Currencies

Public list of currencies the platform supports in your environment. Use it to discover valid currency values for wallets, virtual accounts, beneficiaries, and payouts — instead of hard-coding a list.

The result is environment-scoped to your API key: a sandbox (sk_test_…) key returns the currencies active in test; a live (sk_live_…) key returns the currencies active in live. The two sets can differ while a currency is being rolled out.

GETList currencies

GET/v1/currencies

Returns the currencies active in your environment, ordered with our home market (NGN) first. There is no filter parameter — this endpoint is the list. Cached on Swappr’s side (5-minute TTL); safe to cache locally for hours.

Response fields

FieldTypeNotes
codestringISO 4217 currency code (e.g. NGN, USD, GBP). The value to send on currency params across the API.
namestringFull display name, e.g. Nigerian Naira.
symbolstringCurrency symbol, e.g. , £, $.
decimalsintegerMinor units per major unit, as a power of 10 (NGN/USD = 2; JPY/KRW = 0). Use it to format and parse minor-unit amounts correctly.

Notes

  • This is platform-level discovery — it answers “what currencies does the platform support in this environment”, not “what can my account transact right now”. For the currencies your account holds or can pay out in, see your wallets and the payout form in the dashboard.
  • The set is environment-scoped to your key (see above). Always read it with the key for the environment you’re integrating against.
  • No extra permission is needed — any valid key can read it.

Errors

CodeHTTPCause
unauthorized401Missing or invalid API key.
Request
curl 'https://api.swappr.me/api/v1/currencies' \
  -H "Authorization: Bearer sk_live_..."
Response
{
  "object": "list",
  "data": [
    {
      "code": "NGN",
      "name": "Nigerian Naira",
      "symbol": "₦",
      "decimals": 2
    },
    {
      "code": "USD",
      "name": "US Dollar",
      "symbol": "$",
      "decimals": 2
    },
    {
      "code": "GBP",
      "name": "Pound Sterling",
      "symbol": "£",
      "decimals": 2
    }
    // ...
  ]
}
200 OK