List Draft Invoices By Customer (Summary)

This action allows you to retrieve a list of Draft Invoices that belong to the Customer referenced. These draft invoices are summarized and do not include draft charges.

Path Parameters

customerIdIntegerThis Customer ID determines which Customer account you query for Draft Invoices.

This call supports string filtering (Read More) and datetime/numeric range filtering (Read More)

Parameter NameAcceptable ValuesParameter NameAcceptable Values
BillingPeriodEndDateDate RangefirstNameString
BillingPeriodStartDateDate RangelastNameString
createdDateDate RangemodifiedTimestampDate Range
currencyIdInteger (1-24)*pendingChargesDecimal Range
effectiveDateDate RangestatusReady, Pending, Projected

*See here for Fusebill currency codes
This call supports pagination (Read More)
This call supports sorting (Read More)
&sortOrder=Ascending or &sortOrder=Descending

curl -X GET "{customerId}/DraftInvoices?query={query}&pageSize=100&pageNumber=0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Basic {APIKey}"
//query parameter
int customerId = {customerId};
//Setup API key
string apiKey = "{APIKey}";
//Configure URI
WebRequest request = WebRequest.Create("HTTPS://" + customerId + "/DraftInvoices/?query={query}&pageSize=100&pageNumber=0");
//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('{id}/DraftInvoices?query={query}&pageSize=100&pageNumber=0', headers=headers)
      "billingPeriod":"Jan 11, 2017 to Jan 31, 2017",
      "customerFullName":"John Doe",
      "companyName":"Kennedy Consulting",
    "ErrorId": 0,
    "HttpStatusCode": 404,
    "Errors": [
            "Key": "Api Error",
            "Value": "Customer with id 1 not found."