-
- abort-payment-on-terminal
- capture-payment
- filter-payments
- find-payment
- initiate-payment-flow
- list-activity-logs
- list-payment-activities
- list-payments
- list-payments-by-contact
- list-payments-by-terminal
- refund-payment
- request-payment
- resume-payment-on-terminal
- retrieve-refund-performance
- retrieve-sales-performance
- reverse-payment
- start-payment-on-terminal
- void-payment
Validate bank account
Check with the bank that a bank account exists and that its holder name matches the name you expect, before adding the bank account to a contact.
The account holder name from the bank is compared against name and local_name.
Titles such as Mr. or นาย are ignored.
match is true when score is greater than or equal to sensitivity.
bank_code
string
Required. The bank's code in your country's banking system. For example, in Thailand this would be the 3-digit bank code assigned by the Bank of Thailand.
account_number
string
Required. The bank account number. Dashes and spaces are accepted and will be stripped automatically. Only digits, dashes, and spaces are allowed.
name
string
Optional. The account holder's name in latin characters. Only letters (A-Z), single quotes (') and dashes (-) are allowed, up to 5 words. At least one of name or local_name must be given.
local_name
string
Optional. The account holder's name in the local language (e.g. Thai), up to 5 words. At least one of name or local_name must be given.
sensitivity
number
Required. The minimum score, from 0 to 1, for the name to be considered a match.
| Attribute | Description |
|---|---|
availableboolean
|
Always present. Whether the bank confirmed that the bank account exists. |
matchboolean
|
Always present. Whether |
scorenumber
|
Always present. How closely the given name matches the account holder name, from 0 (no match) to 1 (exact match). |
similaritynumber
|
Always present. How similar the characters of the given name are to the account holder name, from 0 to 1. |
distancenumber
|
Nullable. The number of characters that differ between the given name and the account holder name. Null when the bank account is not available. |
normalized_namestring
|
Nullable. The given name as it was compared with the account holder name. Null when the bank account is not available. |
NOT_SUPPORTED
Bank account validation is not available for your account.
LOOKUP_FAILED
The bank account could not be looked up with the bank. Please try again later.
UNHANDLED_ERROR
This error occurs when the server encounters an unexpected internal error that it cannot handle gracefully. This typically happens due to bugs, infrastructure issues, or edge cases that weren't anticipated during development.
INVALID_ARGUMENTS
This error occurs when the request contains invalid or missing parameters. Common cases include missing required fields, or values that don't match the expected format or type.
BAD_VERSION
This error occurs when making requests to an API version that does not exist. This commonly happens when using an outdated SDK or when the API version specified in the request URL is incorrect.
