Overview
Vellosim eSIM packages are priced in USD. If your users pay in NGN (Nigerian Naira), use this endpoint to fetch the current exchange rate so you can display the correct Naira amount before purchase. This is a public endpoint — no authentication is required.Quick Start
Response
Response Fields
| Field | Type | Description |
|---|---|---|
rate | number | Current exchange rate (1 USD = X NGN) |
baseCurrency | string | Base currency — always USD |
currency | string | Target currency — always NGN |
Usage Tips
Cache the rate
Cache the rate
The exchange rate doesn’t change frequently. Cache it for 10–15 minutes to reduce API calls.
Display both currencies
Display both currencies
Show your users both the USD price from the package and the calculated NGN amount for transparency:
Round NGN amounts
Round NGN amounts
Round the converted NGN amount to 2 decimal places for clean display:
The actual charge at purchase time uses the server-side rate, not the rate you fetched. Small differences may occur if the rate updates between display and purchase.
