The webhooks can provide immediate notifications for billing outcomes. The use of webhooks is dependent on the needs of the business. Ezypay has webhooks that can send out notifications for certain scenarios. For example: For failed payments or retrieving debits by date.
A public bin will be required in order for Ezypay to send all webhooks into
You can create a webhook (API) that will send a callback request to a URL of your choice in response to events that happen in Ezypay. The webhook will return a full response object containing all details of the object. For example, when a customer created event occurs, the webhook will return the details of the customer object created e.g. name, email, contact information and address.
Ezypay provides the following events and subscribed Webhooks can be configured to sent notifications when these events happen:
Event when a new customer is created.
Event when a customer's details are updated.
Event after an invoice is created.
Event when an invoice status has changed to
Event when an invoice status has changed to
Event when a batch of ad-hoc invoices to bill one or more customers on an on-demand basis gets created.
Event when a batch of ad-hoc invoices to bill one or more customers on an on-demand basis is being processed.
Event when the status of a batch of ad-hoc invoices to bill one or more customers on an on-demand basis changes to success.
Event when the status of a batch of ad-hoc invoices to bill one or more customers on an on-demand basis changes to failed.
Event when a new subscription is created.
Event when a subscription is cancelled.
Event when a subscription is activated.
Event when a subscription completes.
Event when a customer's payment method becomes invalid. This event is only thrown when a valid payment method becomes invalid. If a payment method is invalid upon creation, no webhook event is triggered.
Event when a customer's payment method becomes valid. This event is only thrown when a customer approves their PayTo payment method (which sets the payment method to valid), as PayTo payment methods are invalid by default.
Event when a payment method gets linked to a customer.
Event when a customer's payment method gets replaced by another.
Event when a customer's primary payment method gets changed to another.
Event when a customer's subscription is reactivated. A customer's subscription can become deactivated because of past due invoices. When all invoices are resolved, the subscription will automatically reactivate.
Event when a subscription's billing schedule becomes inactive and billing has stopped
Event when a credit note is created. This event is triggered when a merchant moves funds to a customer usually as a refund or a dispute.
Event when a credit note is successfully paid. Credit note status changed to paid.
Event when a credit note transaction has failed. Credit note status changed to failed.
Event after a partner invoice is created.
Event when a partner invoice status changed to
Event when a partner invoice status has changed to
Event when a dispute is won
Event when a dispute is lost
How to create a webhook can be found here:
In an event whereby Ezypay fails to send a webhook to the integrator. Ezypay will try a maximum of 32 times only
If a webhook notification fails (i.e. endpoint does not return a 2xx HTTP or timeout response), Ezypay will automatically attempt to resend the webhook notification to your webhook URL. For the next 24 hours, Ezypay will resend the webhook notification every 60 mins after each fail attempt.
Each failed attempt will be recorded in the webhook event notification log in the order in which they were created, allowing for follow-up support action. You can retrieve the notification log by calling the List webhook notification log (API). Failed attempts can be identified as they will have the status = fail. The webhook notifications log will display the most up-to-date information on webhooks sent in the system.
You can test out a webhook to ensure it is working correctly by manually simulating a webhook event (API). You can specify what events will trigger the webhook response. A record of events will be created in the webhook notification log. You can view this log by calling the List webhook notification log (API)
You can retrieve a webbhook (API) to view details such as the events that have been assigned to trigger this webhook.
How to retrieve webhook details can be found here:
You can update a webhook (API) to make changes to an existing webhook such as:
- changing the callback URL
- adding or removing events that will trigger this webhook
How to update a webhook can be found here:
You can delete a webhook (API) that is no longer required.
How to delete a webhook can be found here:
Steps to setup your Ezypay POSTman environment:
Setting up Ezypay's webhooks collection
Incase of missing button, just click import on your POSTman application and select "Link":
Updated about 1 month ago