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

# Verify Account Details

> Resolve a bank account number to its registered account name

Resolves a Nigerian bank account and returns the registered account name. Use this before [Redeem Asset](/api-reference/redeem-asset) or [Update Bank Account](/api-reference/update-bank-account) to confirm the destination is correct.

<Note>
  The request body must be [encrypted](/guides/encryption).
</Note>

### Body parameters (plain payload, pre-encryption)

<ParamField body="bankCode" type="string" required>
  CBN bank code, from [Get Banks](/api-reference/get-banks).
</ParamField>

<ParamField body="accountNumber" type="string" required>
  10-digit account number to resolve.
</ParamField>

<RequestExample>
  ```json Plain body (encrypt before sending) theme={null}
  {
    "bankCode": "058",
    "accountNumber": "0123456789"
  }
  ```

  ```bash cURL (wire format) theme={null}
  curl -X POST "https://api.cngn.co/v1/api/account/verify" \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "content": "<base64 AES-256-CBC ciphertext of the plain body>",
      "iv": "<base64 16-byte IV>"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 - Success (data shown decrypted) theme={null}
  {
    "status": 200,
    "message": "Account details verified successfully",
    "data": {
      "accountNumber": "0123456789",
      "accountName": "ADA OBI",
      "bankCode": "058"
    }
  }
  ```

  ```json 400 - Invalid account theme={null}
  {
    "status": 400,
    "message": "Could not resolve account details"
  }
  ```
</ResponseExample>
