Appearance
Validate Account
Validate a destination account and return the account name.
| Method | POST |
| URL | /api/m1/validate-account |
| Auth | Bearer ZMPRO-… (live) or ZMDEV-… (test) |
Body parameters
| Field | Required | Example | Description |
|---|---|---|---|
account_number | Yes | 0690000032 | Destination account number. |
bank_code | Yes | 044 | Destination bank code. |
Headers
| Header | Value |
|---|---|
Authorization | Bearer ZMPRO-your-live-api-key |
Content-Type | application/json |
Request
bash
curl -X POST 'https://api.vizo.app/api/m1/validate-account' \
-H 'Authorization: Bearer ZMPRO-your-live-api-key' \
-H 'Content-Type: application/json' \
-d '{
"account_number": "0690000032",
"bank_code": "044"
}'ts
const response = await fetch('https://api.vizo.app/api/m1/validate-account', {
method: 'POST',
headers: {
Authorization: 'Bearer ZMPRO-your-live-api-key',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"account_number": "0690000032",
"bank_code": "044"
}),
});
const data = await response.json();
console.log(data);py
import requests
url = "https://api.vizo.app/api/m1/validate-account"
headers = {
"Authorization": "Bearer ZMPRO-your-live-api-key",
"Content-Type": "application/json",
}
payload = {
"account_number": "0690000032",
"bank_code": "044"
}
response = requests.request("POST", url, headers=headers, json=payload)
print(response.status_code)
print(response.json())php
<?php
$ch = curl_init('https://api.vizo.app/api/m1/validate-account');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ZMPRO-your-live-api-key',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'account_number' => '0690000032',
'bank_code' => '044'
], JSON_UNESCAPED_SLASHES),
]);
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo $status, PHP_EOL, $response, PHP_EOL;Responses
Validate Account — 200 OK
json
{
"status": "SUCCESS",
"data": {
"account_number": "0690000032",
"account_name": "Pastor Bright",
"bank_code": "044"
},
"message": "Success"
}