SilentAPI
REST API · v1

API Reference

Accept payments, issue virtual accounts, send payouts and refunds with a few HTTP calls. JSON in, JSON out — amounts are always in kobo (₦1 = 100 kobo).

Base URLhttps://www.silentapi.site/api/v1
Get started in minutes

Create a free account to get test keys instantly — no paperwork until you go live.

Get API keys

Introduction

The SilentAPI API is organised around REST. It accepts JSON request bodies, returns JSON responses and uses standard HTTP status codes.

1InitializePOST a payment and get a checkout URL
2RedirectCustomer pays by card, transfer or USSD
3ConfirmReceive charge.success, then verify

Authentication

Authenticate with your secret key in the Authorization header. Keys starting sk_test_ operate in test mode; sk_live_ moves real money. Never use a secret key in a browser or mobile app. Get your keys →

HTTP header
Authorization: Bearer sk_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Errors

Every response has a boolean status and a human-readable message. Validation errors include an errors object keyed by field.

CodeMeaning
200 / 201Success
401Missing, invalid or revoked API key
403Account suspended or live mode not activated
404Resource not found
409Duplicate reference
422Validation failed / insufficient balance
500Something went wrong on our side
422 Unprocessable
{
  "status": false,
  "message": "Validation failed",
  "errors": {
    "amount": "Amount must be at least 10000 kobo"
  }
}
POST/transactions/initialize.php Payments

Initialize a payment

Creates a pending transaction and returns a hosted checkout URL. Redirect your customer to authorization_url.

Parameters
amountintegerrequired

Amount in kobo (min 10000).

emailstringrequired

Customer email.

namestring

Customer name.

referencestring

Your unique reference. Generated if omitted.

callback_urlurl

Where we send the customer after payment, with ?reference=&status=

metadataobject

Any JSON you want echoed back in webhooks.

channelsarray

Limit payment methods shown: card, bank, ussd, qr, mobile_money, bank_transfer. Omit for all.

curl -X POST "https://www.silentapi.site/api/v1/transactions/initialize.php" \
  -H "Authorization: Bearer $SILENTAPI_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": 500000,
  "email": "ada@example.com",
  "name": "Ada Okafor",
  "reference": "order_10293",
  "callback_url": "https://yourapp.com/paid",
  "metadata": { "order_id": 10293 }
}'
200 OKResponse
{
  "status": true,
  "message": "Transaction initialized",
  "data": {
    "reference": "order_10293",
    "authorization_url": "https://www.silentapi.site/api/v1/../../checkout.php?ref=order_10293",
    "amount": 500000,
    "fee": 7500,
    "status": "pending"
  }
}
GET/transactions/verify.php?reference={ref} Payments

Verify a payment

Always verify server-side before delivering value. Check that status is success and the amount matches.

curl "https://www.silentapi.site/api/v1/transactions/verify.php?reference=order_10293" \
  -H "Authorization: Bearer $SILENTAPI_SECRET_KEY"
200 OKResponse
{
  "status": true,
  "data": {
    "reference": "order_10293",
    "status": "success",
    "amount": 500000,
    "fee": 7500,
    "net": 492500,
    "channel": "card",
    "paid_at": "2026-10-08T10:21:44+01:00"
  }
}
GET/transactions/list.php Payments

List transactions

Paginated, newest first. Query: status, page, per_page (max 100).

curl "https://www.silentapi.site/api/v1/transactions/list.php" \
  -H "Authorization: Bearer $SILENTAPI_SECRET_KEY"
GET/balance.php Payments

Wallet balance

Returns the available balance for the key's mode, in kobo.

curl "https://www.silentapi.site/api/v1/balance.php" \
  -H "Authorization: Bearer $SILENTAPI_SECRET_KEY"
200 OKResponse
{
  "status": true,
  "data": { "currency": "NGN", "available": 12500000, "mode": "test" }
}
POST/virtual-accounts/create.php Virtual accounts

Create virtual account

Issues an account for a customer. type is dedicated (a permanent account number) or dynamic (no fixed number: share payment_url, and each payment gets a fresh account number valid 30 minutes). Successful transfers trigger charge.success.

Parameters
customer_namestringrequired

Required.

customer_emailstringrequired

in live mode.

curl -X POST "https://www.silentapi.site/api/v1/virtual-accounts/create.php" \
  -H "Authorization: Bearer $SILENTAPI_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "customer_name": "Chinedu Eze",
  "customer_email": "chinedu@example.com"
}'
200 OKResponse
{
  "status": true,
  "data": {
    "reference": "VAC_261008A1B2C3D4E5F6",
    "account_number": "9912345678",
    "account_name": "Your Biz / Chinedu Eze",
    "bank_name": "SilentAPI Test Bank"
  }
}
GET/virtual-accounts/list.php Virtual accounts

List virtual accounts

Paginated list of accounts issued in the key's mode.

curl "https://www.silentapi.site/api/v1/virtual-accounts/list.php" \
  -H "Authorization: Bearer $SILENTAPI_SECRET_KEY"
POST/transfers/create.php Transfers

Create a transfer (payout)

Debits your wallet (amount + fee) and sends money to a bank account. Test transfers settle instantly; live ones settle within one business day.

Parameters
amountintegerrequired

In kobo.

bank_codestringrequired

From /banks.php.

account_numberstringrequired

10 digits.

account_namestringrequired

Required.

narrationstring

Optional.

referencestring

Optional unique reference.

curl -X POST "https://www.silentapi.site/api/v1/transfers/create.php" \
  -H "Authorization: Bearer $SILENTAPI_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": 2000000,
  "bank_code": "058",
  "account_number": "0123456789",
  "account_name": "Ada Okafor",
  "narration": "Vendor payment",
  "reference": "payout_7781"
}'
GET/transfers/list.php Transfers

List / fetch transfers

Pass ?reference= to fetch a single transfer.

curl "https://www.silentapi.site/api/v1/transfers/list.php" \
  -H "Authorization: Bearer $SILENTAPI_SECRET_KEY"
POST/refunds/create.php Refunds

Refund a payment

Refunds all or part of a successful payment. Your wallet is debited immediately; if the card network rejects the refund the money is returned to your wallet and you receive refund.failed. Bank-transfer deposits to virtual accounts can't be refunded — send a transfer instead.

Parameters
transactionstringrequired

Reference of the payment to refund.

amountinteger

In kobo. Omit for a full refund.

merchant_notestring

Internal reason.

curl -X POST "https://www.silentapi.site/api/v1/refunds/create.php" \
  -H "Authorization: Bearer $SILENTAPI_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "transaction": "order_10293",
  "amount": 200000,
  "merchant_note": "Item out of stock"
}'
200 OKResponse
{
  "status": true,
  "message": "Refund pending",
  "data": {
    "reference": "RFD_2610089A1B2C3D4E5F",
    "transaction_reference": "order_10293",
    "amount": 200000,
    "status": "pending"
  }
}
GET/refunds/list.php Refunds

List / fetch refunds

Paginated list. Pass ?reference= to fetch one refund.

curl "https://www.silentapi.site/api/v1/refunds/list.php" \
  -H "Authorization: Bearer $SILENTAPI_SECRET_KEY"
GET/banks.php Utilities

List banks

Supported Nigerian banks and their codes.

curl "https://www.silentapi.site/api/v1/banks.php" \
  -H "Authorization: Bearer $SILENTAPI_SECRET_KEY"
GET/resolve-account.php?account_number=0123456789&bank_code=058 Utilities

Resolve account name

Confirms the account holder's name before you send a transfer. Always show this name to your user before paying out.

Parameters
account_numberstringrequired

10-digit NUBAN.

bank_codestringrequired

From /banks.php.

curl "https://www.silentapi.site/api/v1/resolve-account.php?account_number=0123456789&bank_code=058" \
  -H "Authorization: Bearer $SILENTAPI_SECRET_KEY"
200 OKResponse
{
  "status": true,
  "data": {
    "account_number": "0123456789",
    "bank_code": "058",
    "account_name": "ADA OKAFOR"
  }
}

Webhooks

We send a POST with a JSON body to your webhook URL whenever an event happens. Respond with any 2xx quickly and process the event asynchronously. Verify every request with the X-SilentAPI-Signature header — an HMAC-SHA512 (hex) of the raw body using your webhook signing secret.

EventWhen it's sent
charge.successA payment succeeded (checkout, payment link, virtual account or terminal).
charge.failedA payment attempt failed or was declined.
transfer.successA payout reached the recipient bank.
transfer.failedA payout failed — the amount and fee are returned to your wallet.
refund.processedA refund was completed.
refund.failedA refund was rejected — your wallet is re-credited.
pingTest event sent from the dashboard.
$payload = file_get_contents("php://input");
$expected = hash_hmac("sha512", $payload, getenv("SILENTAPI_WEBHOOK_SECRET"));
if (!hash_equals($expected, $_SERVER["HTTP_X_SILENTAPI_SIGNATURE"] ?? "")) {
    http_response_code(401); exit;
}
$event = json_decode($payload, true);
if ($event["event"] === "charge.success") {
    // re-verify via /transactions/verify.php, then fulfil the order
}
http_response_code(200);

Test mode

Use your sk_test_ key to build safely. Nothing in test mode touches real money.

Test card4084 0840 8408 4081Expiry 12/30 · CVV 408. The hosted checkout lets you simulate success or a decline.
Virtual accountsTest accounts accept simulated deposits from the dashboard — each triggers charge.success.
TransfersTest payouts settle instantly and send transfer.success.