# Balance Information

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

#### Query Parameters

| Name                                               | Type   | Description    |
| -------------------------------------------------- | ------ | -------------- |
| name<mark style="color:red;">\*</mark>             | String | ft-1           |
| connection\_name<mark style="color:red;">\*</mark> | String | internal-bca01 |
| corporate\_id<mark style="color:red;">\*</mark>    | String | EEA            |

#### Headers

| Name                                        | Type   | Description |
| ------------------------------------------- | ------ | ----------- |
| x-api-key<mark style="color:red;">\*</mark> | String | U2Fsd...    |

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

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

{% endtab %}
{% endtabs %}

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

```shell
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/bcaInternal/accounts/balance?name=ft-1&connection_name=internal-bca01&corporate_id=EEA' \
--header 'x-api-key: U2Fsd...'
```

{% endtab %}

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

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

var config = {
  method: 'get',
  url: 'https://us-central1-appgregator.cloudfunctions.net/bcaInternal/accounts/balance?name=ft-1&connection_name=internal-bca01&corporate_id=EEA',
  headers: { 
    'x-api-key': 'U2Fsd...'
  }
};

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/bcaInternal/accounts/balance?name=ft-1&connection_name=internal-bca01&corporate_id=EEA',
  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: U2Fsd...'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```

{% endtab %}
{% endtabs %}
