Read ACH Payment Method by ID

This function allows you to retrieve a specific ACH card payment method by it's ID.

Path Parameters

PropertyTypeDescription
paymentMethodIdIntegerThis is the unique ID of the ACHCard Payment Method you want to retrieve.
Examples
curl -X GET "https://secure.fusebill.com/v1/paymentMethods/{paymentMethodId}/achCard/" \
	-H "Content-Type: application/json" \
	-H "Authorization: Basic {APIKey}"
//query parameter
int paymentId = {paymentMethodId};
//Setup API key
string apiKey = "{APIKey}";
//Configure URI
WebRequest request = WebRequest.Create("HTTPS://secure.fusebill.com/v1/paymentMethods/" + paymentId + "/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/paymentMethods/{id}/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":"CAN",
   "stateId":9,
   "state":"Ontario",
   "city":"Kanata",
   "postalZip":"K2K 2A1",
   "isDefault":false,
   "externalCustomerId":null,
   "externalCardId":null,
   "storedInFusebillVault":true,
   "id":82628,
   "uri":null
}
{
    "ErrorId": 0,
    "HttpStatusCode": 404,
    "Errors": [
        {
            "Key": "Api Error",
            "Value": "AchCard with id 2042506 not found."
        }
    ]
}
Language
Authorization