Webhooks
You can receive notifications for certain events or updates made on certain transaction via a webhook.
Gladefinance sends notification for the following events.
- Funds transferred into a virtual account
- Payments received
Setting The Webhook
You can set your webhook on the Gladefinance dashboard, under the API & Webhooks in the Settings page.
Webhook for funds transferred to a Virtual Accounts
When a payment is received into a virtual account a webhook is triggered. A POST request is sent with the payload of the webhook can be found below
{
"status":200,
"txnStatus":"successful",
"txnRef":"GP2022075ea2cf9928028572",
"chargedAmount":"9600.00",
"paymentMethod":"bank_transfer",
"endpoint":"",
"customer_txnref":null,
"accountReference":"d6fd0ddc2b",
"meta":"{\"amount\":9600,\"currency\":\"NGN\",\"charged_amount\":9600,\"app_fee\":48,\"merchant_fee\":0,\"processor_response\":\"success\",\"auth_model\":\"AUTH\",\"narration\":\"From John Glade\",\"status\":\"successful\",\"payment_type\":\"bank_transfer\",\"created_at\":\"2022-07-03T13:44:21.000Z\",\"account_id\":4760,\"meta\":{\"originatoraccountnumber\":\"015*******51\",\"originatorname\":\"JOHN GLADE",\"bankname\":\"GUARANTY TRUST BANK\",\"originatoramount\":\"N\\\/A\"},\"amount_settled\":9552,\"customer\":{\"id\":356999894,\"name\":\"Anonymous customer\",\"phone_number\":\"N\\\/A\",\"email\":\"[email protected]\",\"created_at\":\"2022-04-12T09:39:28.000Z\"}}",
"currency":"NGN",
"account":"1234567890",
"accountDetails":"John Doe",
"bankname":"WEMA BANK"
}
Updated 4 months ago