USD-amount-in-local

/info/usd-amount-in-local

You might want to get the USD value of an amount in a currency , here is how to it, Chief πŸ˜‰

GET https://live.chimoney.io/api/v0.1/info/usd-amount-in-local?destinationCurrency=KES&amountInUSD=100

Get the USD value of an amount in a currency

Path Parameters

Name
Type
Description

destinationCurrency*

KES

amountInUSD*

100

Headers

Name
Type
Description

X-API-Key*

API_KEY_FROM_DEV_PORTAL

{
    // transaction detail
}

#Javascript FETCH

var myHeaders = new Headers();
myHeaders.append("X-API-Key", "API_KEY_FROM_DEV_PORTAL");

var requestOptions = {
  method: 'GET',
  headers: myHeaders,
  redirect: 'follow'
};

fetch("https://live.chimoney.io/api/v0.1/info/usd-amount-in-local?destinationCurrency=KES&amountInUSD=100", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

#Python REQUESTS

#PHP cURL

Last updated