Read Customer Billing Settings

This function allows you to get the Customer Billing Settings for a specific customer. In your request, the customerID is the primary unique identifier on the customer profile.

Path Parameters

PropertyTypeDescription
customerIdIntegerThe Fusebill generated ID that uniquely identifies the customer
Examples
curl -X GET "https://secure.fusebill.com/v1/customerbillingsetting/{customerId}" \
	-H "Content-Type: application/json" \
	-H "Authorization: Basic {APIKey}"
//path parameter, Fusebill Id which corresponds to the Id returned by Get Customer
int pathParameter = {customerId}; 
//Setup API key
string apiKey = "{APIKey}";
//Configure URI
WebRequest request = WebRequest.Create("HTTPS://secure.fusebill.com/v1/customerbillingsetting/"+pathParameter);
//Add Content type
request.ContentType = "application/json";
request.ContentLength = 0;
//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, Payload and Headers
r = requests.get('https://secure.fusebill.com/v1/CustomerBillingSetting/{id}', headers=headers)
print(r.content)
Response
{
    "invoiceDay": -1,
    "term": "Net30",
    "interval": "Monthly",
    "autoCollect": null,
    "dunningExempt": false,
    "rechargeType": "",
    "rechargeThresholdAmount": null,
    "rechargeTargetAmount": null,
    "statusOnThreshold": null,
    "autoPostDraftInvoice": null,
    "hasPaymentMethod": true,
    "customerGracePeriod": null,
    "gracePeriodExtension": null,
    "standingPoNumber": null,
    "billingPeriodConfigurations": [
        {
            "type": "FirstSubscriptionActivation",
            "rule": "OneInvoicePerDay",
            "interval": "Monthly",
            "day": null,
            "month": null
        },
        {
            "type": "FirstSubscriptionActivation",
            "rule": "OneInvoicePerDay",
            "interval": "Yearly",
            "day": null,
            "month": null
        }
    ],
    "acquisitionCost": 0,
    "showZeroDollarCharges": null,
    "taxExempt": false,
    "useCustomerBillingAddress": null,
    "taxExemptCode": null,
    "avalaraUsageType": null,
    "vatIdentificationNumber": null,
    "customerServiceStartOption": "",
    "rollUpTaxes": null,
    "rollUpDiscounts": null,
    "trackedItemDisplay": null,
    "customerBillingStatementSetting": {
        "option": null,
        "type": null,
        "interval": null,
        "day": null,
        "month": null,
        "trackedItemDisplay": null
    },
    "defaultPaymentMethodId": 142291,
    "id": 342780,
    "uri": "https://secure.fusebill.com/v1/customerbillingsetting/342780"
}
{
    "ErrorId": 0,
    "HttpStatusCode": 404,
    "Errors": [
        {
            "Key": "Api Error",
            "Value": "Customer with id 1 not found."
        }
    ]
}
Language
Authorization