get https://secure.fusebill.com/v1/NetCollections?currency=
This method will allow you to retrieve the values for the 'Cash Collected' summary that is displayed on the Fusebill Home Page.
The currency to be retrieved must be specified in the URL.
URL Parameters
Property | Type | Description |
---|---|---|
ISO | 3 character ISO currency code | The currency to return the report summary in. This must be one of the currencies configured for your Fusebill account. |
This method returns the numerical values shown in the screenshot below

Examples
curl -X GET "https://secure.fusebill.com/v1/NetCollections?currency=USD \
-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/NetCollections?currency=NZD");
//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 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/NetCollections?currency=USD', headers=headers)
print(r.content)
Response
[
{
"range":"Today",
"netCollected":127,
"startDate":"2018-09-14T00:00:00",
"endDate":"2018-09-14T00:00:00"
},
{
"range":"Yesterday",
"netCollected":132.39,
"startDate":"2018-09-13T00:00:00",
"endDate":"2018-09-13T00:00:00"
},
{
"range":"Avg MTD",
"netCollected":2353.41,
"startDate":"2018-09-01T00:00:00",
"endDate":"2018-09-13T00:00:00"
},
{
"range":"This Month",
"netCollected":30721.36,
"startDate":"2018-09-01T00:00:00",
"endDate":"2018-09-14T00:00:00"
},
{
"range":"Last Month",
"netCollected":1432.11,
"startDate":"2018-08-01T00:00:00",
"endDate":"2018-08-31T00:00:00"
},
{
"range":"Last MTD",
"netCollected":658.6,
"startDate":"2018-08-01T00:00:00",
"endDate":"2018-08-14T00:00:00"
},
{
"range":"This Year",
"netCollected":207282.64,
"startDate":"2018-01-01T00:00:00",
"endDate":"2018-09-14T00:00:00"
},
{
"range":"Last Year",
"netCollected":272163.61,
"startDate":"2017-01-01T00:00:00",
"endDate":"2017-12-31T00:00:00"
},
{
"range":"Last YTD",
"netCollected":213881.65,
"startDate":"2017-01-01T00:00:00",
"endDate":"2017-09-14T00:00:00"
}
]
{
"ErrorId": 0,
"HttpStatusCode": 400,
"Errors": [
{
"Key": "Api Error",
"Value": "Currency RUB does not exist under your account or may have been entered incorrectly. Please enter the ISO name for the currency you would like."
}
]
}