> For the complete documentation index, see [llms.txt](https://monse.gitbook.io/monse/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://monse.gitbook.io/monse/reference/bank-account-balance.md).

# Bank Account Balance

## Set the balance of a bank account

<mark style="color:green;">`POST`</mark> `https://monse.app/v1/bank-accounts/{id}/balance`

If you don't pass the date param the balance will be stored as the current account balance.

#### Query Parameters

| Name | Type    | Description     |
| ---- | ------- | --------------- |
| id   | Integer | Bank account ID |

#### Request Body

| Name                                      | Type    | Description                 |
| ----------------------------------------- | ------- | --------------------------- |
| balance<mark style="color:red;">\*</mark> | Integer | In cents                    |
| date                                      | String  | Date string in Y-m-d format |

{% tabs %}
{% tab title="201: Created Balance created" %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="400: Bad Request Wrong request" %}

```javascript
{
    balance: 'The balance field is required'
}
```

{% endtab %}
{% endtabs %}
