Developers
Partner API

Account Verification

Confirm who an account_ref belongs to before you disburse or collect against it — useful when you only have an account number on file and want to double-check it matches the name you expect before moving money.

GET /accounts/{account_ref}/verify

Required scope: account:verify

This is a separate scope from balance:read/disbursement:write on purpose — a partner only scoped for balance checks or disbursements doesn't automatically gain the ability to look up who an account belongs to. Ask the SACCO to grant it explicitly if you need it.

What you get back — and what you don't

Deliberately minimal: a name and a status, nothing else. No phone number, no national ID, no address, no date of birth. Enough to confirm you're paying/collecting from the right person, not a general member lookup.

Unlike balance/statement/disbursements/collections, this endpoint still resolves a closed or frozen account rather than treating it as not-found — you want to know "this account exists but is closed," not get the same generic 404 you'd get for an account number that never existed at all.

Example request

TIMESTAMP=$(date +%s)
REQUEST_URI="/api/partner/v1/accounts/SA-00123/verify"
BODY_HASH=$(printf '%s' '' | openssl dgst -sha256 | sed 's/^.* //')
SIGNATURE=$(printf '%s' "${TIMESTAMP}|GET|${REQUEST_URI}||${BODY_HASH}" | openssl dgst -sha256 -hmac "$API_SECRET" | sed 's/^.* //')

curl "https://prodsacco.officeug.com${REQUEST_URI}" \
  -H "X-Api-Key: $API_KEY" \
  -H "X-Timestamp: $TIMESTAMP" \
  -H "X-Signature: $SIGNATURE"
<?php
$timestamp = (string) time();
$path      = '/api/partner/v1/accounts/SA-00123/verify';
$signature = hash_hmac('sha256', "{$timestamp}|GET|{$path}||" . hash('sha256', ''), $apiSecret);

$ch = curl_init("https://prodsacco.officeug.com{$path}");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "X-Api-Key: {$apiKey}",
        "X-Timestamp: {$timestamp}",
        "X-Signature: {$signature}",
    ],
]);
echo curl_exec($ch);
timestamp = str(int(time.time()))
path = "/api/partner/v1/accounts/SA-00123/verify"
body_hash = hashlib.sha256(b"").hexdigest()
payload = f"{timestamp}|GET|{path}||{body_hash}"
signature = hmac.new(api_secret.encode(), payload.encode(), hashlib.sha256).hexdigest()

response = requests.get(
    f"https://prodsacco.officeug.com{path}",
    headers={"X-Api-Key": api_key, "X-Timestamp": timestamp, "X-Signature": signature},
)
print(response.json())
const timestamp = Math.floor(Date.now() / 1000).toString();
const path = '/api/partner/v1/accounts/SA-00123/verify';
const bodyHash = crypto.createHash('sha256').update('').digest('hex');
const payload = `${timestamp}|GET|${path}||${bodyHash}`;
const signature = crypto.createHmac('sha256', apiSecret).update(payload).digest('hex');

const response = await fetch(`https://prodsacco.officeug.com${path}`, {
  headers: { 'X-Api-Key': apiKey, 'X-Timestamp': timestamp, 'X-Signature': signature },
});
console.log(await response.json());

Example response — active account

{
  "success": true,
  "message": "OK",
  "data": {
    "account_ref": "SA-00123",
    "member_name": "Sample Member",
    "account_status": "active"
  },
  "request_id": "..."
}

Example response — closed account

{
  "success": true,
  "message": "OK",
  "data": {
    "account_ref": "SA-00099",
    "member_name": "Old Member",
    "account_status": "closed"
  },
  "request_id": "..."
}

Note this is still a 200 — the account was found and verified, it just isn't active. Check account_status before proceeding, don't assume a 200 means safe to disburse.

Try it in sandbox

SANDBOX-003 is seeded with account_status: "closed" specifically so you can see this branch without needing a real closed account.

Errors specific to this endpoint

HTTP error_code Meaning
404 ACCOUNT_NOT_FOUND No account with this account_ref exists for your SACCO at all — distinct from a closed one, which still returns 200.