Get virtual account by reference
curl --request GET \
--url https://api.platnova.com/v1/virtual-accounts/by-reference/{reference} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.platnova.com/v1/virtual-accounts/by-reference/{reference}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.platnova.com/v1/virtual-accounts/by-reference/{reference}', 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.platnova.com/v1/virtual-accounts/by-reference/{reference}",
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>"
],
]);
$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.platnova.com/v1/virtual-accounts/by-reference/{reference}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<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.platnova.com/v1/virtual-accounts/by-reference/{reference}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.platnova.com/v1/virtual-accounts/by-reference/{reference}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": true,
"data": {
"customer_id": "6f1c2b9e-4a7d-4c3e-9b1a-2d5e8f7a6c01",
"customer_reference": "CUST-10293",
"reference": "",
"currency": "NGN",
"email": "[email protected]",
"first_name": "Ada",
"last_name": "Obi",
"created_on": "2026-11-03T10:15:00Z",
"amount_debited": 0,
"accounts": [
{
"id": "9b2f6a10-3c4d-4e5f-8a7b-1c2d3e4f5a6b",
"account_number": "0123456789",
"account_name": "Ada Obi",
"bank_name": "Example Bank",
"bank_code": "000000",
"reference": "LOAN-2026-0042"
}
]
},
"error": [],
"message": "operation was successful"
}{
"status": false,
"data": {
"code": "virtual_account_not_found"
},
"error": [],
"message": "No virtual account was opened with this reference."
}Virtual Accounts
Get Virtual Account by Reference
Return the account you opened with reference on Create Virtual Account. Only your own business’s accounts are found.
GET
/
v1
/
virtual-accounts
/
by-reference
/
{reference}
Get virtual account by reference
curl --request GET \
--url https://api.platnova.com/v1/virtual-accounts/by-reference/{reference} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.platnova.com/v1/virtual-accounts/by-reference/{reference}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.platnova.com/v1/virtual-accounts/by-reference/{reference}', 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.platnova.com/v1/virtual-accounts/by-reference/{reference}",
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>"
],
]);
$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.platnova.com/v1/virtual-accounts/by-reference/{reference}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<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.platnova.com/v1/virtual-accounts/by-reference/{reference}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.platnova.com/v1/virtual-accounts/by-reference/{reference}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": true,
"data": {
"customer_id": "6f1c2b9e-4a7d-4c3e-9b1a-2d5e8f7a6c01",
"customer_reference": "CUST-10293",
"reference": "",
"currency": "NGN",
"email": "[email protected]",
"first_name": "Ada",
"last_name": "Obi",
"created_on": "2026-11-03T10:15:00Z",
"amount_debited": 0,
"accounts": [
{
"id": "9b2f6a10-3c4d-4e5f-8a7b-1c2d3e4f5a6b",
"account_number": "0123456789",
"account_name": "Ada Obi",
"bank_name": "Example Bank",
"bank_code": "000000",
"reference": "LOAN-2026-0042"
}
]
},
"error": [],
"message": "operation was successful"
}{
"status": false,
"data": {
"code": "virtual_account_not_found"
},
"error": [],
"message": "No virtual account was opened with this reference."
}Overview
Return the account you opened withreference on Create Virtual Account. The answer has the same shape as the create response: the customer (customer_id, customer_reference) and the account in accounts, with your reference on it.
Only your own business’s accounts are found. A reference you never opened an account with answers 404 with data.code virtual_account_not_found.
This looks up persistent accounts. For a dynamic account opened for an order, use Verify Payment with the order reference.
