Available in🇮🇳 India
Webhooks (Web Callback, HTTP Push API or Reverse API) are one of the ways in which one web application can send information to another application in real-time when a specific event happens. Know more about Webhooks.
Set Up and Edit Payout Webhooks
You must first set up and edit Payout Webhooks as per your requirement.Validate and Test Webhooks
Then you must validate and test webhooks as a best practice.Webhook Events and Descriptions
Listed below are the various webhook events available in RazorpayX. The payload remains the same irrespective of thefund_account_type, that is, a bank account, VPA or card, to which the payout is made.
The table below lists the webhook events available for RazorpayX Payouts.
Handy Tips It is mandatory to subscribe to the
payout.failed event if you are using Payout APIs.payout.downtime.started | all payouts | Triggered when a payout downtime starts. Do not initiate a payout if this is triggered since the beneficiary bank is down and the payout will fail.
|
| payout.downtime.resolved | all payouts | Triggered when a payout downtime is resolved. Make payouts once this webhook is triggered as it indicates that the beneficiary bank downtime is resolved. |
The table below lists the webhook events available for RazorpayX transactions.
When your webhook
secret is set, Razorpay uses it to create a hash signature with each payload. This hash signature is passed with each request under the X-Razorpay-Signature header that you need to validate at your end. Support for validating the signature is provided in all our language SDKs.
X-Razorpay-Signature
: The hash signature is calculated using HMAC with SHA256 algorithm, your webhook secret set as the key and the webhook request body as the message.
You can also validate the webhook signature yourself using an HMAC as shown below: