Skip to main content
PATCH
Use this endpoint to update the details of a webhook. Know about the various error responses for this API.

Path Parameters

string
required
The unique identifier of a sub-merchant account generated by Razorpay. For example, acc_H3kYHQ635sBwXG
string
required
The unique identifier of the webhook whose details are to be updated. For example, HK890egfiItP3H

Request Parameters

string
required
The URL where you receive the webhook payload when an event is triggered. The maximum length is 255 characters.
object
required
The required events from the list of Active Events. For example, payment.authorized, payment.captured, payment.failed, payment.dispute.created, refund.failed, refund.created and so on.

Response Parameters

string
The unique identifier of the created webhook. For example, HK890egfiItP3H. This id is used to fetch, update or delete a webhook. The maximum length is 14 characters.
integer
The Unix timestamp at which the webhook has been created.
integer
The Unix timestamp at which the webhook has been updated.
string
The unique identifier generated by Razorpay for the sub-merchant who will receive the webhooks. For example, in this case, it will be account_id passed in the API URL.
string
Indicates the type of owner. For example, in this case, it will be the merchant.
string
The URL where you receive the webhook payload when an event is triggered. The maximum length is 255 characters.
string
A secret for the webhook endpoint used to validate that the webhook is from Razorpay.
string
This is the email address to which notifications must be sent in case of webhook failure.
boolean
This attribute is set to true if a secret password has been set for the webhook endpoint. If no secret is sent in the request, this parameter does not appear in the response code.
string
Indicates the type of entity. For example, in this case, it will be webhook.
string
Indicates the status of webhook.
  • true: Webhook is activated.
  • false: Webhook is deactivated.
object
The required events from the list of Active Events. For example, payment.authorized, payment.captured, payment.failed, payment.dispute.created, refund.failed, refund.created and so on.