> For the complete documentation index, see [llms.txt](https://docs.payengine.co/payengine-api-v2.5/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payengine.co/payengine-api-v2.5/onboarding/get-merchants-bank-account.md).

# Get Merchant's Bank Account

## Add Bank Account

<mark style="color:blue;">`GET`</mark> `https://<Platform-host>/merchant/:merchant_id/bank-accounts`

Get bank accounts for a merchant.

#### Path Parameters

| Name                                           | Type   | Description                                  |
| ---------------------------------------------- | ------ | -------------------------------------------- |
| merchant\_id<mark style="color:red;">\*</mark> | String | Merchant ID for which account is being added |

#### Response Body

{% tabs %}
{% tab title="200: OK " %}

<table><thead><tr><th width="189">Field Name</th><th width="190">Type</th><th>Description</th></tr></thead><tbody><tr><td>message<mark style="color:red;">*</mark></td><td>string</td><td>Status of the request</td></tr><tr><td>data.id<mark style="color:red;">*</mark></td><td>string</td><td>Bank account id</td></tr><tr><td>data.name<mark style="color:red;">*</mark></td><td>string</td><td>Bank account name</td></tr><tr><td>data.last_4<mark style="color:red;">*</mark></td><td>string</td><td>Last four digits of the bank account</td></tr><tr><td>data.data.account_type<mark style="color:red;">*</mark></td><td>string</td><td>Bank account type - N | Y | G<br><br>Checking => <code>N</code><br>Saving => <code>Y</code><br>General Ledger => <code>G</code></td></tr><tr><td>data.active<mark style="color:red;">*</mark></td><td>boolean</td><td>True if the bank account is the default</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

### Sample Request and Response

{% tabs %}
{% tab title="Sample Request" %}

```sh
curl --location --request GET '<API_HOST>/api/v2/merchabnt/2836f39b-8fcb-4c82-9940-09faf364b8c7/bank-accounts' \
--header 'Authorization: Basic <API_KEY>'
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "message": "succeeded",
    "data": {
        "id": "802db58e-9f7e-4825-af6d-a2779f08038d",
        "name": "My Bank Account 2022-01-17T20:46:32.723Z",
        "last_4": "2345",
        "data": {
            "account_type": "N"
        },
        "active": true
    }
}
```

{% endtab %}
{% endtabs %}
