# Get Virtual Account Banks

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

#### Query Parameters

| Name                                               | Type   | Description     |
| -------------------------------------------------- | ------ | --------------- |
| name<mark style="color:red;">\*</mark>             | String | ft-4            |
| connection\_name<mark style="color:red;">\*</mark> | String | xendit-sanbox-1 |

#### Headers

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

{% tabs %}
{% tab title="200: OK Success" %}
```javascript
[
    {
        "name": "Bank Central Asia",
        "code": "BCA",
        "is_activated": true
    },
    {
        "name": "Bank Negara Indonesia",
        "code": "BNI",
        "is_activated": true
    },
    {
        "name": "Bank Mandiri",
        "code": "MANDIRI",
        "is_activated": true
    },
    {
        "name": "Bank Permata",
        "code": "PERMATA",
        "is_activated": true
    },
    {
        "name": "Bank Sahabat Sampoerna",
        "code": "SAHABAT_SAMPOERNA",
        "is_activated": true
    },
    {
        "name": "Bank Rakyat Indonesia",
        "code": "BRI",
        "is_activated": true
    },
    {
        "name": "Bank CIMB Niaga",
        "code": "CIMB",
        "is_activated": false
    },
    {
        "name": "Bank Syariah Indonesia",
        "code": "BSI",
        "is_activated": true
    },
    {
        "name": "Bank Jabar Banten",
        "code": "BJB",
        "is_activated": true
    },
    {
        "name": "DBS",
        "code": "DBS",
        "is_activated": true
    }
]
```
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="cURL" %}
```shell
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/xendit/va?name=ft-4&connection_name=xendit-sanbox-1' \
--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/xendit/va?name=ft-4&connection_name=xendit-sanbox-1',
  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/xendit/va?name=ft-4&connection_name=xendit-sanbox-1',
  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 %}
