Perform a bank details lookup#
/bank_details_lookupsPerforms a bank details lookup. As part of the lookup, a modulus check and reachability check are performed.
For UK-based bank accounts, where an account holder name is provided (and an account number, a sort code or an iban are already present), we verify that the account holder name and bank account number match the details held by the relevant bank.
If your request returns an error or the available_debit_schemes
attribute is an empty array, you will not be able to collect payments from the
specified bank account. GoCardless may be able to collect payments from an account
even if no bic is returned.
Bank account details may be supplied using local details or an IBAN.
ACH scheme For compliance reasons, an extra validation step is done using a third-party provider to make sure the customer's bank account can accept Direct Debit. If a bank account is discovered to be closed or invalid, the customer is requested to adjust the account number/routing number and succeed in this check to continue with the flow.
Note: Usage of this endpoint is monitored. If your organisation relies on GoCardless for modulus or reachability checking but not for payment collection, please get in touch.
Request Body
bank_details_lookupsobject6 properties
ibanstring
International Bank Account Number. Alternatively you can provide local details.
account_numberstring
Bank account number - see local details for more information. Alternatively you can provide an iban.
bank_codestring
Bank code - see local details for more information. Alternatively you can provide an iban.
branch_codestring
Branch code - see local details for more information. Alternatively you can provide an iban.
country_codestring
ISO 3166-1 alpha-2 code. Must be provided if specifying local details.
account_holder_namestring
The account holder name associated with the account number (if available). If provided and the country code is GB, a payer name verification will be performed.
Response 201
Resource created successfully
bank_details_lookupsobject3 properties
bank_namestring
The name of the bank with which the account is held (if available).
bicstring
ISO 9362 SWIFT BIC of the bank with which the account is held.
Even if no BIC is returned for an account, GoCardless may still be able to collect payments from it - you should refer to the available_debit_schemes attribute to determine reachability.
available_debit_schemesarray
Array of schemes supported for this bank account. This will be an empty array if the bank account is not reachable by any schemes.
Errors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobject