Info
Convert local currency amount to USD.
get/v0.2.4/info/local-amount-in-usd
Request
- Base URLhttps://api.chimoney.io
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
originCurrencystring required
Currency symbol e.g NGN, USD.
amountInOriginCurrencyinteger required
amount to be converted.
Response
Success.
Example response
{
"status": "success",
"message": "Amount converted to USD successfully",
"data": {
"amountInOriginCurrency": "20",
"originCurrency": "NGN",
"amountInUSD": 0.2,
"validUntil": "2022-08-21T20:05:50.474Z"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.