# Balance Information

### Get your KlikBCA Bisnis account balance information with maximum of 20 accounts in a request.

<mark style="color:blue;">`GET`</mark> `https://us-central1-appgregator.cloudfunctions.net/bcaSandbox/accounts/balance/`

#### Query Parameters

| Name                                               | Type   | Description  |
| -------------------------------------------------- | ------ | ------------ |
| name<mark style="color:red;">\*</mark>             | String | ft-4         |
| connection\_name<mark style="color:red;">\*</mark> | String | banks-bca-02 |
| account\_number<mark style="color:red;">\*</mark>  | String | 0201245680   |
| corporate\_id<mark style="color:red;">\*</mark>    | String | BCAAPI2016   |

#### Headers

| Name                                              | Type   | Description                          |
| ------------------------------------------------- | ------ | ------------------------------------ |
| x-api-Key<mark style="color:red;">\*</mark>       | String | U2Fsd...                             |
| X-BCA-Key<mark style="color:red;">\*</mark>       | String | eb2eb4c5-cda6-42cd-a6c9-b82d1c902b6c |
| X-BCA-SecretKey<mark style="color:red;">\*</mark> | String | 8396cf1c-88af-4211-be9b-c4ea5198f27f |

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

```javascript
{
    "AccountDetailDataSuccess": [
        {
            "AccountNumber": "0201245680",
            "Currency": "IDR",
            "Balance": "118849999.53",
            "AvailableBalance": "118849999.53",
            "FloatAmount": "0.00",
            "HoldAmount": "0.00",
            "Plafon": "0.00"
        }
    ],
    "AccountDetailDataFailed": []
}
```

{% endtab %}

{% tab title="400: Bad Request Unauthorized" %}

```javascript
{
    "ErrorCode": "ESB-14-009",
    "ErrorMessage": {
        "Indonesian": "Tidak berhak",
        "English": "Unauthorized"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="cURL" %}

```shell
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/bca/accounts/balance?corporate_id=BCAAPI2016&name=ft-4&connection_name=banks-bca-02&account_number=0201245680' \
--header 'x-api-Key: U2FsdG...' \
--header 'X-BCA-Key: eb2eb4c5-cda6-42cd-a6c9-b82d1c902b6c' \
--header 'X-BCA-SecretKey: 8396cf1c-88af-4211-be9b-c4ea5198f27f'
```

{% endtab %}

{% tab title="NodeJS - Axios" %}

```javascript
var axios = require('axios');

var config = {
  method: 'get',
  url: 'https://us-central1-appgregator.cloudfunctions.net/bca/accounts/balance?corporate_id=BCAAPI2016&name=ft-4&connection_name=banks-bca-02&account_number=0201245680',
  headers: { 
    'x-api-Key': 'U2FsdG...', 
    'X-BCA-Key': 'eb2eb4c5-cda6-42cd-a6c9-b82d1c902b6c', 
    'X-BCA-SecretKey': '8396cf1c-88af-4211-be9b-c4ea5198f27f'
  }
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

```

{% endtab %}

{% tab title="PHP - cURL" %}

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/bca/accounts/balance?corporate_id=BCAAPI2016&name=ft-4&connection_name=banks-bca-02&account_number=0201245680',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'x-api-Key: U2FsdG...',
    'X-BCA-Key: eb2eb4c5-cda6-42cd-a6c9-b82d1c902b6c',
    'X-BCA-SecretKey: 8396cf1c-88af-4211-be9b-c4ea5198f27f'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```

{% endtab %}
{% endtabs %}


---

# 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://edrus.gitbook.io/appgregator-api-docs/appgregators/finance/bca-bisnis-api-indonesia/api/balance-information.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.
