> For the complete documentation index, see [llms.txt](https://ivorypay.gitbook.io/ivorypay-on-off-ramp-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ivorypay.gitbook.io/ivorypay-on-off-ramp-documentation/api-reference-off-ramp/get-minimum-amount.md).

# Get Minimum Off-Ramp Amount

Get the minimum off-ramp amount for a crypto token.

Returns the minimum crypto amount required to initiate an off-ramp transaction for a given token.

## Endpoint

```
GET /v1/offramp/minimum-amount/:token
```

## Authentication

| Header          | Value                                                          |
| --------------- | -------------------------------------------------------------- |
| `Authorization` | `<api_key>` — Merchant API key (this endpoint is API-key only) |

{% hint style="info" %}
The minimum is denominated in the API key's `primaryFiat` (the merchant's default fiat currency), converted to the requested token.
{% endhint %}

## Path parameters

| Parameter | Type   | Description                              |
| --------- | ------ | ---------------------------------------- |
| `token`   | string | Crypto token code (e.g., `USDT`, `USDC`) |

## Example request

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X GET https://ramp-api.ivorypay.io/api/v1/offramp/minimum-amount/USDT \
  -H "Authorization: your_api_key"
```

{% endtab %}

{% tab title="Node.js" %}

```javascript
const response = await fetch(
  "https://ramp-api.ivorypay.io/api/v1/offramp/minimum-amount/USDT",
  {
    method: "GET",
    headers: {
      "Authorization": "your_api_key",
    },
  }
);

const data = await response.json();
console.log(data);
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.get(
    "https://ramp-api.ivorypay.io/api/v1/offramp/minimum-amount/USDT",
    headers={
        "Authorization": "your_api_key",
    },
)

print(response.json())
```

{% endtab %}

{% tab title="Go" %}

```go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("GET", "https://ramp-api.ivorypay.io/api/v1/offramp/minimum-amount/USDT", nil)
	req.Header.Set("Authorization", "your_api_key")

	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()

	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
```

{% endtab %}
{% endtabs %}

## Example response

```json
{
  "success": true,
  "message": "Query successful",
  "data": {
    "token": "USDT",
    "minimumAmount": 5
  }
}
```
