> For the complete documentation index, see [llms.txt](https://docs.neox.vn/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.neox.vn/docs/global/global-collections/integration/virtual-accounts/get-detail-virtual-account.md).

# Get Detail Virtual Account

#### Endpoint: GET /v2/gc/virtual-accounts/{virtualAccountRequestId}

#### Description: Retrieve the current status and bank details of a virtual account application.

## Request

#### Request Body Field Descriptions (JSON)

| Field Name | Type | Required | Description                               |
| ---------- | ---- | -------- | ----------------------------------------- |
| N/A        | N/A  | N/A      | GET request does not require a JSON body. |

#### Request sample

```json
// No request body required for this GET endpoint.
```

### Response

#### Response Field Descriptions

| Field Name    | Type   | Description                      |
| ------------- | ------ | -------------------------------- |
| code          | number | Response code.                   |
| state         | number | State of the response.           |
| data          | object | Virtual account detail.          |
| message       | string | Response message.                |
| neoResponseId | string | Unique NeoX response identifier. |

#### `data` object fields:

| Field Name              | Type        | Description                                                               |
| ----------------------- | ----------- | ------------------------------------------------------------------------- |
| virtualAccountRequestId | string      | NeoX identifier for this virtual account application.                     |
| status                  | string      | Current application status. Enum: `INIT`, `PROCESSING`, `SUCCESS`.        |
| vaNumber                | string      | Assigned virtual account number. Populated after the account is approved. |
| vaName                  | string      | Assigned virtual account name. Populated after the account is approved.   |
| currency                | string      | Currency or currencies associated with the virtual account.               |
| vaArea                  | string      | Geographic area or jurisdiction of the virtual account.                   |
| openBankCode            | string      | Code of the bank where the virtual account is held.                       |
| openBankName            | string      | Name of the bank where the virtual account is held.                       |
| openBankAddress         | string      | Address of the bank where the virtual account is held.                    |
| openBankSwiftCode       | string      | SWIFT/BIC code of the bank where the virtual account is held.             |
| openBankBranchCode      | string      | Branch code of the bank where the virtual account is held.                |
| localBankRouteNo        | string      | Local bank routing number (e.g. ABA for the US, sort code for the UK).    |
| createdAt               | date string | Timestamp when the virtual account application was created (ISO 8601).    |
| updatedAt               | date string | Timestamp of the most recent status update (ISO 8601).                    |

#### Response sample

```json
{
  "code": 1,
  "state": 2,
  "data": {
    "virtualAccountRequestId": "VA-20240301-00012345",
    "status": "SUCCESS",
    "vaNumber": "HK8801234567890",
    "vaName": "Acme Trading Limited",
    "currency": "USD,EUR,HKD",
    "vaArea": "HK",
    "openBankCode": "HSBCHKHH",
    "openBankName": "HSBC Hong Kong",
    "openBankAddress": "1 Queen's Road Central, Hong Kong",
    "openBankSwiftCode": "HSBCHKHH",
    "openBankBranchCode": "004",
    "localBankRouteNo": "004-123456",
    "createdAt": "2024-03-01T08:00:00Z",
    "updatedAt": "2024-03-02T14:30:00Z"
  },
  "message": "Successful",
  "neoResponseId": "de7750c5-772e-4136-ac78-62c57a106cce"
}
```

## Example cURL

```bash
curl -X GET "https://{base_url_openapi}/v2/gc/virtual-accounts/{virtualAccountRequestId}" \
  -H "Authorization: Bearer <YOUR_TOKEN>" \
  -H "Content-Type: application/json" \
  -H "Accept-Language: en"
```

### Notes

* Requires Bearer token in the Authorization header.
* The Accept-Language header can be used to specify the response language (Support: "vi", "en").
* No request body required.
* Replace `{virtualAccountRequestId}` with the actual virtual account request ID returned by the Create Virtual Account API.
* Use this endpoint to poll the application status when a webhook is not yet received or to retrieve the latest bank details after `status` becomes `SUCCESS`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.neox.vn/docs/global/global-collections/integration/virtual-accounts/get-detail-virtual-account.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
