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

# Resolve bank account

> Verify a bank account number and get the account holder's name

## Overview

Verify that a bank account number is valid and retrieve the account holder's name. Use this before creating a recipient to confirm account details with the user.

## Authentication

**X-Api-Key** `string` *required*

Your merchant API key

## Request Body

**account\_number** `string` *required*

Bank account number to verify (typically 10 digits)

**Example:** `1234567890`

**bank\_code** `string` *required*

Bank code from the [List Banks](https://docs.daya.co/api-reference/banks/list-banks.md) endpoint

**Example:** `044`

## Request Examples

```json JSON theme={"dark"}
{
  "account_number": "1234567890",
  "bank_code": "044"
}
```

```bash cURL theme={"dark"}
curl --request POST \
  --url https://api.daya.co/v1/banks/resolve \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "account_number": "1234567890",
    "bank_code": "044"
  }'
```

```javascript JavaScript theme={"dark"}
const response = await fetch('https://api.daya.co/v1/banks/resolve', {
  method: 'POST',
  headers: {
    'X-Api-Key': 'YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    account_number: '1234567890',
    bank_code: '044'
  })
});
const result = await response.json();
console.log(result);
```

## Response

**account\_number** `string` *required*

The verified bank account number

**account\_name** `string` *required*

The account holder's full name as registered with the bank

### Success Response

```json 200 OK theme={"dark"}
{
  "account_number": "1234567890",
  "account_name": "JOHN DOE"
}
```

## Error Responses

```json 400 Bad Request - Validation failed theme={"dark"}
{
  "error": {
    "code": "validation_failed",
    "message": "Validation failed",
    "details": "account_number is required"
  }
}
```

```json 400 Bad Request - Invalid account theme={"dark"}
{
  "error": {
    "code": "validation_failed",
    "message": "Could not resolve account number for the specified bank"
  }
}
```

```json 400 Bad Request - Invalid bank code theme={"dark"}
{
  "error": {
    "code": "validation_failed",
    "message": "Invalid bank code"
  }
}
```

```json 502 Bad Gateway - Provider unavailable theme={"dark"}
{
  "error": {
    "code": "INTEGRATION_FAILED",
    "message": "Bank verification provider unavailable, please try again"
  }
}
```

## Next Steps

> [card] [List Supported Banks](https://docs.daya.co/api-reference/banks/list-banks.md)
>
> Get bank codes to use with this endpoint

> [card] [Create Transfer](https://docs.daya.co/api-reference/transfers/create-transfer.md)
>
> Send funds to a Nigerian bank account


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.