> ## Documentation Index
> Fetch the complete documentation index at: https://cashfreepayments-d00050e9-theme-update.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhooks

> Webhooks are server callbacks to your server from Cashfree payments.

Webhooks are event-based notifications that are received when a specific event related to async bank account verification occurs.

<Warning>
  In rare cases, such as network retries, read timeouts, processing delays, or delivery failures, the same webhook might be sent more than once for the same event. To prevent unintended side effects, implement idempotency in your webhook handler to handle duplicate deliveries.
</Warning>

## Add webhooks

Add your webhook URL in our system for us to deliver webhook events.

Follow the instructions below to configure the webhook URL. Ensure to provide the publicly accessible HTTPS URL to your webhook endpoint.

1. Log in to the **[Merchant Dashboard](https://merchant.cashfree.com/merchants/)** and click **Developers**.
2. Click **Webhooks** listed under the **Secure ID** card.
3. Click **Add Webhook URL** in the **Webhook** screen.
4. In the **Add Webhook** popup, fill in the following information:
   * **Webhook URL** - Enter the URL in this field.
5. Click **Test & Add Webhook**.

<Frame caption="Add Webhook">
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/cashfreepayments-d00050e9-theme-update/static/secure-id/rpd/rpd-webhook.png" />
</Frame>

## Webhook event

| Event                                 | Description                             |
| :------------------------------------ | :-------------------------------------- |
| BANK\_ACCOUNT\_VERIFICATION\_SUCCESS  | Bank account verification is a success. |
| BANK\_ACCOUNT\_VERIFICATION\_REJECTED | Bank account verification is rejected.  |
| BANK\_ACCOUNT\_VERIFICATION\_FAILED   | Bank account verification is a failure. |

<CodeGroup>
  ```Text BANK_ACCOUNT_VERIFICATION_SUCCESS
  {
     "signature":"signature",    
     "event_type":"BANK_ACCOUNT_VERIFICATION_SUCCESS",    
     "event_time":"2023-07-19 10:46:16",
     "version":"v2",
     "data":{
          "reference_id": 1294785793,
          "user_id" : "123123",
          "name_at_bank": "John Doe",
          "amount_deposited": "1.04",
          "bank_name": "YES BANK",
          "utr": "404223241811",
          "city": "MUMBAI",
          "branch": "SANTACRUZ, MUMBAI",
          "micr": 400532038,
          "name_match_score": "90.00",
          "name_match_result": "GOOD_PARTIAL_MATCH",
          "account_status": "VALID",
          "account_status_code": "ACCOUNT_IS_VALID"
      }
  }
  ```

  ```Text BANK_ACCOUNT_VERIFICATION_REJECTED
  {
     "signature":"signature",    
     "event_type":"BANK_ACCOUNT_VERIFICATION_REJECTED",    
     "event_time":"2023-07-19 10:46:16",
     "version":"v2",
     "data":{
          "reference_id": 1294785793,
          "user_id" : "123123",
          "account_status": "REJECTED",
          "account_status_code": "INSUFFICIENT_BALANCE"
      }
  }
  ```

  ```Text BANK_ACCOUNT_VERIFICATION_FAILED
  {
     "signature":"signature",    
     "event_type":"BANK_ACCOUNT_VERIFICATION_FAILED",    
     "event_time":"2023-07-19 10:46:16",
     "version":"v2",
     "data":{
          "reference_id": 1294785793,
          "user_id" : "123123",
          "account_status": "FAILED",
          "account_status_code": "SOURCE_BANK_DECLINED"
      }
  }
  ```
</CodeGroup>

## Webhook payload fields

The webhook payload contains important metadata in its top-level fields.

| Field        | Type     | Description                                                                                    |
| ------------ | -------- | ---------------------------------------------------------------------------------------------- |
| `signature`  | `string` | A Base64-encoded HMAC-SHA256 signature of the payload, generated using a shared client secret. |
| `event_type` | `string` | Indicates the type of event that triggered the webhook.                                        |
| `event_time` | `string` | The UTC timestamp of when the event occurred, formatted in ISO 8601 (`YYYY-MM-DDTHH:MM:SSZ`).  |
| `version`    | `string` | Indicates the webhook format being used. Default version is "v1".                              |
| `data`       | `object` | Contains event-specific details related to this feature.                                       |

<Note>
  Verifying the signature is mandatory before processing any response. Refer to [Signature Verification](/api-reference/vrs/webhook-signature-verification) for more details.
</Note>
