# Bank Account Validation

The Bank Account Verification API is an essential tool within our system, offering a secure and efficient means to validate the accuracy of provided account details. Enhance transaction reliability and security through seamless bank account verification processes.

## Authentication

LeanX uses **Auth Token** to authenticate in each request's header.

{% hint style="info" %}
**Auth Token** can be retrieved in your portal dashboard under **API** page.
{% endhint %}

**Request Header**

{% code overflow="wrap" %}

```json
{
    "auth-token": "LP-0D7C06DE-MM|7394e58e-edee-4c42-9ca5-bcbc449f1b9f|2141df4a3cb633d5ce8683bb0c55067e5caebfbe07390dde277dc455bcc95c91723a81b5e565c7c02d68fb84e396722563016bf99e576a4b8cdbe4423fbf226b"
}
```

{% endcode %}

## Validating recipient bank account

HTTP Method: <mark style="color:yellow;">POST</mark>

```
https://api.leanx.dev/api/v1/merchant/check-verification-bank
```

**Request Query**

```json
{
  "payout_service_id": 1,
  "third_party_account_no": "9011426016"
}
```

#### Attribute

<table><thead><tr><th width="263">Property</th><th>Description</th></tr></thead><tbody><tr><td>payout_service_id<mark style="color:red;">*</mark></td><td>Payout Service List Endpoint</td></tr><tr><td>third_party_account_no<mark style="color:red;">*</mark></td><td>Recipient bank account number</td></tr></tbody></table>

#### Response

```json
{
  "response_code": 2000,
  "description": "SUCCESS",
  "app_version": "/api/v1",
  "talk_to_server_before": "2023-02-02T01:31:46.270066",
  "data": {
    "Success": true,
    "Result": {
      "OrgnThirdPartyBankBICCode": "AFBQMYKL",
      "OrgnThirdPartyAccountNo": "9011426016",
      "CreditorName": "TEST CUSTOMER WP2"
    }
  },
  "breakdown_errors": "",
  "token": "dbd44a99-2d0f-470d-91fe-c73e8cdd1848"
}
```
