View Payaza Account Details
curl --request GET \
--url https://api.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/enquiry/main \
--header 'Authorization: <api-key>' \
--header 'X-TenantID: <api-key>'import requests
url = "https://api.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/enquiry/main"
headers = {
"Authorization": "<api-key>",
"X-TenantID": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: '<api-key>', 'X-TenantID': '<api-key>'}
};
fetch('https://api.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/enquiry/main', 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/enquiry/main",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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"
"net/http"
"io"
)
func main() {
url := "https://api.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/enquiry/main"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("X-TenantID", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/enquiry/main")
.header("Authorization", "<api-key>")
.header("X-TenantID", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/enquiry/main")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
request["X-TenantID"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Account enquiry response",
"status": true,
"data": [
{
"id": 1,
"accountName": "Test Merchant",
"payazaAccountReference": "1010000000",
"status": "ACTIVE",
"accountBalance": 990.13,
"businessId": 92,
"currency": "NGN",
"country": "NGA",
"organizationName": "PAYAZA",
"productCode": "PAYOUT-MAIN-NGN",
"productNumber": "101",
"postNoCredit": false,
"postNoDebit": true,
"originatorName": null,
"pauseTransactions": null,
"hasVirtualAccounts": true,
"holdTransactionAtLowBalance": false,
"virtualAccounts": [
{
"accountNumber": "99926838326",
"accountName": "PAYAZA(Test Merchant)",
"bankCode": "000023",
"bankId": 306,
"status": "Active",
"street": "",
"street2": "",
"city": "",
"countryCode": "",
"_api": false
}
],
"createdDate": "2022-02-01T18:51:16.762865",
"currencyCountry": null
},
{
"id": 1658,
"accountName": "Test Merchant",
"payazaAccountReference": "3010000000",
"status": "ACTIVE",
"accountBalance": 1000,
"businessId": 1,
"currency": "GHS",
"country": "GHA",
"organizationName": "PAYAZA",
"productCode": "PAYOUT-MAIN-GHS",
"productNumber": "301",
"postNoCredit": false,
"postNoDebit": true,
"originatorName": null,
"pauseTransactions": null,
"hasVirtualAccounts": false,
"holdTransactionAtLowBalance": false,
"virtualAccounts": [],
"createdDate": "2022-02-04T04:11:50.850974",
"currencyCountry": null
}
],
"pageDetail": {
"sorted": false,
"pageNumber": 0,
"pageSize": 0,
"paged": false,
"totalPages": 0,
"totalElements": 0,
"last": false,
"size": 0,
"number": 0,
"numberOfElements": 0,
"offset": null
},
"totalCount": 0,
"responseCode": null
}Payaza Account
View Payaza Account Details
This endpoint retrieves the Payaza account details for a merchant.
GET
/
payaza-account
/
api
/
v1
/
mainaccounts
/
merchant
/
enquiry
/
main
View Payaza Account Details
curl --request GET \
--url https://api.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/enquiry/main \
--header 'Authorization: <api-key>' \
--header 'X-TenantID: <api-key>'import requests
url = "https://api.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/enquiry/main"
headers = {
"Authorization": "<api-key>",
"X-TenantID": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: '<api-key>', 'X-TenantID': '<api-key>'}
};
fetch('https://api.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/enquiry/main', 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/enquiry/main",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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"
"net/http"
"io"
)
func main() {
url := "https://api.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/enquiry/main"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("X-TenantID", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/enquiry/main")
.header("Authorization", "<api-key>")
.header("X-TenantID", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.payaza.africa/live/payaza-account/api/v1/mainaccounts/merchant/enquiry/main")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
request["X-TenantID"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Account enquiry response",
"status": true,
"data": [
{
"id": 1,
"accountName": "Test Merchant",
"payazaAccountReference": "1010000000",
"status": "ACTIVE",
"accountBalance": 990.13,
"businessId": 92,
"currency": "NGN",
"country": "NGA",
"organizationName": "PAYAZA",
"productCode": "PAYOUT-MAIN-NGN",
"productNumber": "101",
"postNoCredit": false,
"postNoDebit": true,
"originatorName": null,
"pauseTransactions": null,
"hasVirtualAccounts": true,
"holdTransactionAtLowBalance": false,
"virtualAccounts": [
{
"accountNumber": "99926838326",
"accountName": "PAYAZA(Test Merchant)",
"bankCode": "000023",
"bankId": 306,
"status": "Active",
"street": "",
"street2": "",
"city": "",
"countryCode": "",
"_api": false
}
],
"createdDate": "2022-02-01T18:51:16.762865",
"currencyCountry": null
},
{
"id": 1658,
"accountName": "Test Merchant",
"payazaAccountReference": "3010000000",
"status": "ACTIVE",
"accountBalance": 1000,
"businessId": 1,
"currency": "GHS",
"country": "GHA",
"organizationName": "PAYAZA",
"productCode": "PAYOUT-MAIN-GHS",
"productNumber": "301",
"postNoCredit": false,
"postNoDebit": true,
"originatorName": null,
"pauseTransactions": null,
"hasVirtualAccounts": false,
"holdTransactionAtLowBalance": false,
"virtualAccounts": [],
"createdDate": "2022-02-04T04:11:50.850974",
"currencyCountry": null
}
],
"pageDetail": {
"sorted": false,
"pageNumber": 0,
"pageSize": 0,
"paged": false,
"totalPages": 0,
"totalElements": 0,
"last": false,
"size": 0,
"number": 0,
"numberOfElements": 0,
"offset": null
},
"totalCount": 0,
"responseCode": null
}Authorizations
Payaza {{Public API Key in Base 64}}
live or test
⌘I