Resolve bank account
curl --request POST \
--url https://api.daya.co/v1/banks/resolve \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"account_number": "<string>",
"bank_code": "<string>"
}
'import requests
url = "https://api.daya.co/v1/banks/resolve"
payload = {
"account_number": "<string>",
"bank_code": "<string>"
}
headers = {
"X-Api-Key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({account_number: '<string>', bank_code: '<string>'})
};
fetch('https://api.daya.co/v1/banks/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.daya.co/v1/banks/resolve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'account_number' => '<string>',
'bank_code' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.daya.co/v1/banks/resolve"
payload := strings.NewReader("{\n \"account_number\": \"<string>\",\n \"bank_code\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<x-api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.daya.co/v1/banks/resolve")
.header("X-Api-Key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account_number\": \"<string>\",\n \"bank_code\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.daya.co/v1/banks/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_number\": \"<string>\",\n \"bank_code\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"account_number": "1234567890",
"account_name": "JOHN DOE"
}
Banks
Resolve bank account
Verify a bank account number and get the account holder’s name
POST
/
v1
/
banks
/
resolve
Resolve bank account
curl --request POST \
--url https://api.daya.co/v1/banks/resolve \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"account_number": "<string>",
"bank_code": "<string>"
}
'import requests
url = "https://api.daya.co/v1/banks/resolve"
payload = {
"account_number": "<string>",
"bank_code": "<string>"
}
headers = {
"X-Api-Key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({account_number: '<string>', bank_code: '<string>'})
};
fetch('https://api.daya.co/v1/banks/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.daya.co/v1/banks/resolve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'account_number' => '<string>',
'bank_code' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.daya.co/v1/banks/resolve"
payload := strings.NewReader("{\n \"account_number\": \"<string>\",\n \"bank_code\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<x-api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.daya.co/v1/banks/resolve")
.header("X-Api-Key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account_number\": \"<string>\",\n \"bank_code\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.daya.co/v1/banks/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_number\": \"<string>\",\n \"bank_code\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"account_number": "1234567890",
"account_name": "JOHN DOE"
}
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
Your merchant API key
Request Body
Bank account number to verify (typically 10 digits)Example:
1234567890Bank code from the List Banks endpointExample:
044Request Examples
{
"account_number": "1234567890",
"bank_code": "044"
}
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"
}'
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
The verified bank account number
The account holder’s full name as registered with the bank
Success Response
{
"account_number": "1234567890",
"account_name": "JOHN DOE"
}
Error Responses
{
"error": {
"code": "validation_failed",
"message": "Validation failed",
"details": "account_number is required"
}
}
{
"error": {
"code": "validation_failed",
"message": "Could not resolve account number for the specified bank"
}
}
{
"error": {
"code": "validation_failed",
"message": "Invalid bank code"
}
}
{
"error": {
"code": "INTEGRATION_FAILED",
"message": "Bank verification provider unavailable, please try again"
}
}
Next Steps
List Supported Banks
Get bank codes to use with this endpoint
Create Transfer
Send funds to a Nigerian bank account
⌘I