Check that a beneficiary bank account exists and, when a name is supplied, that it matches the account holder. India only (country must be IND).
Destination country. Must be IND — account validation is available for India only, because it is the only corridor with the bank reference data the validation backends need. Any other value is a 400.
Payment type the beneficiary will be paid out under; picks the provider route the validation runs on
- Mock serverhttps://docs.leanx.me/_mock/openapi/v3/validate_account
- Leanx Test serverhttps://api.leanxtest.me/v3/validate_account
- Leanx Production serverhttps://api.leanx.me/v3/validate_account
curl -i -X POST \
https://docs.leanx.me/_mock/openapi/v3/validate_account \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"account_number": "99345724439934",
"beneficiary_name": "Nikhil Sharma",
"branch_code": "FDRL0001883",
"country": "IND",
"payment_type": "C2C"
}'Successful Response
Account status as reported by the validation backend. pending means the backend has queued the check and the account should be validated again later
| Enum Value | Description |
|---|---|
| invalid | The account was not found, or is blocked, closed or inactive, or the IFSC code is invalid. Do not send a payment to it. |
| nre | The account exists and is an Indian NRE (Non-Resident External) account. It passes validation; payments to it are handled under NRE rules. |
| pending | The check is still running at the provider. This is not a failure: check again later. |
| valid | The account exists and is active. |
{ "account_number": "99345724439934", "branch_code": "FDRL0001883", "country": "IND", "name": "Nikhil Sharma", "status": "valid" }