Skip to main content
Interstellas sends real-time payment notifications to a URL you register. When a virtual account receives a payment, Interstellas POSTs a notification to your endpoint.

Registering your webhook URL

Headers

string
required
Your public API key.
string
required
Your API secret. Use a stl_test_... value in sandbox, stl_live_... in production.
string
required
Your business ID.

Request body

string
required
The HTTPS URL that Interstellas will POST payment notifications to. Must be publicly accessible.

Response

boolean
true on success.
string
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 a POST request to your registered webhook URL.

Verifying the request

Incoming webhook requests include an AUTH-KEY header provided by Interstellas. Validate this header on your server to confirm the request originated from Interstellas and not a third party.
TODO — The source documentation does not specify the format of the AUTH-KEY value or how to validate it. Confirm this with the Interstellas team before going live.

Payload fields

string
The unique reference for this transaction, generated by Interstellas.
string
The reference for the virtual account that received the payment.
string
ISO 8601 timestamp of when the transaction occurred.
integer
Amount received, in kobo. Divide by 100 to convert to naira.
integer
Fee deducted from the payment, in kobo.
integer
Account balance available after the transaction, in kobo.
integer
Total ledger balance after the transaction, in kobo.
string
Name on the paying account.
string
The paying account number.
string
The virtual account number that received the payment.
string
The name on the receiving virtual account.
string
Transaction description.
string
Narration provided by the payer.
object
Additional details about the payer.

Example payload

Required response

Your endpoint must return HTTP 200 OK to acknowledge receipt. If Interstellas does not receive a 200, it will retry the notification.
Node.js (Express)