Get Accounts Details
curl --request GET \
--url https://staging-api.getpartna.com/v4/account/account-details \
--header 'x-api-key: <api-key>' \
--header 'x-api-user: <api-key>'import requests
url = "https://staging-api.getpartna.com/v4/account/account-details"
headers = {
"x-api-key": "<api-key>",
"x-api-user": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>', 'x-api-user': '<api-key>'}};
fetch('https://staging-api.getpartna.com/v4/account/account-details', 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://staging-api.getpartna.com/v4/account/account-details",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>",
"x-api-user: <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://staging-api.getpartna.com/v4/account/account-details"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-api-user", "<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://staging-api.getpartna.com/v4/account/account-details")
.header("x-api-key", "<api-key>")
.header("x-api-user", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging-api.getpartna.com/v4/account/account-details")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
request["x-api-user"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"accounts": [
{
"Banks": {
"KE": {
"mobile_network": "Safaricom",
"shortcode": "0805439865",
"status": "ACTIVE"
},
"NG": {
"account_name": "TEST-MANAGED-ACCOUNT",
"account_number": "1238271618",
"bank_code": "",
"bank_name": "Test Bank",
"currency": "NGN",
"mobile_network": "",
"shortcode": "",
"status": ""
}
},
"KYCs": {
"KE": {
"mobile_network": "Safaricom",
"shortcode": "0805439865",
"status": "verified"
},
"NG": {
"address_line_1": "",
"address_line_2": "",
"dob": "2002-09-01",
"first_name": "rahman",
"last_name": "rahman",
"lga_of_residence": "",
"middle_name": "rahman",
"mobile_network": "",
"shortcode": "",
"state_of_residence": "",
"status": "verified"
}
},
"createdAt": 1755873600,
"email": "",
"externalRef": "chang"
},
{
"Banks": {
"NG": {
"account_name": "Madilyn Lakin II",
"account_number": "9640426250",
"bank_code": "242",
"bank_name": "Maplerad",
"currency": "NGN",
"mobile_network": "",
"shortcode": "",
"status": ""
}
},
"KYCs": {
"NG": {
"address_line_1": "",
"address_line_2": "",
"dob": "1999-01-01",
"first_name": "Samuel",
"last_name": "Olamide",
"lga_of_residence": "",
"middle_name": "Nomo",
"mobile_network": "",
"shortcode": "",
"state_of_residence": "",
"status": ""
}
},
"createdAt": 1755873600,
"email": "",
"externalRef": "changuser1"
}
],
"page": 1,
"perPage": 10,
"totalPages": 1
},
"message": "success"
}Account
Get Accounts Details
Get accounts details.
GET
/
account
/
account-details
Get Accounts Details
curl --request GET \
--url https://staging-api.getpartna.com/v4/account/account-details \
--header 'x-api-key: <api-key>' \
--header 'x-api-user: <api-key>'import requests
url = "https://staging-api.getpartna.com/v4/account/account-details"
headers = {
"x-api-key": "<api-key>",
"x-api-user": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>', 'x-api-user': '<api-key>'}};
fetch('https://staging-api.getpartna.com/v4/account/account-details', 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://staging-api.getpartna.com/v4/account/account-details",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>",
"x-api-user: <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://staging-api.getpartna.com/v4/account/account-details"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-api-user", "<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://staging-api.getpartna.com/v4/account/account-details")
.header("x-api-key", "<api-key>")
.header("x-api-user", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging-api.getpartna.com/v4/account/account-details")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
request["x-api-user"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"accounts": [
{
"Banks": {
"KE": {
"mobile_network": "Safaricom",
"shortcode": "0805439865",
"status": "ACTIVE"
},
"NG": {
"account_name": "TEST-MANAGED-ACCOUNT",
"account_number": "1238271618",
"bank_code": "",
"bank_name": "Test Bank",
"currency": "NGN",
"mobile_network": "",
"shortcode": "",
"status": ""
}
},
"KYCs": {
"KE": {
"mobile_network": "Safaricom",
"shortcode": "0805439865",
"status": "verified"
},
"NG": {
"address_line_1": "",
"address_line_2": "",
"dob": "2002-09-01",
"first_name": "rahman",
"last_name": "rahman",
"lga_of_residence": "",
"middle_name": "rahman",
"mobile_network": "",
"shortcode": "",
"state_of_residence": "",
"status": "verified"
}
},
"createdAt": 1755873600,
"email": "",
"externalRef": "chang"
},
{
"Banks": {
"NG": {
"account_name": "Madilyn Lakin II",
"account_number": "9640426250",
"bank_code": "242",
"bank_name": "Maplerad",
"currency": "NGN",
"mobile_network": "",
"shortcode": "",
"status": ""
}
},
"KYCs": {
"NG": {
"address_line_1": "",
"address_line_2": "",
"dob": "1999-01-01",
"first_name": "Samuel",
"last_name": "Olamide",
"lga_of_residence": "",
"middle_name": "Nomo",
"mobile_network": "",
"shortcode": "",
"state_of_residence": "",
"status": ""
}
},
"createdAt": 1755873600,
"email": "",
"externalRef": "changuser1"
}
],
"page": 1,
"perPage": 10,
"totalPages": 1
},
"message": "success"
}Was this page helpful?
⌘I