Webhook Entity🔗
The Webhook entity consists of the following fields. You can find the JSON sample entity on the right side.
idstringThe 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.created_atoptionalintegerThe Unix timestamp at which the webhook has been created.updated_atoptionalintegerThe Unix timestamp at which the webhook has been updated.owner_idmandatorystringThe unique identifier generated by Razorpay for the sub-merchant who will receive the webhooks. For example, in this case, it will beaccount_idpassed in the API URL.owner_typemandatorystringIndicates the type of owner. For example, in this case, it will be the merchant.urlstringThe URL where you receive the webhook payload when an event is triggered. The maximum length is 255 characters.secretstringA secret for the webhook endpoint used to validate that the webhook is from Razorpay. Ifalert_emailstringThis is the email address to which notifications must be sent in case of webhook failure.secret_existsmandatorybooleanThis attribute is set totrueif 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.entitymandatorystringIndicates the type of entity. For example, in this case, it will be webhook.activeoptionalstringIndicates the status of webhook.true: Webhook in an activated state.false: Webhook in a deactivated state.
eventsobjectThe required events from the list of Active Events. For example,payment.authorized,payment.captured,payment.failed,payment.dispute.created,refund.failed,refund.createdand so on.