> 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/set-default-merchants-bank-account.md).

# Set Default Merchant's Bank Account

## Set a Bank Account as default

<mark style="color:green;">`POST`</mark> `https://<Platform-host>/merchant/:merchant_id/bank-accounts/active`

Set the existing bank account as default for a merchant.

#### Path Parameters

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

#### Request Body

| Name                                                | Type   | Description                |
| --------------------------------------------------- | ------ | -------------------------- |
| bank\_account\_id<mark style="color:red;">\*</mark> | string | Merchant's bank account ID |

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

```javascript
{
    "message": "merchant updated",
    "data": true
}
```

{% endtab %}
{% endtabs %}
