Webhooks Entity
The Webhooks entity has the following parameters:
Is this page helpful?
Entity
1{2"id": "JebiXkKGYwua5L",3"created_at": 1654605478,4"updated_at": 1654605478,5"service": "beta-api-live",6"owner_id": "JOGUdtKu3dB03d",7"owner_type": "merchant",8"context": [],9"disabled_at": 0,10"url": "https://google.com",11"alert_email": "gaurav.kumar@example.com",12"secret_exists": true,13"entity": "webhook",14"active": true,15"events": [16"payment.authorized",17"payment.failed",18"payment.captured",19"payment.dispute.created",20"refund.failed",21"refund.created"22]23}
idstring 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.
created_atintegerThe Unix timestamp at which the webhook has been created.
updated_atintegerThe Unix timestamp at which the webhook has been updated.
owner_idstring 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.
owner_typestringIndicates 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.
alert_emailstringThis is the email address to which notifications must be sent in case of webhook failure.
secret_existsboolean 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.
entitystringIndicates the type of entity. For example, in this case, it will be webhook.
activestringIndicates the status of webhook.
true: Webhook is activated.false: Webhook is deactivated.
eventsobject 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.
Webhooks Entity
The Webhooks entity has the following parameters:
Is this page helpful?
idstring 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.
created_atintegerThe Unix timestamp at which the webhook has been created.
updated_atintegerThe Unix timestamp at which the webhook has been updated.
owner_idstring 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.
owner_typestringIndicates 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.
alert_emailstringThis is the email address to which notifications must be sent in case of webhook failure.
secret_existsboolean 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.
entitystringIndicates the type of entity. For example, in this case, it will be webhook.
activestringIndicates the status of webhook.
true: Webhook is activated.false: Webhook is deactivated.
eventsobject 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.
Entity
1{2"id": "JebiXkKGYwua5L",3"created_at": 1654605478,4"updated_at": 1654605478,5"service": "beta-api-live",6"owner_id": "JOGUdtKu3dB03d",7"owner_type": "merchant",8"context": [],9"disabled_at": 0,10"url": "https://google.com",11"alert_email": "gaurav.kumar@example.com",12"secret_exists": true,13"entity": "webhook",14"active": true,15"events": [16"payment.authorized",17"payment.failed",18"payment.captured",19"payment.dispute.created",20"refund.failed",21"refund.created"22]23}