# Update Bank Account

## Update Bank Account

<mark style="color:orange;">`PUT`</mark> `https://api.cngn.co/v1/api/bank-account`

Updates the bank account on file for your merchant business.

#### Request Body

| Name                                                | Type   | Description                                                                       |
| --------------------------------------------------- | ------ | --------------------------------------------------------------------------------- |
| bankName<mark style="color:red;">\*</mark>          | string | Full name of the bank. Automatically trimmed.                                     |
| bankAccountName<mark style="color:red;">\*</mark>   | string | Account holder name. Must match the KYB-registered entity. Automatically trimmed. |
| bankAccountNumber<mark style="color:red;">\*</mark> | string | Bank account number. Automatically trimmed.                                       |

{% tabs %}
{% tab title="200 Bank account updated successfully" %}

```json
{
  "status": 200,
  "message": "Bank account updated successfully",
  "data": {
    "bankName": "Access Bank",
    "bankAccountName": "John Doe Enterprises",
    "bankAccountNumber": "0123456789"
  }
}
```

{% endtab %}

{% tab title="400 Invalid request" %}

```json
{
  "status": 400,
  "message": "Invalid request"
}
```

{% endtab %}
{% endtabs %}

#### Example Request

```bash
curl -X PUT https://api.cngn.co/v1/api/bank-account \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "bankName": "Access Bank",
    "bankAccountName": "John Doe Enterprises",
    "bankAccountNumber": "0123456789"
  }'
```
