Learn how to interact with Nomba webhooks
Webhooks on your Nomba dashboard
Webhooks on your Nomba dashboard
POST
call is triggered to the customer’s webhook url.
This HTTP POST
call includes a message payload and is directed to the URL previously specified during the webhook creation. The message payload encompasses essential components, including request headers and JSON content, providing comprehensive details about the event.
Payment success
Event | Event type | Meaning |
---|---|---|
Payment Success | payment_success | Event triggered when a payment is successfully credited to the merchant’s nomba account e.g. Card transaction, PayByTransfer, PayByQR. |
Payout Success | payout_success | Event triggered when a payment is successfully debited from the merchant’s account e.g. Funds transfer, Bill payment etc. |
Payment Failed | payment_failed | Event triggered when a proposed payment failed in flight. |
Payment Reversal | payment_reversal | Event triggered when a payment is reversed from the merchant’s account back to the customer’s account. |
Payout Failed | payout_failed | Event triggered when an attempted payout transaction fails to be processed successfully and is not completed. |
Payout Refund | payout_refund | Event triggered when a payment is refunded back to the merchant’s nomba account |
Header | Description |
---|---|
nomba-signature | A signature created using the signature key configured while creating the webhook on the Nomba dashboard |
nomba-signature-algorithm | The algorithm used to generate the signature. Value is always HmacSHA256 |
nomba-signature-version | The version of the signature used. Value is 1.0.0 at the moment. It will keep updating as the signing process updates |
nomba-timestamp | An RFC-3339 timestamp that identifies when the payload was sent. |
Header Key | Header Value |
---|---|
nomba-signature | 0zzATkAuEta5kpKVCExReupW/XglCk/re51P4jiDJ9c= |
nomba-sig-value | 0zzATkAuEta5kpKVCExReupW/XglCk/re51P4jiDJ9c= |
nomba-signature-algorithm | HmacSHA256 |
nomba-signature-version | 1.0.0 |
nomba-timestamp | 2023-03-31T05:56:47Z |
Field | Type | Description |
---|---|---|
event_type | String | The event type that was triggered |
request_id | String (UUID) | A unique request identifier useful for tracking messages |
data | Object (JSON) | An object describing the details of the triggered event |
Field | Type | Description |
---|---|---|
merchant | Object (JSON) | Details of the business. |
terminal | Object (JSON) | Details of the terminal involved in the payment/payout. |
transaction | Object (JSON) | Details of the transaction. |
customer | Object (JSON) | Details of the customer involved. |
data.transaction
Field | Type | Description |
---|---|---|
transactionId | String | The unique identifier for the transaction |
type | String | The type of the transaction (e.g., purchase, transfer, etc.) |
originatingFrom | String | The source of the transaction (e.g., pos, web, app, etc.) |
rrn | String | Retrieval reference number of the transaction |
transactionAmount | Double | The original amount of the transaction |
fee | Double | The fees associated with processing the transaction |
time | DateTime | An RFC-3339 timestamp indicating when the transaction was initiated |
terminalActionId | String | Terminal action identifier, linking a terminal action object |
mcollectionsId | String | Merchant collections identifier, linking a merchant collections object |
merchantTxRef | String | Merchant transaction reference, linking an externally initiated transaction |
aliasAccountNumber | String | The account number that received the value |
aliasAccountName | String | The corresponding name of the recipient account number |
aliasAccountType | String | The type of the recipient account |
terminalSerialNumber | String | The serial number of the terminal associated with the recipient account |
cardBank | String | The issuing bank of the card used for carrying out the transaction |
cardIssuer | String | The card scheme of the card used for this transaction |
responseCode | String | The response code for the transaction |
responseMessage | String | The response message for the transaction |
sessionId | String | The sessionId attached to this transaction particularly for NIP Transfers |
and can be used for requerying transactions |
data.terminal
Field | Type | Description |
---|---|---|
terminalId | String | The unique identifier for the terminal |
terminalLabel | String | The label or display name configured for the terminal by the business |
data.merchant
Field | Type | Description |
---|---|---|
userId | String | A unique identifier attributed to your business |
walletId | String | The unique identifier of the account impacted by this event |
walletBalance | Double | The account balance immediately after the impact of this event. Example: If the account balance before a payment is 100.00 and you received 20.0, the walletBalance will be 120.00 |
data.customer
Field | Type | Description |
---|---|---|
billerId | String | Identifier of the payment instrument (e.g., card pan, account number) |
productId | String | Additional identifier complementing billerId (e.g., bank code for card payment) |
bankCode | String | Bank code (e.g., “000”) |
cardPan | String | Card PAN (if applicable) |
network | String | Card network (if applicable) |
accountNumber | String | Account number (if applicable) |
bankName | String | Bank name of recipient account |
meterNumber | String | Meter number (if applicable) |
subscriberNumber | String | Subscriber number (if applicable) |
iucNumber | String | IUC number (if applicable) |
decoderNumber | String | Decoder number (if applicable) |
senderName | String | Sender name |
recipientName | String | Recipient name |