Timiun/Business API

Business API Reference

The Timiun Business API lets you accept NGN payments, create client virtual accounts, manage KYC-backed sub-accounts, generate crypto deposit addresses, and trigger payouts — all programmatically.

Base URL https://api.timiun.com/business

Authentication

Pass your key via the x-api-key header. Read operations accept the Public Key; write operations (transfers, creating accounts) require the Secret Key. Generate both from your account Settings → API.

Public KeyRead-only
x-api-key: pk_live_...
Secret KeyWrite operations
x-api-key: sk_live_...
Webhook SecretSignature verify
whsec_... (HMAC-SHA512)

Balances

Transactions

Virtual Account

Transfers

Crypto Addresses

Banks

Client Accounts (DVAs)

Create virtual accounts for your own customers. Deposits to these accounts credit your business wallet with transaction metadata linking to the client. You can configure deposit splits on client DVAs from your dashboard — any incoming deposit to a DVA will automatically forward the configured percentage to a partner business account.

Sub-Accounts

KYC-verified virtual accounts for your own business sub-entities (branches, departments, franchises). Unlike client DVAs, sub-accounts require BVN or NIN identity verification. Creation is a two-step process.

Hosted Checkout

Take a payment like Paystack: initialize a session, redirect your customer to checkout_url, and confirm with the charge.success webhook or by verifying the reference. The customer picks bank transfer (a one-time account), card (charged in USD, GBP or EUR to match your price; USD for NGN prices) or crypto (a fresh address) — only methods you hold a wallet for and have switched on. Your own account numbers and addresses are never shown; payments settle into your wallets minus the checkout fee. Apply for checkout under Payments in the Timiun app: until it is approved these endpoints answer 403 with code checkout_not_enabled. Card is approved separately, and a payment that would take you over your monthly checkout limit is refused with code checkout_limit_reached.

Temporary Accounts (legacy checkout)

Create time-limited virtual accounts for a specific payment amount. Prefer Hosted Checkout above for new integrations.

Webhooks

Set a webhook URL in your dashboard. Timiun sends HMAC-SHA512 signed POST requests with the signature in the x-timiun-signature header. All events are stored — use the endpoints below to list or replay them.

Signature Verification

Verify requests using your Webhook Signing Secret (whsec_...) — visible in Settings. Do not use your Secret Key (sk_live_) here.

const crypto = require('crypto');

const sig = crypto
  .createHmac('sha512', 'whsec_your_webhook_signing_secret')
  .update(JSON.stringify(req.body))
  .digest('hex');

if (sig === req.headers['x-timiun-signature']) {
  // Verified ✓
}

Event Payloads

deposit.successStandard deposit credited to the business wallet (direct DVA or crypto)

Payload

{
  "event": "deposit.success",
  "data": {
    "id": "tx_abc",
    "type": "DEPOSIT",
    "amount": 50000,
    "currency": "NGN",
    "status": "COMPLETED",
    "hash": "SH-123456789",
    "description": "Received from John Doe",
    "sender_name": "John Doe",
    "sender_bank_code": "000013",
    "sender_bank_name": "GTBANK PLC",
    "metadata": {}
  },
  "timestamp": "2026-01-16T10:00:00Z"
}
charge.successA hosted checkout session was paid in full (any method). Verify the reference, then give value.

Payload

{
  "event": "charge.success",
  "data": {
    "reference": "TMN_8f2c0b1e9a7d6c5b4a39",
    "status": "PAID",
    "amount": "20",
    "currency": "USD",
    "channel": "CRYPTO",
    "paid_amount": "20",
    "paid_currency": "USDT",
    "network": "TRON",
    "fee": "0.2",
    "settled_amount": "19.8",
    "settled_currency": "USDT",
    "transaction_id": "tx_7e6d5c",
    "customer": {
      "email": "ada@example.com",
      "name": "Ada"
    },
    "metadata": {
      "order_id": 42
    },
    "paid_at": "2026-10-03T12:07:41Z"
  },
  "timestamp": "2026-10-03T12:07:42Z"
}
charge.underpaidLess than the quoted amount arrived (crypto). What arrived is credited; the session stays UNDERPAID until the rest comes in.

Payload

{
  "event": "charge.underpaid",
  "data": {
    "reference": "TMN_8f2c…",
    "status": "UNDERPAID",
    "channel": "CRYPTO",
    "paid_amount": "10",
    "total_paid_amount": "10",
    "expected_amount": "20",
    "paid_currency": "USDT",
    "settled_amount": "9.9"
  }
}
checkout.depositPayment received via a client DVA or temporary checkout account

Payload

{
  "event": "checkout.deposit",
  "data": {
    "transaction_id": "tx_9a8b7c",
    "amount": 5000,
    "currency": "NGN",
    "status": "COMPLETED",
    "client_name": "John Doe",
    "client_email": "john@example.com",
    "client_phone": "+2348012345678",
    "external_ref": "ORDER-123",
    "sender_name": "JOHN DOE",
    "sender_account": "0123456789",
    "sender_bank_code": "000014",
    "sender_bank_name": "ACCESS BANK",
    "account_number": "1234567890",
    "created_at": "2026-01-16T10:15:00Z"
  },
  "timestamp": "2026-01-16T10:15:05Z"
}
withdrawal.completedWithdrawal to a bank account successfully processed

Payload

{
  "event": "withdrawal.completed",
  "data": {
    "transaction_id": "tx_3c4d5e",
    "amount": 10000,
    "currency": "NGN",
    "status": "COMPLETED",
    "completed_at": "2026-01-16T11:00:00Z"
  },
  "timestamp": "2026-01-16T11:00:05Z"
}
withdrawal.failedWithdrawal failed (e.g. bank rejection). Funds are automatically refunded

Payload

{
  "event": "withdrawal.failed",
  "data": {
    "transaction_id": "tx_3c4d5e",
    "amount": 10000,
    "currency": "NGN",
    "status": "FAILED",
    "reason": "Invalid Account Number",
    "refunded": true,
    "failed_at": "2026-01-16T11:05:00Z"
  },
  "timestamp": "2026-01-16T11:05:05Z"
}
withdrawal.reversedA dispatched withdrawal was returned by the beneficiary bank/processor. The full debited amount (including fees) is refunded

Payload

{
  "event": "withdrawal.reversed",
  "data": {
    "transaction_id": "tx_3c4d5e",
    "amount": 10000,
    "refunded_amount": 10050,
    "currency": "NGN",
    "status": "REVERSED",
    "reason": "Beneficiary Bank not available",
    "response_code": "91",
    "reversed_at": "2026-01-16T11:10:00Z"
  },
  "timestamp": "2026-01-16T11:10:05Z"
}
transfer.successInternal transfer to another Timiun user succeeded (debit side)

Payload

{
  "event": "transfer.success",
  "data": {
    "id": "tx_5f6g7h",
    "type": "TRANSFER",
    "amount": 2500,
    "currency": "NGN",
    "status": "COMPLETED",
    "description": "Transfer to Jane"
  },
  "timestamp": "2026-01-16T12:00:00Z"
}
client_dva.createdNew client DVA created

Payload

{
  "event": "client_dva.created",
  "data": {
    "id": "cdva_abc",
    "account_number": "9876543210",
    "bank_name": "Safe Haven MFB",
    "client_name": "Jane Smith"
  }
}
subaccount.createdNew sub-account created

Payload

{
  "event": "subaccount.created",
  "data": {
    "id": "cdva_xyz",
    "account_number": "5678901234",
    "bank_name": "Safe Haven MFB",
    "name": "Lagos Branch"
  }
}

Error Codes

StatusMeaning
400Bad Request — missing or invalid parameters
401Unauthorized — invalid or missing API key
403Forbidden — API Secret required, or feature not enabled for your account
404Not Found — resource does not exist
409Conflict — duplicate request (idempotency key already used)
429Rate Limited — too many requests
500Server Error — something went wrong on our end
501Not Implemented — feature not available for the current banking provider

Contact

Need help integrating? Have a question about the API or want to report an issue? Reach out to the Timiun team.