Perform bank account name enquiry
curl --request POST \
--url https://api-production.fossapay.com/api/v1/transfers/fiat/bank-name-enquiry \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"bankCode": "<string>",
"accountNumber": "<string>"
}
'import requests
url = "https://api-production.fossapay.com/api/v1/transfers/fiat/bank-name-enquiry"
payload = {
"bankCode": "<string>",
"accountNumber": "<string>"
}
headers = {
"x-api-key": "<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': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({bankCode: '<string>', accountNumber: '<string>'})
};
fetch('https://api-production.fossapay.com/api/v1/transfers/fiat/bank-name-enquiry', 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-production.fossapay.com/api/v1/transfers/fiat/bank-name-enquiry",
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([
'bankCode' => '<string>',
'accountNumber' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <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-production.fossapay.com/api/v1/transfers/fiat/bank-name-enquiry"
payload := strings.NewReader("{\n \"bankCode\": \"<string>\",\n \"accountNumber\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<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-production.fossapay.com/api/v1/transfers/fiat/bank-name-enquiry")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"bankCode\": \"<string>\",\n \"accountNumber\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-production.fossapay.com/api/v1/transfers/fiat/bank-name-enquiry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"bankCode\": \"<string>\",\n \"accountNumber\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"statusCode": 201,
"message": "Bank name enquiry completed successfully",
"data": {
"sessionID": "000003677112224942366991412665",
"destinationInstitutionCode": "044",
"channelCode": 2,
"accountNumber": "0123456789",
"accountName": "JOHN DOE",
"kycLevel": "3",
"responseCode": "00"
}
}
NGN Transfers
Bank Name Enquiry
Resolve an account name before submitting an NGN transfer
POST
/
api
/
v1
/
transfers
/
fiat
/
bank-name-enquiry
Perform bank account name enquiry
curl --request POST \
--url https://api-production.fossapay.com/api/v1/transfers/fiat/bank-name-enquiry \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"bankCode": "<string>",
"accountNumber": "<string>"
}
'import requests
url = "https://api-production.fossapay.com/api/v1/transfers/fiat/bank-name-enquiry"
payload = {
"bankCode": "<string>",
"accountNumber": "<string>"
}
headers = {
"x-api-key": "<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': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({bankCode: '<string>', accountNumber: '<string>'})
};
fetch('https://api-production.fossapay.com/api/v1/transfers/fiat/bank-name-enquiry', 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-production.fossapay.com/api/v1/transfers/fiat/bank-name-enquiry",
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([
'bankCode' => '<string>',
'accountNumber' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <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-production.fossapay.com/api/v1/transfers/fiat/bank-name-enquiry"
payload := strings.NewReader("{\n \"bankCode\": \"<string>\",\n \"accountNumber\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<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-production.fossapay.com/api/v1/transfers/fiat/bank-name-enquiry")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"bankCode\": \"<string>\",\n \"accountNumber\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-production.fossapay.com/api/v1/transfers/fiat/bank-name-enquiry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"bankCode\": \"<string>\",\n \"accountNumber\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"statusCode": 201,
"message": "Bank name enquiry completed successfully",
"data": {
"sessionID": "000003677112224942366991412665",
"destinationInstitutionCode": "044",
"channelCode": 2,
"accountNumber": "0123456789",
"accountName": "JOHN DOE",
"kycLevel": "3",
"responseCode": "00"
}
}
Request
string
required
Active production API key.
string
required
Bank code returned by the supported-banks endpoint.
string
required
Destination account number to resolve.
Request Example
curl -X POST https://api-production.fossapay.com/api/v1/transfers/fiat/bank-name-enquiry \
-H "x-api-key: $FOSSAPAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"bankCode": "044",
"accountNumber": "0123456789"
}'
const response = await fetch('https://api-production.fossapay.com/api/v1/transfers/fiat/bank-name-enquiry', {
method: 'POST',
headers: {
'x-api-key': process.env.FOSSAPAY_API_KEY,
'Content-Type': 'application/json'
},
body: JSON.stringify({
bankCode: '044',
accountNumber: '0123456789'
})
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status} ${response.statusText}`);
}
const enquiry = await response.json();
Response
{
"status": true,
"statusCode": 201,
"message": "Bank name enquiry completed successfully",
"data": {
"sessionID": "000003677112224942366991412665",
"destinationInstitutionCode": "044",
"channelCode": 2,
"accountNumber": "0123456789",
"accountName": "JOHN DOE",
"kycLevel": "3",
"responseCode": "00"
}
}
{
"status": "error",
"statusCode": 400,
"message": "Bank account details could not be verified"
}
{
"status": "error",
"statusCode": 503,
"message": "Bank account details could not be verified. Please try again shortly"
}
A successful enquiry does not guarantee a later transfer. Confirm that the returned account name matches the intended beneficiary before proceeding.
Errors
| Status | Typical cause |
|---|---|
400 | Provider rejected the bank code or account details |
401 | Missing or invalid API key |
422 | Missing or invalid request field |
503 | Name-enquiry provider temporarily unavailable |

