get https://secure.fusebill.com/v1/QuickBooksOnlineExchangeRates
This action returns the list of QuickBooks Online exchange rates for each currency configured for your account. The rates are in relation to the account default currency, so the default currency will always have an exchange rate of 1.0.
Examples
curl –X GET https://secure.fusebill.com/v1/QuickBooksOnlineExchangeRates \
-H "Content-Type: application/json" \
-H "Authorization: Basic {APIKey}"
//Setup API key
string apiKey = "{APIKey}";
//Configure URI
WebRequest request = WebRequest.Create("HTTPS://secure.fusebill.com/v1/QuickBooksOnlineExchangeRates ");
//Add Content type
request.ContentType = "application/json";
//Add Api key authorization
request.Headers.Add(HttpRequestHeader.Authorization, "Basic "+apiKey);
//Set request method
request.Method = "GET";
//Perform the request
var httpResponse = (HttpWebResponse)request.GetResponse();
//Record the response from our request
var result = "";
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
result = streamReader.ReadToEnd();
}
#Import library JSON
import json
#Import library Requests
import requests
#Pass in a dictionary to the Headers parameter
headers = {'Authorization' : 'Basic {APIKey}', 'Content-Type' : 'application/json'}
#Pass in your URI and Headers
r = requests.get('https://secure.fusebill.com/v1/QuickBooksOnlineExchangeRates , headers=headers)
print(r.content)
Response
{
"exchangeRates": [
{
"exchangeRate": 1,
"currency": {
"id": 1,
"isoName": "USD",
"symbol": "$"
},
"createdTimestamp": "2019-09-13T15:15:18",
"effectiveTimestamp": "2019-09-13T07:10:34",
"id": 12345,
"uri": null
},
{
"exchangeRate": 0.0589,
"currency": {
"id": 19,
"isoName": "RUB",
"symbol": "₽"
},
"createdTimestamp": "2019-09-13T15:15:18",
"effectiveTimestamp": "2019-09-13T07:10:34",
"id": 12346,
"uri": null
}
]
}