List ACH Payment Methods

This function allows you to retrieve a list of ACH Card Payment Methods on a specific customer.

Path Parameters

PropertyTypeDescription
customerIdIntegerThis is the Fusebill Id of the customer for whom you want to retrieve the payment methods.

This call supports string filtering (Read More)

Parameter NameAcceptable ValuesParameter NameAcceptable Values
AccountTypeCHQ, SAVlastNameString
address1StringmaskedAccountNumberInteger (last 4 digits)
address2StringmaskedTransitNumberInteger (last 4 digits)
cityStringoriginalPaymentMethodIdInteger
countryIdIntegerpostalZipString
emailStringstatedInteger
externalCardIdStringstoredInFusebillVaultBoolean
externalCustomerIdString

This call supports pagination (Read More)
&pageSize=10&pageNumber=0
This call supports sorting (Read More)
&sortOrder=Ascending or &sortOrder=Descending
&sortExpression=expression

Examples
curl -X GET "https://secure.fusebill.com/v1/customers/{customerId}/paymentMethods/achCard/" \
	-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://secure.fusebill.com/v1/customers/" + customerId + "/paymentMethods/achCard/");
//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/customers/{id}/paymentMethods/achCard/', headers=headers)
print(r.content)
Response
[ 
   { 
      "maskedAccountNumber":"****7890",
      "maskedTransitNumber":"****1234",
      "bankAccountType":"CHQ",
      "customerId":172677,
      "firstName":"John",
      "lastName":"Doe",
      "address1":"232 Herzberg Road",
      "address2":"Suite 203",
      "countryId":124,
      "country":"",
      "stateId":9,
      "state":"",
      "city":"Kanata",
      "postalZip":"K2K 2A1",
      "isDefault":false,
      "externalCustomerId":null,
      "externalCardId":null,
      "storedInFusebillVault":true,
      "id":82628,
      "uri":null
   },
   { 
      "maskedAccountNumber":"****7890",
      "maskedTransitNumber":"****1234",
      "bankAccountType":"SAV",
      "customerId":172677,
      "firstName":"John",
      "lastName":"Doe",
      "address1":"232 Herzberg Road",
      "address2":"Suite 203",
      "countryId":124,
      "country":"",
      "stateId":9,
      "state":"",
      "city":"Kanata",
      "postalZip":"K2K 2A1",
      "isDefault":true,
      "externalCustomerId":null,
      "externalCardId":null,
      "storedInFusebillVault":true,
      "id":82138,
      "uri":null
   }
]
{
    "ErrorId": 0,
    "HttpStatusCode": 404,
    "Errors": [
        {
            "Key": "Api Error",
            "Value": "Customer with id 611 not found."
        }
    ]
}
Language
Authorization