DOCS
Build with the API

Validate a bank account

Check an ACH account before you tokenize it or pay with it.

Platform guide

Validating a bank account before you debit it or pay out to it catches bad account details before they turn into returns. Call POST /v1/accountValidations with an ach object and an accountValidationMethod.

  • accountValidationMethod is AccountNumber, or AccountNumberAndName to also check the holder's name.
  • ach uses the same fields as a payment: bankAccountHolder, routingNumber, accountNumber, and an optional bankAccountType.

The response includes isValid, and an errorMessage that is null when the account is valid.

Requires your API secret

Each validation is billed, so the call requires your API key and secret. A request with only accountKey is rejected with 403. Send your platform key and secret plus the merchant's accountKey.

To validate while you save an ACH account, set validateAccount to true on POST /v1/tokens instead. The account is validated before the token is stored.

Validation charges appear on the statement as their own line, separate from payment fees.

Validating check images is a different call, POST /v1/checks/validate. See Send a check.

validate
curl -s -u "$DHANGO_KEY:$DHANGO_SECRET" \ -H "Content-Type: application/json" \ -H "accountKey: $ACCOUNT_KEY" \ -d '{"accountValidationMethod":"AccountNumberAndName","ach":{"bankAccountHolder":"Ada Lovelace","routingNumber":"021000021","accountNumber":"123456789","bankAccountType":"PersonalChecking"}}' \ https://api.dhangodemo.com/v1/accountValidations