Get Account Name Enquiry
curl --request POST \
--url https://api.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/provider/enquiry \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'X-TenantID: <api-key>' \
--data '
{
"service_payload": {
"currency": "NGN",
"bank_code": "090123",
"account_number": "0103937899"
}
}
'import requests
url = "https://api.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/provider/enquiry"
payload = { "service_payload": {
"currency": "NGN",
"bank_code": "090123",
"account_number": "0103937899"
} }
headers = {
"Authorization": "<api-key>",
"X-TenantID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: '<api-key>',
'X-TenantID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
service_payload: {currency: 'NGN', bank_code: '090123', account_number: '0103937899'}
})
};
fetch('https://api.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/provider/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.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/provider/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([
'service_payload' => [
'currency' => 'NGN',
'bank_code' => '090123',
'account_number' => '0103937899'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json",
"X-TenantID: <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.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/provider/enquiry"
payload := strings.NewReader("{\n \"service_payload\": {\n \"currency\": \"NGN\",\n \"bank_code\": \"090123\",\n \"account_number\": \"0103937899\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("X-TenantID", "<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.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/provider/enquiry")
.header("Authorization", "<api-key>")
.header("X-TenantID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"service_payload\": {\n \"currency\": \"NGN\",\n \"bank_code\": \"090123\",\n \"account_number\": \"0103937899\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/provider/enquiry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["X-TenantID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"service_payload\": {\n \"currency\": \"NGN\",\n \"bank_code\": \"090123\",\n \"account_number\": \"0103937899\"\n }\n}"
response = http.request(request)
puts response.read_body{
"response_code": 200,
"response_message": "Approved or completely successful",
"response_content": {
"account_number": "0190878999",
"bank_code": "203012",
"account_name": "Olaolu Adejide",
"account_status": "ACTIVE",
"transaction_reference": 9
},
"response_content_class": "com.fin78.app.payload.response.enquiry.account.AccountNameEnquiryInfoResponse"
}Transfers
Get Account Name Enquiry
The Account Name Enquiry API is used to retrieve the account details of a beneficiary using its account number.
POST
/
payaza-account
/
api
/
v1
/
mainaccounts
/
merchant
/
provider
/
enquiry
Get Account Name Enquiry
curl --request POST \
--url https://api.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/provider/enquiry \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'X-TenantID: <api-key>' \
--data '
{
"service_payload": {
"currency": "NGN",
"bank_code": "090123",
"account_number": "0103937899"
}
}
'import requests
url = "https://api.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/provider/enquiry"
payload = { "service_payload": {
"currency": "NGN",
"bank_code": "090123",
"account_number": "0103937899"
} }
headers = {
"Authorization": "<api-key>",
"X-TenantID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: '<api-key>',
'X-TenantID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
service_payload: {currency: 'NGN', bank_code: '090123', account_number: '0103937899'}
})
};
fetch('https://api.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/provider/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.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/provider/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([
'service_payload' => [
'currency' => 'NGN',
'bank_code' => '090123',
'account_number' => '0103937899'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json",
"X-TenantID: <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.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/provider/enquiry"
payload := strings.NewReader("{\n \"service_payload\": {\n \"currency\": \"NGN\",\n \"bank_code\": \"090123\",\n \"account_number\": \"0103937899\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("X-TenantID", "<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.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/provider/enquiry")
.header("Authorization", "<api-key>")
.header("X-TenantID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"service_payload\": {\n \"currency\": \"NGN\",\n \"bank_code\": \"090123\",\n \"account_number\": \"0103937899\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/provider/enquiry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["X-TenantID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"service_payload\": {\n \"currency\": \"NGN\",\n \"bank_code\": \"090123\",\n \"account_number\": \"0103937899\"\n }\n}"
response = http.request(request)
puts response.read_body{
"response_code": 200,
"response_message": "Approved or completely successful",
"response_content": {
"account_number": "0190878999",
"bank_code": "203012",
"account_name": "Olaolu Adejide",
"account_status": "ACTIVE",
"transaction_reference": 9
},
"response_content_class": "com.fin78.app.payload.response.enquiry.account.AccountNameEnquiryInfoResponse"
}Authorizations
Payaza {{Public API Key in Base 64}}
live or test
Body
application/json
It contains the details of the service payload.
Show child attributes
Show child attributes
⌘I