Delete ACH Payment Method

This function allows you to delete an ACH card payment method on a customer. There is no body returned. This delete action cannot be undone. Additionally, if you have multiple payment methods on file and attempt to delete the default payment method an error is returned. You must set another payment method as the default before deleting the current default. If you have only one payment method on file it can be deleted normally.

Path Parameters

paymentMethodIdDecimalThis is the ID of the Payment Method you want to delete.
curl -X DELETE "{paymentMethodId}/achCard" \
	-H "Content-Type: application/json" \
	-H "Authorization: Basic {APIKey}"
//Query parameter
int pathParameter = {paymentMethodId};
//Setup API key
string apiKey = "{APIKey}";
//Configure URI
WebRequest request = WebRequest.Create("HTTPS://" + pathParameter + "/achCard");
//Add Content type
request.ContentLength = 0;
request.ContentType = "application/json";
//Add Api key authorization
request.Headers.Add(HttpRequestHeader.Authorization, "Basic " + apiKey);
//Set request method
request.Method = "DELETE";
//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.delete('{id}/achCard', headers=headers)
No response
    "ErrorId": 0,
    "HttpStatusCode": 400,
    "Errors": [
            "Key": "Api Error",
            "Value": "Cannot delete a default payment method. Please mark another payment method as the default first."