Invalidated Payment Method β API Reference
Looking up the direct-API request/response shape for an invalidated bank account. For what causes invalidation and how to react via webhooks, see Invalidated Payment Method.
API Requestβ
There is no request that causes invalidation directly β it results from an ACH return on a prior payment. To check whether a payment method is currently invalidated before attempting a payment, request its current state:
GET /v2/payment-methods/{id}
X-Merchant-Id: {merchantId}
API Responseβ
The endpoint wraps the payment method in a { url, data } envelope β status is read from data.paymentMethodDetails.status, not from the top level:
{
"url": "/v2/payment-methods/497f6eca-6276-4993-bfeb-53cbbbba6f08",
"data": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"paymentMethodType": "BANK_ACCOUNT",
"paymentMethodDetails": {
"type": "BANK_ACCOUNT",
"accountType": "checking",
"status": "INVALIDATED",
"bankName": "STRIPE TEST BANK"
}
}
}
data.paymentMethodDetails.status is a read-only field with possible values ACTIVE or INVALIDATED (see the USBankAccountDetailsSummaryResponse schema). Attempting to pay with or update a payment method in INVALIDATED status returns an error β see Error Handling.
Status Handlingβ
Check data.paymentMethodDetails.status before attempting a payment or an update against a saved bank account. There is no polling involved β invalidation happens asynchronously (driven by the ACH return) and is reflected the next time the payment method is read.
Related Documentationβ
- Invalidated Payment Method (How-to) β cause and webhook handling
- Payment Error Codes