> ## Documentation Index
> Fetch the complete documentation index at: https://curlec.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Fund Account Validation

> Validate a beneficiary's bank account or DuitNow proxy before you make a payout.

Available in
🇲🇾 Malaysia

> [!NOTE]
>
> RazorpayX payouts in Malaysia are available on request. RazorpayX is not enabled on Razorpay Curlec accounts by default. To enquire about RazorpayX for your business, [contact our Support team](https://curlec.com/docs/payments/dashboard/support.md).

Validate a beneficiary's Fund account before you pay to make sure that it is the account where the beneficiary wants to receive the amount.

In Malaysia, a validation is a name enquiry at the beneficiary's bank for a bank account, or a proxy lookup for DuitNow. It returns the status of the account and the name registered with the bank. No amount is credited to the beneficiary.

Know more about the [Account Validation APIs](https://curlec.com/docs/x/fund-account-validation/api.md).

> [!WARNING]
>
> **Watch Out!**
>
> * If a beneficiary gives you a wrong account number and that account exists, a payout to it can still be processed. Validate Fund accounts before making a payout.
> * The validation request does not take an `amount` parameter.

## Workflow

1. Send a validation request with the beneficiary's bank account or DuitNow proxy. You can send the beneficiary inline (composite validation), so you do not need to create a Contact or a Fund account first.
2. RazorpayX checks the account with the beneficiary's bank, or looks up the DuitNow proxy.
3. Read the result in the API response, by webhook or by fetching the validation with its ID.
4. Compare `validation_results.registered_name` with the name the beneficiary gave you. Then decide whether to make the payout.

The sample below validates a bank account with a composite request.

```bash Curl theme={null}
curl -X POST https://api.razorpay.com/v1/fund_accounts/validations \
  -u <YOUR_KEY_ID>:<YOUR_KEY_SECRET> \
  -H "Content-Type: application/json" \
  -d '{
    "account_number": "8181810000000000",
    "fund_account": {
      "account_type": "bank_account",
      "bank_account": {
        "name": "Siti Aminah",
        "account_number": "1234567890",
        "routing": [{ "type": "SWIFT", "code": "MBBEMYKL" }]
      },
      "contact": {
        "name": "Siti Aminah",
        "type": "vendor",
        "reference_id": "Acme Contact ID 12345"
      }
    }
  }'
```

The result is in the `status` and `validation_results` fields of the response:

```json theme={null}
"status": "completed",
"validation_results": {
  "account_status": "active",
  "registered_name": "SITI AMINAH"
}
```

The response also returns the Fund account that RazorpayX created for the beneficiary. You can reuse its `id` in later payouts.

## Account Validation States

### Created

The validation is in progress. The account details have not been validated yet and `validation_results.account_status` is `null`. We do not recommend making payouts to the account while the validation is in this state.

### Completed

The validation is complete and the results are available in the API response and in the `fund_account.validation.completed` webhook payload.

> [!WARNING]
>
> **Watch Out!**
>
> The `completed` status does not mean that the bank account or DuitNow proxy is valid. It means that the check finished. Read `validation_results.account_status`, which is `active` or `invalid`, and decide whether to make a payout to the account.

### Failed

The validation could not be completed. RazorpayX sends the `fund_account.validation.failed` webhook event.

## Validation Conditions

> [accordion] Validate a Bank Account
>
> Send the account holder's name, the account number and the bank's SWIFT code. You can validate the following:
>
> * **Bank account status**: When the status of the validation changes to `completed`, `validation_results.account_status` shows whether the account is `active` or `invalid`.
> * **Beneficiary name**: `validation_results.registered_name` holds the name registered with the bank. Compare it with the name the beneficiary gave you to check that the account belongs to them.
>
> Refer to [Validate a Bank Account](https://curlec.com/docs/api/x/composite-account-validation/bank-account.md).

> [accordion] Validate a DuitNow Proxy
>
> Send the `proxy_type`, the `proxy_value` and, for a passport proxy (`PSPT`), the `passport_issuing_country`. You can validate the following:
>
> * **Proxy status**: When the status of the validation changes to `completed`, `validation_results.account_status` shows whether the proxy is `active` or `invalid`.
> * **Beneficiary name**: `validation_results.registered_name` holds the name registered with DuitNow. Compare it with the name the beneficiary gave you.
>
> Refer to [Validate a DuitNow Proxy](https://curlec.com/docs/api/x/composite-account-validation/duitnow.md).

### Related Information

* [Fund Account Validation FAQs](https://curlec.com/docs/x/fund-accounts/faqs.md#fund-account-validation)
* [Fund Account Validation APIs](https://curlec.com/docs/x/fund-account-validation/api.md)
