FX
Overview
Converting from one currency to another get easier with Swerv
Supported Conversion
- USD to NGN
- NGN to USD
💵 Get Rate
To get current rate for convertion, use the rate endpoint.
Body
to
string
The three-letter ISO currency code in uppercase.
from
string
The three-letter ISO currency code in uppercase.
amount
integer
amount to convert in the smallest currency unit (e.g., cents, kobo).
Request Body
{
"from": "NGN",
"to": "USD",
"amount": 1
}
💵 Exchnage
To convert from one currency to another, use the exchange endpoint.
Body
to
string
The three-letter ISO currency code in uppercase.
from
string
The three-letter ISO currency code in uppercase.
amount
integer
amount to convert in the smallest currency unit (e.g., cents, kobo).
Request Body
{
"from": "NGN",
"to": "USD",
"amount": 1
}