# 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"
  }'
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cngn.co/integrations/endpoints/update-bank-account.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
