> ## Documentation Index
> Fetch the complete documentation index at: https://docs.swervpay.co/llms.txt
> Use this file to discover all available pages before exploring further.

# 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](/api-reference/fx/rate) endpoint.

**Body**

<ParamField body="to" type="string">
  The three-letter ISO currency code in uppercase.
</ParamField>

<ParamField body="from" type="string">
  The three-letter ISO currency code in uppercase.
</ParamField>

<ParamField body="amount" type="integer">
  amount to convert in the smallest currency unit (e.g., cents, kobo).
</ParamField>

```json Request Body theme={null}
{
    "from": "NGN",
    "to": "USD",
    "amount": 1
}
```

### 💵 Exchnage

To convert from one currency to another, use the [exchange](/api-reference/fx/exchange) endpoint.

**Body**

<ParamField body="to" type="string">
  The three-letter ISO currency code in uppercase.
</ParamField>

<ParamField body="from" type="string">
  The three-letter ISO currency code in uppercase.
</ParamField>

<ParamField body="amount" type="integer">
  amount to convert in the smallest currency unit (e.g., cents, kobo).
</ParamField>

```json Request Body theme={null}
{
    "from": "NGN",
    "to": "USD",
    "amount": 1
}
```
