Revoke ACH Authorization
curl --request POST \
--url https://api.finosu.com/customers/{customerId}/payment-methods/{paymentMethodId}/ach-authorization \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"revokeAuthorization": true
}
'import requests
url = "https://api.finosu.com/customers/{customerId}/payment-methods/{paymentMethodId}/ach-authorization"
payload = { "revokeAuthorization": True }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({revokeAuthorization: true})
};
fetch('https://api.finosu.com/customers/{customerId}/payment-methods/{paymentMethodId}/ach-authorization', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.finosu.com/customers/{customerId}/payment-methods/{paymentMethodId}/ach-authorization",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'revokeAuthorization' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.finosu.com/customers/{customerId}/payment-methods/{paymentMethodId}/ach-authorization"
payload := strings.NewReader("{\n \"revokeAuthorization\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.finosu.com/customers/{customerId}/payment-methods/{paymentMethodId}/ach-authorization")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"revokeAuthorization\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.finosu.com/customers/{customerId}/payment-methods/{paymentMethodId}/ach-authorization")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"revokeAuthorization\": true\n}"
response = http.request(request)
puts response.read_body{
"customerId": "<string>",
"paymentMethodId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revokeAuthorization": true
}Payment Methods
Revoke ACH Authorization
Collections only. Updates revocation on one exact tenant-owned bank payment method. true revokes the current authorization. false never restores revoked consent; a new authorization must be captured. POST and PUT are equivalent. To revoke multiple bank authorizations, call separately for each BANK_ACCOUNT ID belonging to the same customer; cards are rejected and the calls are not atomic.
POST
/
customers
/
{customerId}
/
payment-methods
/
{paymentMethodId}
/
ach-authorization
Revoke ACH Authorization
curl --request POST \
--url https://api.finosu.com/customers/{customerId}/payment-methods/{paymentMethodId}/ach-authorization \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"revokeAuthorization": true
}
'import requests
url = "https://api.finosu.com/customers/{customerId}/payment-methods/{paymentMethodId}/ach-authorization"
payload = { "revokeAuthorization": True }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({revokeAuthorization: true})
};
fetch('https://api.finosu.com/customers/{customerId}/payment-methods/{paymentMethodId}/ach-authorization', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.finosu.com/customers/{customerId}/payment-methods/{paymentMethodId}/ach-authorization",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'revokeAuthorization' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.finosu.com/customers/{customerId}/payment-methods/{paymentMethodId}/ach-authorization"
payload := strings.NewReader("{\n \"revokeAuthorization\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.finosu.com/customers/{customerId}/payment-methods/{paymentMethodId}/ach-authorization")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"revokeAuthorization\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.finosu.com/customers/{customerId}/payment-methods/{paymentMethodId}/ach-authorization")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"revokeAuthorization\": true\n}"
response = http.request(request)
puts response.read_body{
"customerId": "<string>",
"paymentMethodId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revokeAuthorization": true
}Collections only. Revoke the ACH debit authorization for a specific customer
bank-account payment method. Revoked authorization cannot be restored through this
endpoint; a new customer authorization is required.
The bank-account payment method must belong to an already-shared customer.
customerId is your external customer reference;
paymentMethodId is the Finosu UUID of the specific bank-account payment method
whose ACH authorization you want to revoke. The method must belong to that customer.
Both are checked against the company identified by the API key.
Use POST to submit a revocation. The existing PUT method remains supported
with the same request, authorization checks, and idempotent behavior.
Use the Finosu payment-method UUID, not your LMS’s payment-method ID,
the bank account number, or the loan ID. Retrieve it from
List Customer Payment Methods
using the same customerId and API key. Choose the exact BANK_ACCOUNT entry and
pass its paymentMethodId here. If you intend to revoke all of that customer’s
bank authorizations because the masked account cannot be distinguished, paginate
the full lookup and send this request separately for each BANK_ACCOUNT ID only.
Do not submit cards or another customer’s IDs. This is not an atomic bulk action:
check each response and retry only the same intended ID after a transient error.
{
"revokeAuthorization": true
}
true revokes the current ACH authorization and removes the payment method’s default status.
Repeating true is idempotent. Omitted or null makes no change.
false cannot restore consent. It is an idempotent no-op while the method still has an active
authorization, but returns 422 after revocation. Capture a new customer authorization through
the normal authorization workflow to clear the revoked-authorization status. A payment method
with no active or historical ACH authorization returns 409 for true.
This endpoint accepts bank-account payment methods only. It never applies the revocation to a
different payment method or to every method on the customer.Path Parameters
Finosu UUID of the specific bank-account payment method belonging to customerId. Not your LMS's payment-method ID, bank account number, or loan ID. Retrieve it from GET /customers/{customerId}/payment-methods using the same customer reference and API key; choose the exact BANK_ACCOUNT entry.
Body
application/json