# Get Virtual Account by ID

| Path Parameter | Type   | Description                      |
| -------------- | ------ | -------------------------------- |
| id             | string | ID of the Virtual Account object |

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

#### 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" %}

```shell
{
    "is_closed": false,
    "status": "INACTIVE",
    "currency": "IDR",
    "owner_id": "6279ce4495d10c9afc3171b8",
    "external_id": "va_0016",
    "bank_code": "BNI",
    "merchant_code": "8808",
    "name": "XDT-aplikasi keuangan",
    "account_number": "8808999961339732",
    "expected_amount": 50000,
    "is_single_use": true,
    "expiration_date": "2053-11-10T17:00:00.000Z",
    "id": "636defe4c1cb35eb813ea16d"
}
```

{% endtab %}
{% endtabs %}

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

```shell
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/xendit/va/find/636defe4c1cb35eb813ea16d?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/find/636defe4c1cb35eb813ea16d?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/find/636defe4c1cb35eb813ea16d?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 %}
