Registering your webhook URL
Headers
Bearer YOUR_ACCESS_TOKENYour API secret key.
Your business ID.
Request body
The HTTPS URL that Interstellas will POST payment notifications to. Must be publicly accessible.
Response
true on success.Confirmation message, e.g.
"Webhook Url updated successfully".Code example
Incoming payment notification
When a payment is received into one of your virtual accounts, Interstellas sends aPOST request to your registered webhook URL.
Verifying the request
Incoming webhook requests include anAUTH-KEY header provided by Interstellas. Validate this header on your server to confirm the request originated from Interstellas and not a third party.
Payload fields
The unique reference for this transaction, generated by Interstellas.
The reference for the virtual account that received the payment.
ISO 8601 timestamp of when the transaction occurred.
Amount received, in kobo. Divide by 100 to convert to naira.
Fee deducted from the payment, in kobo.
Account balance available after the transaction, in kobo.
Total ledger balance after the transaction, in kobo.
Name on the paying account.
The paying account number.
The virtual account number that received the payment.
The name on the receiving virtual account.
Transaction description.
Narration provided by the payer.
Additional details about the payer.
Example payload
Required response
Your endpoint must returnHTTP 200 OK to acknowledge receipt. If Interstellas does not receive a 200, it will retry the notification.
Node.js (Express)