Set Up and Edit Payments Webhooks

Set up and edit Payments Webhooks from the Razorpay Dashboard.


You can set up and edit webhooks from the Razorpay Dashboard.

Set Up Webhooks🔗

Watch this video to see how to set up a webhook.

To set up webhooks:

  1. Log into the Razorpay Dashboard and navigate to SettingsWebhooks.

  2. Click the + Add New Webhook button.

  3. In the Webhook Setup pop-up page:

    1. Enter the URL where you want to receive the webhook payload when an event is triggered. We recommended using an HTTPS URL. Handy Tips
      You can set up to 10 URLs to receive Webhook notifications. Webhooks can only be delivered to public URLs. If you attempt to save a localhost endpoint as part of a webhook setup, you will notice an error. Know more about testing Webhooks on an application running on localhost.

    2. Enter a Secret for the webhook endpoint. The secret is used to validate that the webhook is from Razorpay. Do not expose the secret publicly. Know more about how to validate webhooks.

      Handy Tips

      • When setting up the webhook, you will be asked to specify a secret. Using this secret, you can validate that the webhook is from Razorpay. Entering the secret is optional but recommended. The secret should never be exposed publicly.
      • The webhoook secret does not need to be the merchant secret key provided by Razorpay.

    3. In the Alert Email field, enter the email address to which the notifications should be sent in case of webhook failure. You will receive webhook deactivation notifications to this email address.

    4. Select the required events from the list of Active Events.

  4. Click Create Webhook. After you set a webhook, it appears on the list of webhooks.

  5. You can click Edit to make changes to the webhooks.

Next Steps
You should validate and test your webhooks before you go live. Know more about validating and testing your webhooks.

Edit a Webhook🔗

You can edit your webhook to replace the webhook URL, modify the secret, change the alert email and add or remove events.

To edit webhooks:

  1. Log into the Razorpay Dashboard and navigate to SettingsWebhooks.

  2. In the list, select the webhook you want to edit.

  3. In the right panel, click Edit.

  4. The Webhook Setup pop-up page is displayed. You can modify the following:

    • Webhook URL
    • Secret
    • Alert Email
    • Active Events
  5. Click Save Webhook to save changes.

Next Steps
You should validate and test your webhooks before you go live. Know more about validating and testing your webhooks.

Deactivation🔗

All webhook responses must return a status code in the range 2XX within a window of 5 seconds. If we receive response codes other than this or the request times out, it is considered a failure.

On failure, a webhook is re-tried at progressive intervals of time, defined in the exponential back-off policy, for 24 hours. If the failures continue for 24 hours, the webhook is disabled. You need to enable the webhook from the Razorpay Dashboard after fixing the errors at your end. Know more about enabling Webhooks.

Handy Tips
When a webhook gets disabled, you receive an email notification on the email id you configured while setting up the webhooks.

Enable/Disable a Webhook🔗

To enable or disable a webhook:

  1. Log into the Razorpay Dashboard and navigate to SettingsWebhooks.

  2. In the list, select the webhook you want to edit.

  3. Change the status to Enabled or Disabled in the right panel as required.

Delete a Webhook🔗

To delete a webhook:

  1. Log into the Razorpay Dashboard and navigate to SettingsWebhooks.
  2. In the list, select the webhook that you want to delete.
  3. In the right panel, click Delete. Click Yes, Delete in the dialogue box to confirm.
×