> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fincode.technology/llms.txt
> Use this file to discover all available pages before exploring further.

# View Bank Account

> Retrieves details of a specific bank account by its ID.

Fetches detailed information about a bank account registered by the customer.

<RequestExample>
  ```bash cURL GET theme={null}
  [https://finlend.fincode.software/api/v1/services/user/view-bank-account/{account-id}](https://finlend.fincode.software/api/v1/services/user/view-bank-account/{account-id})
  ```
</RequestExample>

## Request Headers

<ParamField header="X-Auth-Token" type="string" required>
  The **JWT Access Token** obtained from the `/login` or `/refresh-token` endpoint.
</ParamField>

<ParamField header="x-fapi-auth-date" type="string" required>
  The date and time at which the request was initiated (ISO 8601 format).
</ParamField>

<ParamField header="x-fapi-customer-ip-address" type="string" required>
  The IP address of the customer making the request.
</ParamField>

<ParamField header="x-fapi-interaction-id" type="string" required>
  Unique identifier for the interaction/session.
</ParamField>

## Path Parameters

<ParamField path="account-id" type="string" required>
  The unique identifier (UUID) of the bank account to retrieve.
</ParamField>

## Response

Returns bank account details.

<ResponseField name="status" type="string" default="SUCCESS">
  Overall status of the API request.
</ResponseField>

<ResponseField name="data" type="object">
  Bank account details.

  <Expandable title="data object">
    <ResponseField name="accountId" type="string">
      Unique identifier for the bank account.
    </ResponseField>

    <ResponseField name="customerId" type="string">
      Identifier of the customer.
    </ResponseField>

    <ResponseField name="accountNumber" type="string">
      Bank account number (may be masked).
    </ResponseField>

    <ResponseField name="accountName" type="string">
      Account holder name.
    </ResponseField>

    <ResponseField name="bankCode" type="string">
      Bank code.
    </ResponseField>

    <ResponseField name="bankName" type="string">
      Bank name.
    </ResponseField>

    <ResponseField name="accountType" type="string">
      Type of account.
    </ResponseField>

    <ResponseField name="isDefault" type="boolean">
      Whether this is the default account.
    </ResponseField>

    <ResponseField name="isVerified" type="boolean">
      Whether the account has been verified.
    </ResponseField>

    <ResponseField name="createdDate" type="string">
      Date when the account was added.
    </ResponseField>
  </Expandable>
</ResponseField>

## Code Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl --location 'https://finlend.fincode.software/api/v1/services/user/view-bank-account/123e4567-e89b-12d3-a456-426614174000' \
  --header 'X-Auth-Token: YOUR_JWT_ACCESS_TOKEN' \
  --header 'x-fapi-auth-date: 2024-01-15T10:30:00Z' \
  --header 'x-fapi-customer-ip-address: 192.168.1.1' \
  --header 'x-fapi-interaction-id: interaction-12345'
  ```

  ```javascript Node.js theme={null}
  const axios = require('axios');

  const BASE_URL = 'https://finlend.fincode.software/api/v1/services/user';

  async function viewBankAccount(accessToken, accountId) {
    try {
      const response = await axios.get(
        `${BASE_URL}/view-bank-account/${accountId}`,
        {
          headers: {
            'X-Auth-Token': accessToken,
            'x-fapi-auth-date': new Date().toISOString(),
            'x-fapi-customer-ip-address': '192.168.1.1',
            'x-fapi-interaction-id': `interaction-${Date.now()}`,
          },
        }
      );

      return account;
    } catch (error) {
      console.error(
        'Failed to fetch bank account:',
        error.response?.data || error.message
      );
      throw error;
    }
  }

  ```
</CodeGroup>
