ZebaPay API v1

Base URL: https://zebapay.com/api/public/v1. All amounts are integers in kobo (₦1 = 100). JSON in, JSON out.

Quick Start — 5 minutes

1
Create an account and complete KYC
Sign up at zebapay.com/auth, then complete identity verification in Console → KYC. API credentials unlock once your KYC is approved.
2
Get your API keys
Go to Console → Developer Keys and create a sandbox key. Your secret key is shown once — copy it immediately. Keys are private to your account and never appear on this page.
3
Make your first call
Test with a sandbox key (zbp_test_…). When everything works, switch to a live key (zbp_live_…) — no code changes needed.

Authentication

Send your secret key as a bearer token on every request. Sandbox keys start with zbp_test_, live keys with zbp_live_.

curl https://zebapay.com/api/public/v1/balance \
  -H "Authorization: Bearer zbp_test_xxxxxxxx"

Errors

401 invalid_api_key, 403 kyc_not_approved, 422 validation_error, 400 business errors (e.g. "Insufficient balance"), 404 not_found.

Balance

GET/balance
{ "data": [{ "id": "…", "currency": "NGN", "balance": 1250000 }] }

Transactions

GET/transactions

Latest 100 transactions, newest first.

Virtual Accounts

GET/virtual-accounts

Dedicated 10-digit NUBAN accounts are issued instantly through ZebaPay's regulated banking partners. Inbound transfers credit your balance and fire wallet.funded.

curl https://zebapay.com/api/public/v1/virtual-accounts \
  -H "Authorization: Bearer zbp_test_xxxxxxxx"

Recipients

GET/recipients

POST/recipients
curl -X POST https://zebapay.com/api/public/v1/recipients \
  -H "Authorization: Bearer zbp_test_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "account_name": "Ada Obi",
    "account_number": "0123456789",
    "bank_code": "058",
    "bank_name": "GTBank"
  }'

Transfers

POST/transfers

Send an Idempotency-Key header to safely retry. Minimum ₦100.

curl -X POST https://zebapay.com/api/public/v1/transfers \
  -H "Authorization: Bearer zbp_test_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: payout-0001" \
  -d '{
    "recipient_id": "…",
    "amount": 2500000,
    "narration": "Vendor payout"
  }'

Sandbox

POST/sandbox/fund

Test keys only. Simulates an inbound transfer so you can test your webhook handler end-to-end.

curl -X POST https://zebapay.com/api/public/v1/sandbox/fund \
  -H "Authorization: Bearer zbp_test_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{ "amount": 5000000 }'

Webhooks

Events: wallet.funded, transfer.successful, ping. Each request carries x-zebapay-timestamp and x-zebapay-signature = HMAC-SHA256(secret, timestamp + "." + rawBody) in hex. Non-2xx responses are retried with exponential backoff up to 6 attempts.

Always verify the signature before crediting your customer:

<?php
$rawBody = file_get_contents("php://input");
$timestamp = $_SERVER["HTTP_X_ZEBAPAY_TIMESTAMP"] ?? "";
$signature = $_SERVER["HTTP_X_ZEBAPAY_SIGNATURE"] ?? "";

$expected = hash_hmac("sha256", $timestamp . "." . $rawBody, WEBHOOK_SECRET);
if (!hash_equals($expected, $signature)) {
  http_response_code(401);
  exit;
}

// Verified — safe to credit your customer
$event = json_decode($rawBody, true);
if ($event["type"] === "wallet.funded") {
  // $event["data"]["amount"] is in kobo
}