Skip to main content

Webhook Implementation

Overview: WaaS sends real-time transaction notifications to your registered webhook URL. You must implement a secure, publicly accessible endpoint.

Webhook URL Requirements

Protocol: HTTPS only

Accessibility: Publicly reachable (not localhost)

Port: 443 (standard HTTPS)

Method: POST

Response Time: ≤ 2 seconds

Format: JSON

Example Valid URLs:

https://api.yourcompany.com/v1/waas/webhook

https://webhooks.yourdomain.com/transactions

Webhook Registration

  1. Develop webhook endpoint meeting specifications
  2. Test with sample payloads
  3. Contact us with webhook URL

Request Parameters

POST
curl -X POST
-H "Content-Type: application/json"
-d '{
"walletNumber": "80998899834",
"transactionType": "Credit",
"senderAccountNumber": "0023456789",
"senderBankCode": "058",
"transactionReference": "TXN_20240115_123456",
"senderName": "John Mark",
"amount": 8000.00,
"balance": 900000.09,
"narration": "Salary Payment January 2024"
}
'

Request Parameters

FieldTypeDescriptionExample
walletNumberstringRecipient wallet number"80998899834"
transactionTypestring"Credit" or "Debit""Credit"
senderAccountNumberstringSender account (if bank transfer)""0023456789"
senderBankCodestringSender bank code"058" (GTBank)See Bank code Dictionary
transactionReferencestringUnique transaction reference"TXN_20240115_123456"
senderNamestringSender/initiator name"John Mark"
amountnumberTransaction amount8000.00
balancenumberNew wallet balance900000.09
narrationstringTransaction description"Salary Payment"